|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.AbleObject
com.ibm.able.beans.petrinet.AblePetriNode
com.ibm.able.beans.petrinet.AblePetriPlace
This class represents a Place (state) in a High-Level Petri net
| Field Summary | |
|---|---|
protected java.util.Vector |
myColorSets
|
protected java.util.Vector |
myCurrentMarking
|
protected java.lang.String |
myExpressionText
|
protected AbleExpression |
myInitializationExpr
|
protected AblePetriNet |
myPetriNet
|
protected java.util.Vector |
myTokens
|
| Fields inherited from class com.ibm.able.beans.petrinet.AblePetriNode |
|---|
myInputArcs, myOutputArcs |
| Fields inherited from class com.ibm.able.AbleObject |
|---|
changed, chgSupport, comment, dataFlowEnabled, defaultName, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, properties, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
| Constructor Summary | |
|---|---|
AblePetriPlace()
Create an instance of a Place |
|
AblePetriPlace(java.lang.String theName)
Create an instance of a Place with specified name |
|
| Method Summary | |
|---|---|
void |
addToken(java.lang.Object theToken)
|
void |
addTokens(java.util.Vector theTokens)
|
java.util.Vector |
getColorSets()
|
java.util.Vector |
getCurrentMarking()
|
java.lang.String |
getExpressionText()
|
AbleExpression |
getInitializationExpression()
|
int |
getNumTokens()
|
java.util.Vector |
getTokens()
|
void |
init()
Initialize and configure the bean. |
java.util.Vector |
removeNTokens(int n)
Remove N tokens from the place and return them |
void |
removeToken(java.lang.Object theToken)
|
void |
setColorSets(java.util.Vector theColorSets)
|
void |
setCurrentMarking(java.util.Vector theMarking)
|
void |
setExpressionText(java.lang.String text)
|
void |
setInitializationExpression(AbleExpression theExpression)
|
void |
setTokens(java.util.Vector theTokens)
|
java.lang.String |
toString()
|
| Methods inherited from class com.ibm.able.beans.petrinet.AblePetriNode |
|---|
addDestBufferConnection, addInputArc, addOutputArc, addSourceBufferConnection, getDestBufferConnections, getInputArcs, getName, getOutputArcs, getSourceBufferConnections, removeDestBufferConnection, removeInputArc, removeOutputArc, removeSourceBufferConnection, setInputArcs, setOutputArcs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Vector myColorSets
protected AbleExpression myInitializationExpr
protected java.lang.String myExpressionText
protected java.util.Vector myCurrentMarking
protected java.util.Vector myTokens
protected AblePetriNet myPetriNet
| Constructor Detail |
public AblePetriPlace()
throws AbleException
public AblePetriPlace(java.lang.String theName)
throws AbleException
| Method Detail |
public void setCurrentMarking(java.util.Vector theMarking)
public java.util.Vector getCurrentMarking()
public void setInitializationExpression(AbleExpression theExpression)
public AbleExpression getInitializationExpression()
public void setColorSets(java.util.Vector theColorSets)
public java.util.Vector getColorSets()
public void setTokens(java.util.Vector theTokens)
public java.util.Vector getTokens()
public int getNumTokens()
public void addToken(java.lang.Object theToken)
public void addTokens(java.util.Vector theTokens)
public void removeToken(java.lang.Object theToken)
public java.util.Vector removeNTokens(int n)
n -
public void init()
throws AbleException
AbleObjectAbleState.Initiated or
AbleState.Waiting.
If either the AbleEventProcessing or
TimerEventProcessing flags are enabled, this method calls
AbleObject.startEnabledEventProcessing()
to start a new thread for asynchronous or timer event processing.
An AbleProperty.ProcessingState PropertyChangeEvent is fired.
Beans overriding this method should call
super.init() after any customization and
before returning so that the thread is started if needed
and the PropertyChangeEvent is fired.
An application using asynchronous or timer event processing should sleep until the event queue is functional by imbedding logic like this:
anAbleObject.init();
while (!AbleState.isReady(anAbleObject.getState())) {
try {
Thread.sleep(100l);
} catch (InterruptedException e1) {
}
}
init in interface AbleBeaninit in class AbleObjectAbleException - If an error occurs.AbleObject.startEnabledEventProcessing()public java.lang.String getExpressionText()
public void setExpressionText(java.lang.String text)
public java.lang.String toString()
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||