class SimulationsStatusObserver extends Thread implements de.bsvrz.dav.daf.main.ClientReceiverInterface
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private boolean |
aktiv
Aktivitätszustand des Threads zur Beobachtung des Simulationsstus.
|
private SimulationsStatus |
aktuellerStatus
der aktuelle Status der Simulation.
|
private de.bsvrz.dav.daf.main.DataDescription |
dataDescription
die Datenspezifikation der Instanz des Beobachters.
|
private EventListenerList |
listenerListe
die Liste der Eventlistener.
|
private static de.bsvrz.sys.funclib.debug.Debug |
LOGGER
Logger für Debug-Ausgaben.
|
private SimulationsStatus |
neuerStatus
der neu zu setzende Status der Simulation.
|
private Object |
neuerStatusMutex
Mutex für den Simulationstatus.
|
private de.bsvrz.dav.daf.main.config.SystemObject |
objekt
das Datenverteiler-Systemobjekt, das die Simulation repräsentiert.
|
private static de.bsvrz.dav.daf.main.DataDescription |
offLineStatusDesc
Datenspezifikation für eine Offline-Simulation.
|
private static de.bsvrz.dav.daf.main.DataDescription |
onLineStatusDesc
Datenspezifikation für eine Online-Simulation.
|
private de.bsvrz.dav.daf.main.ClientDavInterface |
verbindung
die verwendete Datenverteilerverbindung.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
SimulationsStatusObserver(de.bsvrz.dav.daf.main.ClientDavInterface verbindung,
de.bsvrz.dav.daf.main.config.SystemObject simulationsObjekt)
erzeugt ein Beobachterobjekt für das übergebene Systemobjekt für eine
Simulation und die entsprechende Datenverteilerverbindung.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addSimulationsStatusHandler(SimulationsStatusHandler handler)
fügt einen zu benachrichtigenden Handler für den Simulationszustand
hinzu.
|
(package private) void |
anhalten()
hält die Ausführung des Threads an.
|
(package private) void |
removeSimulationsStatusHandler(SimulationsStatusHandler handler)
entfernt einen zu benachrichtigenden Handler für den Simulationszustand.
|
void |
run() |
void |
update(de.bsvrz.dav.daf.main.ResultData[] results) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private static final de.bsvrz.sys.funclib.debug.Debug LOGGER
private static de.bsvrz.dav.daf.main.DataDescription offLineStatusDesc
private static de.bsvrz.dav.daf.main.DataDescription onLineStatusDesc
private final de.bsvrz.dav.daf.main.config.SystemObject objekt
private de.bsvrz.dav.daf.main.DataDescription dataDescription
private final EventListenerList listenerListe
private SimulationsStatus aktuellerStatus
private SimulationsStatus neuerStatus
private final Object neuerStatusMutex
private boolean aktiv
private final de.bsvrz.dav.daf.main.ClientDavInterface verbindung
SimulationsStatusObserver(de.bsvrz.dav.daf.main.ClientDavInterface verbindung, de.bsvrz.dav.daf.main.config.SystemObject simulationsObjekt)
verbindung
- die DatenverteilerverbindungsimulationsObjekt
- das Objektvoid addSimulationsStatusHandler(SimulationsStatusHandler handler)
handler
- der Handlervoid anhalten()
void removeSimulationsStatusHandler(SimulationsStatusHandler handler)
handler
- der Handlerpublic void update(de.bsvrz.dav.daf.main.ResultData[] results)
update
in interface de.bsvrz.dav.daf.main.ClientReceiverInterface
Copyright © 2017 BitCtrl Systems GmbH. All rights reserved.