public class AvatarSimulation extends Simulation
Modifier and Type | Class and Description |
---|---|
static class |
AvatarSimulation.AvatarStrategy
enum specifying the different behavioral strategies of Avatar
|
Modifier and Type | Field and Description |
---|---|
int |
approxDepth
maximum depth for the approximate rewiring strategy
|
protected org.colomoto.biolqm.tool.simulation.multiplesuccessor.AsynchronousUpdater |
exhaustiveUpdater |
boolean |
keepOracle
whether oracles should be kept between iterations
|
boolean |
keepTransients
whether transient cycles should be kept between iterations
|
int |
maxPSize
maximum number of visited transitions to stop expansion approximated by
#states within the growing cycle times #exits
|
int |
maxRewiringSize
maximum number of states within a cycle to be rewired
|
int |
maxSteps
maximum depth
|
int |
minCSize
minimum cycle size for rewiring
|
int |
minTransientSize
minimum size of a transient cycles to be stored
|
int |
runs
number of iterations
|
int |
smallStateSpace
size of small state spaces for the inflationary mode
|
AvatarSimulation.AvatarStrategy |
strategy
Avatar rewiring strategy
|
int |
tauInit
cycle expansion rate
|
Constructor and Description |
---|
AvatarSimulation()
Instantiates an Avatar simulation
|
Modifier and Type | Method and Description |
---|---|
void |
addModel(StatefulLogicalModel _model) |
StateSet |
calculateComplexAttractor(StateSet Ct,
List<StateSet> temporaryTransients,
PriorityQueue<StateSet> savedTransients)
Calculates a complex attractor based on the knowledge of previous
incarnations
|
void |
dynamicUpdateValues()
Updates a simulation with parameterizations dynamically fixed based on the
properties of the input model
|
void |
extendCycle(State v,
StateSet cycle,
StateSet exits,
StateSet newstates,
int i,
int tau,
Map<String,Integer> time,
int originalTime)
Method for extending cycles before rewiring
|
String |
getName() |
String |
parametersToString()
Prints the current parameters
|
void |
rewriteGraph(StateSet cycle,
StateSet out,
FinalPaths pi)
Method for rewiring a cycle
|
Result |
runSim()
Performs the simulation
|
exit, output, publish, run, runSimulation, saveOutput, setComponents
public int tauInit
public int runs
public int maxSteps
public int maxPSize
public int maxRewiringSize
public int minCSize
public int smallStateSpace
public int minTransientSize
public boolean keepTransients
public boolean keepOracle
public AvatarSimulation.AvatarStrategy strategy
public int approxDepth
protected org.colomoto.biolqm.tool.simulation.multiplesuccessor.AsynchronousUpdater exhaustiveUpdater
public void addModel(StatefulLogicalModel _model)
addModel
in class Simulation
public Result runSim() throws Exception
Simulation
runSim
in class Simulation
Exception
public StateSet calculateComplexAttractor(StateSet Ct, List<StateSet> temporaryTransients, PriorityQueue<StateSet> savedTransients)
savedTransients
- C
- terminal cycles from all incarnationst
- the current timepublic void rewriteGraph(StateSet cycle, StateSet out, FinalPaths pi) throws Exception
cycle
- the cycle (state-set) to be rewiredout
- the exit statespi
- the transitions between cycle and exit states whose probability is
to be adjustedException
public void extendCycle(State v, StateSet cycle, StateSet exits, StateSet newstates, int i, int tau, Map<String,Integer> time, int originalTime)
v
- the state being expanded (null at the start)cycle
- the state-set representing the initial cycleresult
- the extended cyclei
- the current timetau
- the expansion ratetime
- structure maintaining the time/depth of the included statesoriginalTime
- the original timepublic void dynamicUpdateValues()
Simulation
dynamicUpdateValues
in class Simulation
public String parametersToString()
Simulation
parametersToString
in class Simulation
public String getName()
getName
in class Simulation
Copyright © 2005–2020. All rights reserved.