public class MembranePropertyCondition extends java.lang.Object implements Condition
| Constructor and Description |
|---|
MembranePropertyCondition(java.lang.String name,
java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
MembranePropertyCondition |
deepClone()
Deep clone this condition
|
int |
fetch(Membrane membrane,
int times)
fetch objects from membrane
|
java.lang.String |
getName()
Return property name of this condition
|
java.lang.String |
getValue()
Get the value of property
|
int |
satisfy(Membrane membrane)
check if condition satisfy the situation in membrane.
|
void |
setName(java.lang.String name)
Set the name of property
|
void |
setValue(java.lang.String value)
Set the property value of this condition
|
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.
|
public MembranePropertyCondition(java.lang.String name,
java.lang.String value)
public MembranePropertyCondition deepClone()
Conditionpublic int satisfy(Membrane membrane)
Conditionpublic int fetch(Membrane membrane, int times)
Conditionpublic void withdrawFetch(Membrane membrane, int times)
ConditionwithdrawFetch in interface Conditionmembrane - the membrane current condition withdraw objects totimes - withdraw fetch timespublic java.lang.String getName()
public void setName(java.lang.String name)
name - property namepublic java.lang.String getValue()
public void setValue(java.lang.String value)
value - property valuepublic java.lang.String toString()
toString in class java.lang.Object