|
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.AbstractConnector
Abstract base class for a connector element. A connector has exactly one input and one output.
Field Summary | |
protected FlowElement |
predecessor
Predecessor of this connector. |
protected FlowElement |
successor
Successor of this connector. |
Fields inherited from class mss.ea.al.FlowElement |
broker, messageChannel, name, receivedMessage, sync |
Constructor Summary | |
AbstractConnector(MessageBroker broker,
java.lang.String name)
Constructor with message broker. |
|
AbstractConnector(java.lang.String name)
Constructor. |
Method Summary | |
FlowElement |
getPredecessor(int index)
Gets the predecessor of this connector. |
int |
getPredecessorNumber()
Gets the number of possible predecessors. |
FlowElement |
getSuccessor(int index)
Gets the successor. |
int |
getSuccessorNumber()
Gets the number of possible successors. |
boolean |
hasPredecessor()
Checks if this connector has a predecessor. |
boolean |
hasSuccessor()
Checks if this connector has a 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 FlowElement predecessor
protected FlowElement successor
Constructor Detail |
public AbstractConnector(java.lang.String name)
name
- name of this connectorpublic AbstractConnector(MessageBroker broker, java.lang.String name)
broker
- message brokername
- name of this connectorMethod 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
- does not matterpublic FlowElement getSuccessor(int index)
getSuccessor
in class FlowElement
index
- index of the successor (does not matter)public void setPredecessor(FlowElement predecessor, int index)
setPredecessor
in class FlowElement
predecessor
- new predecessorindex
- does not matterpublic void setSuccessor(FlowElement successor, int index)
setSuccessor
in class FlowElement
successor
- new successorindex
- does not matterpublic 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 |