Package | Description |
---|---|
upsimulator.core | |
upsimulator.exceptions | |
upsimulator.interfaces | |
upsimulator.recognizer.actions | |
upsimulator.rules.conditions | |
upsimulator.rules.results | |
upsimulator.speedup |
Modifier and Type | Class and Description |
---|---|
class |
PMembrane
The default membrane implementation, a container of objects, rules, tunnels,
and properties.
|
Modifier and Type | Method and Description |
---|---|
Membrane |
PController.getEnvironment(java.lang.String modelInstanceStr)
Recognize simulation environment
|
Membrane |
PTunnel.getSource() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Membrane> |
PController.getRecords()
Get all the records of simulation result
|
java.util.List<Membrane> |
PTunnel.getTargets() |
Modifier and Type | Method and Description |
---|---|
void |
PMembrane.addChild(java.lang.Class<?> tunnelClass,
Membrane child) |
static void |
PTunnel.addChildParentTunnel(Membrane father,
Membrane child) |
void |
PTunnel.addTarget(Membrane target) |
void |
PMembrane.endChecking(Membrane membrane) |
void |
PMembrane.endFetching(Membrane membrane) |
void |
PMembrane.endSetting(Membrane membrane) |
void |
PMembrane.extend(Membrane template) |
int |
PRule.fetch(Membrane membrane,
int times) |
java.util.Map<Rule,java.lang.Integer> |
PRule.satisfiedRules(Membrane membrane)
Rule with dimensions check all the satisfied rule of it.
|
int |
PRule.satisfy(Membrane membrane) |
void |
PTunnel.setSource(Membrane source) |
void |
PMembrane.startChecking(Membrane membrane) |
void |
PMembrane.startFetching(Membrane membrane) |
void |
PMembrane.startSetting(Membrane membrane) |
Constructor and Description |
---|
TimesException(java.lang.Object who,
Membrane membrane,
int currentTimes,
int maxTimes) |
TunnelNotExistException(Membrane membrane,
Tunnel.TunnelType type) |
TunnelNotExistException(Membrane membrane,
Tunnel.TunnelType type,
java.lang.String tunnel) |
TunnelNotExistException(Membrane membrane,
Tunnel.TunnelType type,
java.lang.String tunnel,
Result result) |
Modifier and Type | Field and Description |
---|---|
static java.util.HashMap<java.lang.String,Membrane> |
Membrane.membraneClass |
Modifier and Type | Method and Description |
---|---|
Membrane |
Membrane.deepClone()
Deep clone a membrane
|
static Membrane |
Membrane.getMemClass(java.lang.String name)
Get the template of one membrane class
|
static Membrane |
Membrane.getMemInstanceOf(java.lang.String membraneName)
Create an instance of a membrane class
|
default Membrane |
Membrane.getParent()
Get the parent membrane of this membrane
|
Membrane |
Tunnel.getSource() |
Modifier and Type | Method and Description |
---|---|
default java.util.List<Membrane> |
Membrane.getChildren()
Get all the children to whom this membrane has a in tunnel
|
default java.util.List<Membrane> |
Membrane.getNeighbors()
Get all the neighbors to whom this membrane has a go tunnel
|
java.util.List<Membrane> |
Tunnel.getTargets() |
Modifier and Type | Method and Description |
---|---|
default void |
Membrane.addChild(java.lang.Class<?> tunnelClass,
Membrane child)
Add a child to this membrane
|
void |
Tunnel.addTarget(Membrane target) |
void |
MembraneListener.endChecking(Membrane membrane)
End checking all rules if some of them are satisfied
|
void |
MembraneListener.endFetching(Membrane membrane)
End fetching all the satisfied rules
|
void |
MembraneListener.endSetting(Membrane membrane)
End setting product in this membrane include all its sub-membranes.
|
void |
Membrane.extend(Membrane template)
Extend a template
|
int |
Rule.fetch(Membrane membrane,
int times)
Fetch objects from membrane
|
int |
Condition.fetch(Membrane membrane,
int tryTimes)
fetch objects from membrane
|
java.util.List<java.lang.Long[]> |
Dimensional.predictPossibleValue(Membrane membrane,
java.util.List<Dimension> dList)
Predict the possible values in this membrane
|
java.util.List<java.lang.Long[]> |
BasicName.predictPossibleValue(Membrane membrane,
java.util.List<Dimension> dList) |
java.util.List<java.lang.Long[]> |
BasicName.predictPossibleValueOfNeighbor(Membrane membrane,
java.util.List<Dimension> dList) |
java.util.List<java.lang.Long[]> |
BasicName.predictPossibleValueOfObjects(Membrane membrane,
java.util.List<Dimension> dList) |
java.util.List<java.lang.Long[]> |
BasicName.predictPossibleValueOfSubmembrane(Membrane membrane,
java.util.List<Dimension> dList) |
static void |
Membrane.registMemClass(java.lang.String name,
Membrane membrane,
boolean predefined)
Register a Membrane Class
|
java.util.Map<Rule,java.lang.Integer> |
Rule.satisfiedRules(Membrane membrane)
Check if rule with dimensions is satisfied, return the satisfied rules which
have fixed their dimensions.
|
int |
Rule.satisfy(Membrane membrane)
Check if all the conditions are satisfied at once.
|
int |
Condition.satisfy(Membrane membrane)
check if condition satisfy the situation in membrane.
|
Tunnel |
Result.selectTunnel(Membrane current)
Select which tunnel this result will go through
|
void |
Result.setResult(Membrane membrane,
int times)
Set the result to target membrane
|
void |
Tunnel.setSource(Membrane source) |
void |
MembraneListener.startChecking(Membrane membrane)
Start to check all rules if some of them are satisfied
|
void |
MembraneListener.startFetching(Membrane membrane)
Start to fetch all the satisfied rules
|
void |
MembraneListener.startSetting(Membrane membrane)
Start to set product in this membrane
|
void |
Condition.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.
|
Constructor and Description |
---|
MembraneExtendAction(Membrane to,
java.lang.String from) |
RuleSetDeclareAction(java.lang.String ruleSetName,
java.lang.String prefix,
Membrane to) |
RuleTunnelChecker(java.lang.String targetName,
Rule currRule,
Membrane currMembrane) |
TunnelCreateAction(Membrane source,
java.lang.String target) |
Modifier and Type | Method and Description |
---|---|
int |
RegularExpressionCondition.fetch(Membrane membrane,
int tryTimes) |
int |
PromoterCondition.fetch(Membrane membrane,
int times) |
int |
ProbabilisticCondition.fetch(Membrane membrane,
int tryTimes) |
int |
PriorityCondition.fetch(Membrane membrane,
int times)
If the highest priority equals to
priority , this rule will fetch. |
int |
ObjectConditionsWithTarget.fetch(Membrane membrane,
int times) |
int |
ObjectCondition.fetch(Membrane membrane,
int times) |
int |
MembranePropertyCondition.fetch(Membrane membrane,
int times) |
int |
InhibitorCondition.fetch(Membrane membrane,
int times) |
int |
BooleanCondition.fetch(Membrane membrane,
int times) |
java.util.List<java.lang.Long[]> |
ObjectConditionsWithTarget.predictPossibleValue(Membrane membrane,
java.util.List<Dimension> dList) |
int |
RegularExpressionCondition.satisfy(Membrane membrane) |
int |
PromoterCondition.satisfy(Membrane membrane) |
int |
ProbabilisticCondition.satisfy(Membrane membrane) |
int |
PriorityCondition.satisfy(Membrane membrane)
Save the highest priority.
|
int |
ObjectConditionsWithTarget.satisfy(Membrane membrane) |
int |
ObjectCondition.satisfy(Membrane membrane) |
int |
MembranePropertyCondition.satisfy(Membrane membrane) |
int |
InhibitorCondition.satisfy(Membrane membrane) |
int |
BooleanCondition.satisfy(Membrane membrane) |
void |
RegularExpressionCondition.withdrawFetch(Membrane membrane,
int times) |
void |
PromoterCondition.withdrawFetch(Membrane membrane,
int times) |
void |
ProbabilisticCondition.withdrawFetch(Membrane membrane,
int times) |
void |
PriorityCondition.withdrawFetch(Membrane membrane,
int times) |
void |
ObjectConditionsWithTarget.withdrawFetch(Membrane membrane,
int times) |
void |
ObjectCondition.withdrawFetch(Membrane membrane,
int times) |
void |
MembranePropertyCondition.withdrawFetch(Membrane membrane,
int times) |
void |
InhibitorCondition.withdrawFetch(Membrane membrane,
int times) |
void |
BooleanCondition.withdrawFetch(Membrane membrane,
int times) |
Modifier and Type | Method and Description |
---|---|
void |
MembraneDivisionResult.endChecking(Membrane membrane) |
void |
MembraneDissolveResult.endChecking(Membrane membrane) |
void |
MembraneDivisionResult.endFetching(Membrane membrane) |
void |
MembraneDissolveResult.endFetching(Membrane membrane) |
void |
MembraneDivisionResult.endSetting(Membrane membrane) |
void |
MembraneDissolveResult.endSetting(Membrane membrane) |
int |
PositionResult.fetch(Membrane membrane,
int times) |
int |
MembraneStatusResult.fetch(Membrane membrane,
int times) |
int |
MembranePropertyResult.fetch(Membrane membrane,
int tryTimes) |
int |
MembraneDivisionResult.fetch(Membrane membrane,
int tryTimes) |
java.util.List<java.lang.Long[]> |
MembraneDivisionResult.predictPossibleValue(Membrane membrane,
java.util.List<Dimension> dList) |
int |
PositionResult.satisfy(Membrane membrane) |
int |
MembraneStatusResult.satisfy(Membrane membrane) |
int |
MembranePropertyResult.satisfy(Membrane membrane) |
int |
MembraneDivisionResult.satisfy(Membrane membrane) |
Tunnel |
PositionResult.selectTunnel(Membrane current) |
Tunnel |
ObjectResult.selectTunnel(Membrane current) |
Tunnel |
MembranePropertyResult.selectTunnel(Membrane current) |
Tunnel |
MembraneDivisionResult.selectTunnel(Membrane current) |
Tunnel |
MembraneDissolveResult.selectTunnel(Membrane current) |
Tunnel |
MembraneDissolveAllResult.selectTunnel(Membrane current) |
Tunnel |
MembraneCreateResult.selectTunnel(Membrane current) |
Tunnel |
DelayedResult.selectTunnel(Membrane current) |
void |
PositionResult.setResult(Membrane membrane,
int times) |
void |
ObjectResult.setResult(Membrane membrane,
int times) |
void |
MembranePropertyResult.setResult(Membrane membrane,
int times) |
void |
MembraneDivisionResult.setResult(Membrane membrane,
int times) |
void |
MembraneDissolveResult.setResult(Membrane membrane,
int times) |
void |
MembraneDissolveAllResult.setResult(Membrane membrane,
int times) |
void |
MembraneCreateResult.setResult(Membrane membrane,
int times) |
void |
DelayedResult.setResult(Membrane membrane,
int times) |
void |
MembraneDivisionResult.startChecking(Membrane membrane) |
void |
MembraneDissolveResult.startChecking(Membrane membrane) |
void |
MembraneDivisionResult.startFetching(Membrane membrane) |
void |
MembraneDissolveResult.startFetching(Membrane membrane) |
void |
MembraneDivisionResult.startSetting(Membrane membrane) |
void |
MembraneDissolveResult.startSetting(Membrane membrane) |
void |
PositionResult.withdrawFetch(Membrane membrane,
int times) |
void |
MembraneStatusResult.withdrawFetch(Membrane membrane,
int times) |
void |
MembranePropertyResult.withdrawFetch(Membrane membrane,
int times) |
void |
MembraneDivisionResult.withdrawFetch(Membrane membrane,
int times) |
Constructor and Description |
---|
RuleChecker(Rule source,
java.util.List<java.lang.Long[]> list,
Membrane target) |