|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mss.ea.al.FlowElement | +--mss.ea.al.AbstractConduit
Abstract base for a conduit. A conduit is is a flow element which has an arbitrary number of predecessors and successors.
Field Summary | |
protected java.util.ArrayList |
predecessorList
Predecessor list of this conduit. |
protected java.util.ArrayList |
successorList
Successor list of this conduit. |
Fields inherited from class mss.ea.al.FlowElement |
broker, messageChannel, name, receivedMessage, sync |
Constructor Summary | |
AbstractConduit(MessageBroker broker,
java.lang.String name)
Constructor with message broker. |
|
AbstractConduit(java.lang.String name)
Constructor. |
Method Summary | |
FlowElement |
getPredecessor(int index)
Gets a predecessor of this conduit. |
int |
getPredecessorNumber()
Gets the number of current predecessors. |
FlowElement |
getSuccessor(int index)
Gets a successor of this conduit. |
int |
getSuccessorNumber()
Gets the number of current successors. |
boolean |
hasPredecessor()
Checks if this conduit has at least one predecessor. |
boolean |
hasSuccessor()
Checks if this conduit has at least one successor. |
void |
setPredecessor(FlowElement predecessor,
int index)
Sets a new predecessor. |
void |
setSuccessor(FlowElement successor,
int index)
Sets a new successor. |
Methods inherited from class mss.ea.al.FlowElement |
acquireChannel, react, register, run, setBroker, setChannel, setSync, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.ArrayList predecessorList
protected java.util.ArrayList successorList
Constructor Detail |
public AbstractConduit(java.lang.String name)
name
- name of this conduitpublic AbstractConduit(MessageBroker broker, java.lang.String name)
broker
- message brokername
- name of this conduitMethod Detail |
public boolean hasPredecessor()
hasPredecessor
in class FlowElement
public boolean hasSuccessor()
hasSuccessor
in class FlowElement
public FlowElement getPredecessor(int index)
getPredecessor
in class FlowElement
index
- index of the predecessorpublic FlowElement getSuccessor(int index)
getSuccessor
in class FlowElement
index
- index of the successorpublic void setPredecessor(FlowElement predecessor, int index)
setPredecessor
in class FlowElement
successor
- new successorindex
- index of the successorpublic void setSuccessor(FlowElement successor, int index)
setSuccessor
in class FlowElement
successor
- new successorindex
- index of the successorpublic int getPredecessorNumber()
getPredecessorNumber
in class FlowElement
public int getSuccessorNumber()
getSuccessorNumber
in class FlowElement
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |