public class SimulationPpProvider extends com.google.common.util.concurrent.AbstractExecutionThreadService implements ParameterDataLink, Runnable
Link.Status| Modifier and Type | Field and Description |
|---|---|
protected long |
datacount |
protected boolean |
disabled |
boolean |
loopSimulation |
Date |
simulationRealStartTime |
Date |
simulationStartTime |
int |
simulationStepLengthMs |
long |
simutationStep |
| Constructor and Description |
|---|
SimulationPpProvider() |
SimulationPpProvider(String yamcsInstance,
String name,
LinkedHashMap<String,String> args) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable() |
void |
enable() |
YConfiguration |
getConfig() |
long |
getDataInCount() |
long |
getDataOutCount() |
String |
getDetailedStatus() |
Link.Status |
getLinkStatus() |
String |
getName() |
boolean |
isDisabled() |
PpSimulation |
loadSimulationData(String fileName)
Load simulation data from an XML file
|
void |
processSimulationData()
Processes the specified simulation scenario
|
void |
resetCounters() |
void |
run()
Entry point to run the simulation
|
void |
setParameterSink(ParameterSink ppListener) |
void |
setSimulationData(String xmlFilePath) |
protected boolean |
stop() |
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, shutDown, startAsync, startUp, state, stopAsync, toString, triggerShutdownpublic Date simulationStartTime
public Date simulationRealStartTime
public int simulationStepLengthMs
public long simutationStep
public boolean loopSimulation
protected volatile long datacount
protected volatile boolean disabled
public SimulationPpProvider(String yamcsInstance, String name, LinkedHashMap<String,String> args) throws ConfigurationException
ConfigurationExceptionpublic SimulationPpProvider()
public Link.Status getLinkStatus()
getLinkStatus in interface Linkpublic String getDetailedStatus()
getDetailedStatus in interface Linkpublic boolean isDisabled()
isDisabled in interface Linkpublic long getDataInCount()
getDataInCount in interface Linkpublic long getDataOutCount()
getDataOutCount in interface Linkpublic void resetCounters()
resetCounters in interface Linkpublic void setParameterSink(ParameterSink ppListener)
setParameterSink in interface ParameterDataLinkpublic void run()
public void setSimulationData(String xmlFilePath)
public void processSimulationData()
public PpSimulation loadSimulationData(String fileName)
fileName - protected boolean stop()
public YConfiguration getConfig()
Copyright © 2019 Space Applications Services. All rights reserved.