public abstract class BaseSimulationUpdater extends Object implements SimulationUpdater
Modifier and Type | Field and Description |
---|---|
protected byte[] |
cur_state |
protected int |
depth |
protected int |
length |
protected org.ginsim.service.tool.reg2dyn.updater.ModelHelper |
modelHelper |
protected boolean |
multiple |
protected byte[] |
next |
protected Object |
node |
Constructor and Description |
---|
BaseSimulationUpdater(org.colomoto.biolqm.LogicalModel model) |
BaseSimulationUpdater(org.ginsim.service.tool.reg2dyn.updater.ModelHelper helper) |
Modifier and Type | Method and Description |
---|---|
SimulationUpdater |
cloneForState(byte[] state) |
protected abstract void |
doBuildNext() |
protected abstract SimulationUpdater |
doClone() |
protected abstract void |
doSetState() |
static SimulationUpdater |
getAsynchronousInstance(org.colomoto.biolqm.LogicalModel model) |
static SimulationUpdater |
getInstance(org.colomoto.biolqm.LogicalModel model,
PrioritySetDefinition pcdef) |
static SimulationUpdater |
getSynchronousInstance(org.colomoto.biolqm.LogicalModel model) |
boolean |
hasNext() |
Object |
next() |
byte[] |
nextState() |
protected int |
nodeChange(byte[] initState,
int i)
get change step for a gene
|
void |
remove() |
void |
setState(byte[] state,
int depth,
Object node)
set the state which should be used as basis.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final int length
protected byte[] cur_state
protected byte[] next
protected int depth
protected Object node
protected boolean multiple
protected org.ginsim.service.tool.reg2dyn.updater.ModelHelper modelHelper
public BaseSimulationUpdater(org.colomoto.biolqm.LogicalModel model)
public BaseSimulationUpdater(org.ginsim.service.tool.reg2dyn.updater.ModelHelper helper)
public byte[] nextState()
nextState
in interface SimulationUpdater
public void setState(byte[] state, int depth, Object node)
setState
in interface SimulationUpdater
node
- depth
- state
- protected abstract void doSetState()
protected abstract void doBuildNext()
protected abstract SimulationUpdater doClone()
public SimulationUpdater cloneForState(byte[] state)
cloneForState
in interface SimulationUpdater
protected int nodeChange(byte[] initState, int i)
initState
- i
- index of the gene to testpublic static SimulationUpdater getAsynchronousInstance(org.colomoto.biolqm.LogicalModel model)
public static SimulationUpdater getSynchronousInstance(org.colomoto.biolqm.LogicalModel model)
public static SimulationUpdater getInstance(org.colomoto.biolqm.LogicalModel model, PrioritySetDefinition pcdef)
Copyright © 2005–2020. All rights reserved.