Constructor and Description |
---|
PromoterCondition() |
PromoterCondition(PromoterCondition promoterCondition) |
PromoterCondition(java.lang.String type,
java.lang.String... dims) |
Modifier and Type | Method and Description |
---|---|
PromoterCondition |
deepClone()
Clone the name
|
int |
fetch(Membrane membrane,
int times)
fetch objects from membrane
|
int |
satisfy(Membrane membrane)
check if condition satisfy the situation in membrane.
|
java.lang.String |
toString() |
void |
withdrawFetch(Membrane membrane,
int times)
If some conditions in one rule cannot fetch the objects then the conditions
which have fetched the objects they need withdraw the objects they have
fetched.
|
equals, hashCode, isAnti, isAntiObject, setAnti, setName
addDimension, addDimension, addDimension, fix, get, getDimensions, getDimensionSize, getName, getNameDim, isFixed, predictPossibleValue, predictPossibleValueOfNeighbor, predictPossibleValueOfObjects, predictPossibleValueOfSubmembrane
getName, getNameDim
addDimension, addDimension, addDimension, fix, get, getDimensions, getDimensionSize, isFixed, predictPossibleValue
public PromoterCondition(PromoterCondition promoterCondition)
public PromoterCondition(java.lang.String type, java.lang.String... dims)
public PromoterCondition()
public int satisfy(Membrane membrane)
Condition
public int fetch(Membrane membrane, int times)
Condition
public void withdrawFetch(Membrane membrane, int times)
Condition
withdrawFetch
in interface Condition
membrane
- the membrane current condition withdraw objects totimes
- withdraw fetch timespublic PromoterCondition deepClone()
Name