public class MembranePropertyResult extends java.lang.Object implements Result, Condition
| Constructor and Description |
|---|
MembranePropertyResult() |
MembranePropertyResult(java.lang.String property,
java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
MembranePropertyResult |
deepClone()
Deep clone a result
|
int |
fetch(Membrane membrane,
int tryTimes)
fetch objects from membrane
|
java.lang.String |
getProperty() |
java.lang.String |
getValue() |
int |
satisfy(Membrane membrane)
check if condition satisfy the situation in membrane.
|
Tunnel |
selectTunnel(Membrane current)
Select which tunnel this result will go through
|
void |
setProperty(java.lang.String property) |
void |
setResult(Membrane membrane,
int times)
Set the result to target membrane
|
void |
setValue(java.lang.String value) |
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 MembranePropertyResult()
public MembranePropertyResult(java.lang.String property,
java.lang.String value)
public MembranePropertyResult deepClone()
Resultpublic void setResult(Membrane membrane, int times) throws UnknownMembraneClassException
ResultsetResult in interface Resultmembrane - target membranetimes - set result timesUnknownMembraneClassException - if membrane class can not be found while creating an instancepublic java.lang.String getProperty()
public void setProperty(java.lang.String property)
public java.lang.String getValue()
public void setValue(java.lang.String value)
public Tunnel selectTunnel(Membrane current) throws TunnelNotExistException
ResultselectTunnel in interface Resultcurrent - current membraneTunnelNotExistException - if tunnel doesn't exist and cannot be createdpublic java.lang.String toString()
toString in class java.lang.Objectpublic int satisfy(Membrane membrane)
Conditionpublic int fetch(Membrane membrane, int tryTimes)
Conditionpublic void withdrawFetch(Membrane membrane, int times)
ConditionwithdrawFetch in interface Conditionmembrane - the membrane current condition withdraw objects totimes - withdraw fetch times