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()
Result
public void setResult(Membrane membrane, int times) throws UnknownMembraneClassException
Result
setResult
in interface Result
membrane
- 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
Result
selectTunnel
in interface Result
current
- current membraneTunnelNotExistException
- if tunnel doesn't exist and cannot be createdpublic java.lang.String toString()
toString
in class java.lang.Object
public int satisfy(Membrane membrane)
Condition
public int fetch(Membrane membrane, int tryTimes)
Condition
public void withdrawFetch(Membrane membrane, int times)
Condition
withdrawFetch
in interface Condition
membrane
- the membrane current condition withdraw objects totimes
- withdraw fetch times