public interface Condition
extends java.lang.Cloneable
| Modifier and Type | Method and Description |
|---|---|
Condition |
deepClone()
Deep clone this condition
|
int |
fetch(Membrane membrane,
int tryTimes)
fetch objects from membrane
|
int |
satisfy(Membrane membrane)
check if condition satisfy the situation in membrane.
|
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.
|
int satisfy(Membrane membrane)
membrane - the membrane where to check the condition0 if not satisfied.int fetch(Membrane membrane, int tryTimes)
membrane - the membrane where to fetch objectstryTimes - how many times going to fetchvoid withdrawFetch(Membrane membrane, int times)
membrane - the membrane current condition withdraw objects totimes - withdraw fetch timesCondition deepClone()