public class EpochUpdateWriter extends Object implements UpdateEventListener<UpdatableUpdatedEvent>
SimulationManager.setUpdateEmissionCondition(Predicate). A node is observed by calling
addNodeToObserve(AutomatonNode).| Constructor and Description |
|---|
EpochUpdateWriter(Path workspacePath,
Path folder,
Set<ChemicalEntity> entitiesToObserve,
Set<ConcentrationBasedModule> modulesToObserve)
Creates a new
EpochUpdateWriter. |
EpochUpdateWriter(Path workspacePath,
Path folder,
Set<ChemicalEntity> entitiesToObserve,
Set<ConcentrationBasedModule> modulesToObserve,
boolean printHeader)
Creates a new
EpochUpdateWriter. |
| Modifier and Type | Method and Description |
|---|---|
void |
addNodeToObserve(AutomatonNode node)
Initializes a node that will be observed during simulation.
|
void |
closeWriters()
Close all associated writers.
|
QuantityFormatter<MolarConcentration> |
getConcentrationFormatter() |
QuantityFormatter<javax.measure.quantity.Time> |
getTimeFormatter() |
void |
onEventReceived(UpdatableUpdatedEvent event) |
void |
setConcentrationFormatter(QuantityFormatter<MolarConcentration> concentrationFormatter) |
void |
setTimeFormatter(QuantityFormatter<javax.measure.quantity.Time> timeFormatter) |
public EpochUpdateWriter(Path workspacePath, Path folder, Set<ChemicalEntity> entitiesToObserve, Set<ConcentrationBasedModule> modulesToObserve)
EpochUpdateWriter. A extended header is printed in each file.workspacePath - The location of the simulation workspace.folder - The folder, where the files written by this class should be located.entitiesToObserve - The entities to observe.modulesToObserve - The modules to record deltas from.public EpochUpdateWriter(Path workspacePath, Path folder, Set<ChemicalEntity> entitiesToObserve, Set<ConcentrationBasedModule> modulesToObserve, boolean printHeader)
EpochUpdateWriter.workspacePath - The location of the simulation workspace.folder - The folder, where the files written by this class should be located.entitiesToObserve - The entities to observe.modulesToObserve - The modules to record deltas from.printHeader - True, if an extended header should be printed.public QuantityFormatter<javax.measure.quantity.Time> getTimeFormatter()
public void setTimeFormatter(QuantityFormatter<javax.measure.quantity.Time> timeFormatter)
public QuantityFormatter<MolarConcentration> getConcentrationFormatter()
public void setConcentrationFormatter(QuantityFormatter<MolarConcentration> concentrationFormatter)
public void addNodeToObserve(AutomatonNode node) throws IOException
node - The node to be observed.IOException - If the file can not be created.public void closeWriters()
public void onEventReceived(UpdatableUpdatedEvent event)
onEventReceived in interface UpdateEventListener<UpdatableUpdatedEvent>Copyright © 2018. All rights reserved.