public class YInternalCondition extends YNetElement implements YConditionInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_mi_active |
static java.lang.String |
_mi_complete |
static java.lang.String |
_mi_entered |
static java.lang.String |
_mi_executing |
YTask |
_myTask |
Constructor and Description |
---|
YInternalCondition(java.lang.String id,
YTask myTask) |
Modifier and Type | Method and Description |
---|---|
void |
add(YPersistenceManager pmgr,
YIdentifier identifier)
Adds an identifier to the collection.
|
boolean |
contains(YIdentifier identifier)
Check whether a condition contains the specified identifier.
|
boolean |
containsIdentifier()
Check whether a condition has at least one identifier.
|
int |
getAmount(YIdentifier identifier)
Get the number of identifier matching the the one passed in.
|
java.util.List<YIdentifier> |
getIdentifiers()
Get all the identifiers in a condition.
|
void |
remove(YPersistenceManager pmgr,
YIdentifier identifier,
int amount)
Remove from this amount YIdentifiers equal to identifier.
|
void |
removeAll(YPersistenceManager pmgr)
Remove all the identifiers in the condition.
|
void |
removeAll(YPersistenceManager pmgr,
YIdentifier identifier)
Removes all the YIdentifiers equal to identifier.
|
YIdentifier |
removeOne(YPersistenceManager pmgr)
Removes one YIdentifier from this condition.
|
void |
removeOne(YPersistenceManager pmgr,
YIdentifier identifier)
Removes one YIdentifier equal to identifier from the condition.
|
java.lang.String |
toString() |
java.lang.String |
toXML() |
XNode |
toXNode() |
clone, compareTo, getID, setID
public YTask _myTask
public static java.lang.String _mi_active
public static java.lang.String _mi_entered
public static java.lang.String _mi_executing
public static java.lang.String _mi_complete
public YInternalCondition(java.lang.String id, YTask myTask)
public void add(YPersistenceManager pmgr, YIdentifier identifier) throws YPersistenceException
add
in interface YConditionInterface
identifier
- pmgr
- an instantiated persistence manager object.YPersistenceException
- if there's a problem persisting the change.public boolean contains(YIdentifier identifier)
YConditionInterface
contains
in interface YConditionInterface
identifier
- public boolean containsIdentifier()
YConditionInterface
containsIdentifier
in interface YConditionInterface
public int getAmount(YIdentifier identifier)
getAmount
in interface YConditionInterface
identifier
- public java.util.List<YIdentifier> getIdentifiers()
YConditionInterface
getIdentifiers
in interface YConditionInterface
public YIdentifier removeOne(YPersistenceManager pmgr) throws YPersistenceException
removeOne
in interface YConditionInterface
pmgr
- an instantiated persistence manager object.YPersistenceException
- if there's a problem persisting the change.public void removeOne(YPersistenceManager pmgr, YIdentifier identifier) throws YPersistenceException
removeOne
in interface YConditionInterface
identifier
- pmgr
- an instantiated persistence manager object.YPersistenceException
- if there's a problem persisting the change.public void remove(YPersistenceManager pmgr, YIdentifier identifier, int amount) throws YStateException, YPersistenceException
remove
in interface YConditionInterface
identifier
- amount
- the amount to remove.pmgr
- an instantiated persistence manager object.YStateException
- iff amount is greater than the number of YIdentifiers
held inside this, and further more no change will be made to the state of this.YPersistenceException
- if there's a problem persisting the change.public void removeAll(YPersistenceManager pmgr, YIdentifier identifier) throws YPersistenceException
removeAll
in interface YConditionInterface
identifier
- pmgr
- an instantiated persistence manager object.YPersistenceException
- if there's a problem persisting the change.public void removeAll(YPersistenceManager pmgr) throws YPersistenceException
YConditionInterface
removeAll
in interface YConditionInterface
pmgr
- an instantiated persistence manager object.YPersistenceException
- if there's a problem persisting the change.public java.lang.String toString()
toString
in class YNetElement
public java.lang.String toXML()
public XNode toXNode()
Copyright © 2004-2014 The YAWL Foundation.