public class MembraneDissolveResult extends java.lang.Object implements Result, MembraneListener
Constructor and Description |
---|
MembraneDissolveResult() |
Modifier and Type | Method and Description |
---|---|
MembraneDissolveResult |
deepClone()
Deep clone a result
|
void |
endChecking(Membrane membrane)
End checking all rules if some of them are satisfied
|
void |
endFetching(Membrane membrane)
End fetching all the satisfied rules
|
void |
endSetting(Membrane membrane)
End setting product in this membrane include all its sub-membranes.
|
Tunnel |
selectTunnel(Membrane current)
Select which tunnel this result will go through
|
void |
setResult(Membrane membrane,
int times)
Set the result to target membrane
|
void |
startChecking(Membrane membrane)
Start to check all rules if some of them are satisfied
|
void |
startFetching(Membrane membrane)
Start to fetch all the satisfied rules
|
void |
startSetting(Membrane membrane)
Start to set product in this membrane
|
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public void setResult(Membrane membrane, int times) throws UnknownMembraneClassException, TimesException
Result
setResult
in interface Result
membrane
- target membranetimes
- set result timesUnknownMembraneClassException
- if membrane class can not be found while creating an instanceTimesException
public MembraneDissolveResult deepClone()
Result
public Tunnel selectTunnel(Membrane current) throws TunnelNotExistException
Result
selectTunnel
in interface Result
current
- current membraneTunnelNotExistException
- if tunnel doesn't exist and cannot be createdpublic void startChecking(Membrane membrane)
MembraneListener
startChecking
in interface MembraneListener
membrane
- this membranepublic void endChecking(Membrane membrane)
MembraneListener
endChecking
in interface MembraneListener
membrane
- this membranepublic void startFetching(Membrane membrane)
MembraneListener
startFetching
in interface MembraneListener
membrane
- this membranepublic void endFetching(Membrane membrane)
MembraneListener
endFetching
in interface MembraneListener
membrane
- this membranepublic void startSetting(Membrane membrane)
MembraneListener
startSetting
in interface MembraneListener
membrane
- this membranepublic void endSetting(Membrane membrane)
MembraneListener
endSetting
in interface MembraneListener
membrane
- this membrane