| Modifier and Type | Class and Description |
|---|---|
class |
PositionResult.Target |
| Constructor and Description |
|---|
PositionResult() |
PositionResult(Tunnel.TunnelType move) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDimension(java.lang.Long dimensions)
Add new fixed dimensions to an instance of
Dimensional. |
void |
addDimension(java.lang.String formulas)
Add new formula dimensions to an instance of dimension.
|
void |
addObjectResult(ObjectResult or) |
void |
addTarget(PositionResult.Target target) |
PositionResult |
deepClone()
Clone the name
|
int |
fetch(Membrane membrane,
int times)
fetch objects from membrane
|
void |
fix(java.util.Map<java.lang.String,java.lang.Object> mappedValues)
Fix all the dimension by calculating them using the mapped values
|
java.util.ArrayList<Dimension> |
getDimensions()
Get all the dimensions of an instance
|
int |
getDimensionSize()
Return the number of total dimensions
|
Tunnel.TunnelType |
getMove() |
java.lang.String |
getNameDim()
Get the name with dimensions.
|
java.util.ArrayList<PositionResult.Target> |
getTargets() |
boolean |
isFixed()
Check if all the dimensions are fixed
|
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 |
setMove(Tunnel.TunnelType move) |
void |
setResult(Membrane membrane,
int times)
Set the result to target 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.
|
addDimension, get, getName, predictPossibleValue, predictPossibleValueOfNeighbor, predictPossibleValueOfObjects, predictPossibleValueOfSubmembrane, setNamepublic PositionResult()
public PositionResult(Tunnel.TunnelType move)
public void addObjectResult(ObjectResult or)
public void addTarget(PositionResult.Target target)
public void setResult(Membrane membrane, int times)
Resultpublic PositionResult deepClone()
Namepublic Tunnel.TunnelType getMove()
public void setMove(Tunnel.TunnelType move)
public java.util.ArrayList<PositionResult.Target> getTargets()
public java.lang.String toString()
toString in class java.lang.Objectpublic void addDimension(java.lang.Long dimensions)
DimensionalDimensional. For example,
a[1] have a dimension 1 and 1 should be added to a.addDimension in interface DimensionaladdDimension in class BasicNamedimensions - dimensionspublic void addDimension(java.lang.String formulas)
Dimensionali+1 and i+1 should be added to a.addDimension in interface DimensionaladdDimension in class BasicNameformulas - dimensionspublic int getDimensionSize()
DimensionalgetDimensionSize in interface DimensionalgetDimensionSize in class BasicNamepublic java.util.ArrayList<Dimension> getDimensions()
DimensionalgetDimensions in interface DimensionalgetDimensions in class BasicNamepublic java.lang.String getNameDim()
Name2, then the return value is a[2].getNameDim in interface NamegetNameDim in class BasicNamepublic boolean isFixed()
DimensionalisFixed in interface DimensionalisFixed in class BasicNametrue if all the dimensions are fixed, and if
getDimensionSize()==0 return true, else return
falsepublic void fix(java.util.Map<java.lang.String,java.lang.Object> mappedValues)
Dimensionalfix in interface Dimensionalfix in class BasicNamemappedValues - mapped valuespublic int satisfy(Membrane membrane)
Conditionpublic int fetch(Membrane membrane, int times)
Conditionpublic void withdrawFetch(Membrane membrane, int times)
ConditionwithdrawFetch in interface Conditionmembrane - the membrane current condition withdraw objects totimes - withdraw fetch timespublic Tunnel selectTunnel(Membrane current) throws TunnelNotExistException
ResultselectTunnel in interface Resultcurrent - current membraneTunnelNotExistException - if tunnel doesn't exist and cannot be created