|
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.AbstractSource
Abstract base class for a source element.
Field Summary | |
protected FlowElement |
successor
Successor of this source. |
Fields inherited from class mss.ea.al.FlowElement |
broker, messageChannel, name, receivedMessage, sync |
Constructor Summary | |
AbstractSource(MessageBroker broker,
java.lang.String name)
Constructor with message broker. |
|
AbstractSource(java.lang.String name)
Constructor. |
Method Summary | |
FlowElement |
getPredecessor(int index)
Gets the predecessor. |
int |
getPredecessorNumber()
Gets the number of predecessors for a source. |
FlowElement |
getSuccessor(int index)
Gets the successor. |
int |
getSuccessorNumber()
Gets the number of successors for a source. |
boolean |
hasPredecessor()
Checks if this source has a predecessor. |
boolean |
hasSuccessor()
Checks if this source 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 successor
Constructor Detail |
public AbstractSource(java.lang.String name)
name
- name of this sourcepublic AbstractSource(MessageBroker broker, java.lang.String name)
broker
- message brokername
- name of this sourceMethod Detail |
public boolean hasPredecessor()
hasPredecessor
in class FlowElement
public boolean hasSuccessor()
hasSuccessor
in class FlowElement
public int getPredecessorNumber()
getPredecessorNumber
in class FlowElement
public int getSuccessorNumber()
getSuccessorNumber
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
- does not matterindex
- does not matterpublic void setSuccessor(FlowElement successor, int index)
setSuccessor
in class FlowElement
successor
- new successorindex
- does not matter
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |