public class MembraneStatusResult extends MembranePropertyResult implements Condition
Constructor and Description |
---|
MembraneStatusResult(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
MembraneStatusResult |
deepClone()
Deep clone a result
|
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.
|
getProperty, getValue, selectTunnel, setProperty, setResult, setValue
public MembraneStatusResult deepClone()
Result
public int satisfy(Membrane membrane)
Condition
satisfy
in interface Condition
satisfy
in class MembranePropertyResult
membrane
- the membrane where to check the condition0
if not satisfied.public int fetch(Membrane membrane, int times)
Condition
fetch
in interface Condition
fetch
in class MembranePropertyResult
membrane
- the membrane where to fetch objectstimes
- how many times going to fetchpublic void withdrawFetch(Membrane membrane, int times)
Condition
withdrawFetch
in interface Condition
withdrawFetch
in class MembranePropertyResult
membrane
- the membrane current condition withdraw objects totimes
- withdraw fetch timespublic java.lang.String toString()
toString
in class MembranePropertyResult