public class Simulation extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected boolean |
breadthFirst |
protected ProgressListener<Graph> |
frame |
protected SimulationHelper |
helper |
protected Iterator<byte[]> |
initStatesIterator |
protected int |
maxdepth |
protected int |
maxnodes |
int |
nbnode |
protected LinkedList |
queue |
protected boolean |
ready |
protected SimulationUpdater |
updater |
Constructor and Description |
---|
Simulation(org.colomoto.biolqm.LogicalModel model,
ProgressListener<Graph> frame,
SimulationParameters params)
Constructs an empty dynamic graph
|
Modifier and Type | Method and Description |
---|---|
Graph |
do_simulation() |
Iterator<byte[]> |
getInitStatesIterator() |
SimulationUpdater |
getUpdaterForState(byte[] state)
Create and initialize a SimulationUpdater for a given __state__.
|
void |
interrupt() |
void |
run()
run the simulation in a new thread.
|
void |
set_initialStates(List nodeOrder,
Map inputs,
Map m_initState) |
void |
setInitStatesIterator(Iterator<byte[]> initStatesIterator) |
protected LinkedList queue
protected final ProgressListener<Graph> frame
protected int maxnodes
protected int maxdepth
protected Iterator<byte[]> initStatesIterator
protected SimulationHelper helper
protected SimulationUpdater updater
protected boolean breadthFirst
public int nbnode
protected boolean ready
public Simulation(org.colomoto.biolqm.LogicalModel model, ProgressListener<Graph> frame, SimulationParameters params)
model
- the logical model on which we are workingframe
- params
- public void interrupt()
public SimulationUpdater getUpdaterForState(byte[] state)
state
- public Graph do_simulation() throws GsException
GsException
public Iterator<byte[]> getInitStatesIterator()
public void setInitStatesIterator(Iterator<byte[]> initStatesIterator)
initStatesIterator
- the initStatesIterator to setCopyright © 2005–2020. All rights reserved.