public class SimulationManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
Modifier and Type | Method and Description |
---|---|
static void |
addNonSharableResource(java.lang.Object nonSharableResource)
Adds a non-sharable resource, eg a serial port, socket listener, etc.
|
void |
addSimulationListener(SimulationListener listener)
Add a simulation listener.
|
boolean |
getCurrentSimulationState()
Returns true if simulating or false for live mode.
|
static SimulationManager |
getSimulationManager()
Returns the singleton simulation manager.
|
static boolean |
hasNonSharableResource()
If any non-sharable
resources are in use, then this method will return true.
|
static void |
removeNonSharableResource(java.lang.Object nonSharableResource)
Removes a non-sharable resource, eg a serial port, socket listener, etc.
|
void |
removeSimulationListener(SimulationListener listener)
Removes a simulation listener.
|
void |
setSimulating(boolean b)
Setting this parameter to true will indicate to all listeners that the system has entered
simulation mode and record the current status.
|
public static final java.lang.String cvsRev
public static void addNonSharableResource(java.lang.Object nonSharableResource)
nonSharableResource
- the non-sharable resourcepublic void addSimulationListener(SimulationListener listener)
public boolean getCurrentSimulationState()
public static SimulationManager getSimulationManager()
public static boolean hasNonSharableResource()
nonSharableResource
- the non-sharable resourcepublic static void removeNonSharableResource(java.lang.Object nonSharableResource)
nonSharableResource
- the non-sharable resourcepublic void removeSimulationListener(SimulationListener listener)
public void setSimulating(boolean b)
b
- Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.