|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<IPipe>
org.specrunner.pipeline.core.PipelineImpl
public class PipelineImpl
Default implementation of a pipeline.
| Field Summary | |
|---|---|
protected List<IPipeListener> |
listeners
List of listeners. |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
PipelineImpl()
Superclass constructor. |
|
PipelineImpl(Collection<? extends IPipe> c)
Superclass constructor. |
|
| Method Summary | |
|---|---|
void |
addPipelineListener(IPipeListener listener)
Add a listener. |
boolean |
check(IChannel channel)
Check if a pipe must perform something on channel. |
protected void |
fireAfterCheck(IChannel channel,
IPipe source)
Fire event on channel. |
protected void |
fireAfterPerform(IChannel channel,
IPipe source)
Fire event on channel. |
protected void |
fireBeforeCheck(IChannel channel,
IPipe source)
Fire event on channel. |
protected void |
fireBeforePerform(IChannel channel,
IPipe source)
Fire event on channel. |
IChannel |
process(IChannel channel)
Perform some transformation over the channel. |
void |
removePipelineListener(IPipeListener listener)
Remove a listener. |
| Methods inherited from class java.util.LinkedList |
|---|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
| Methods inherited from class java.util.AbstractSequentialList |
|---|
iterator |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, isEmpty, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Methods inherited from interface java.util.Deque |
|---|
iterator |
| Field Detail |
|---|
protected List<IPipeListener> listeners
| Constructor Detail |
|---|
public PipelineImpl()
public PipelineImpl(Collection<? extends IPipe> c)
c - A set of pipes.| Method Detail |
|---|
public boolean check(IChannel channel)
throws AbortException
IPipe
check in interface IPipechannel - The information channel.
AbortException - If the channel is corrupted.
public IChannel process(IChannel channel)
throws AbortException,
PipelineException
IPipe
process in interface IPipechannel - The channel.
AbortException - On processing errors.
PipelineException - On processing errors.public void addPipelineListener(IPipeListener listener)
IPipeline
addPipelineListener in interface IPipelinelistener - A listener.public void removePipelineListener(IPipeListener listener)
IPipeline
removePipelineListener in interface IPipelinelistener - A listener.
protected void fireBeforeCheck(IChannel channel,
IPipe source)
channel - The channel.source - The source pipe.
protected void fireAfterCheck(IChannel channel,
IPipe source)
channel - The channel.source - The source pipe.
protected void fireBeforePerform(IChannel channel,
IPipe source)
channel - The channel.source - The source pipe.
protected void fireAfterPerform(IChannel channel,
IPipe source)
channel - The channel.source - The source pipe.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||