public class AvatarMDDSimulation extends AvatarSimulation
AvatarSimulation.AvatarStrategy
approxDepth, exhaustiveUpdater, keepOracle, keepTransients, maxPSize, maxRewiringSize, maxSteps, minCSize, minTransientSize, runs, smallStateSpace, strategy, tauInit
Constructor and Description |
---|
AvatarMDDSimulation()
Instantiates an Avatar simulation based on a logical model
|
Modifier and Type | Method and Description |
---|---|
MDDStateSet |
calculateComplexAttractor(List<MDDStateSet> C,
int t)
Calculates a complex attractor based on the knowledge of previous
incarnations
|
void |
extendCycle(State v,
MDDStateSet cycle,
MDDStateSet result,
int i,
int tau,
Map<String,Integer> time,
int originalTime)
Method for extending cycles before rewiring
|
void |
rewriteGraph(MDDStateSet cycle,
MDDStateSet out,
FinalPaths pi)
Method for rewiring a cycle
|
Result |
runSimulation()
Performs the simulation
|
addModel, calculateComplexAttractor, dynamicUpdateValues, extendCycle, getName, parametersToString, rewriteGraph, runSim
exit, output, publish, run, saveOutput, setComponents
public AvatarMDDSimulation()
_model
- a stateful logical model possibly defining a set of initial states
and oraclespublic Result runSimulation() throws Exception
Simulation
runSimulation
in class Simulation
Exception
public MDDStateSet calculateComplexAttractor(List<MDDStateSet> C, int t)
C
- terminal cycles from all incarnationst
- the current timepublic void rewriteGraph(MDDStateSet cycle, MDDStateSet 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, MDDStateSet cycle, MDDStateSet result, 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 timeCopyright © 2005–2020. All rights reserved.