public class SourceSimulationStatus
extends java.lang.Object
Diese Klasse meldet sich als Quelle für die Attributgruppe “atg.simulationsStatusKonfiguration” an und stellt verschiedene Methoden zur Verfügung mit denen festgelegte Datensätze verschickt werden können.
Modifier and Type | Class and Description |
---|---|
private class |
SourceSimulationStatus.ClientSender |
Modifier and Type | Field and Description |
---|---|
private SourceSimulationStatus.ClientSender |
_clientSender |
private ClientDavInterface |
_connection |
private DataDescription |
_dataDescription |
private static Debug |
_debug
DebugLogger für Debug-Ausgaben
|
(package private) SystemObject |
_simulationObject |
private java.lang.Object |
_stateLock |
(package private) boolean |
_subscribed |
Constructor and Description |
---|
SourceSimulationStatus(ClientDavInterface connection,
SystemObject simulationObject,
short simulationVariant)
Erzeugt das Objekt und meldt sich als Sender für die Attributgruppe “atg.simulationsStatusKonfiguration” als Quelle an.
|
Modifier and Type | Method and Description |
---|---|
private void |
sendData(Data data) |
void |
sendDelete()
Verschickt einen Datensatz, der den Empfänger mitteiler, dass das Simulationobjekt gelöscht werden kann (TPuK1-126).
|
void |
sendNotReady() |
void |
sendReady() |
void |
unsubscribe()
Meldet den Sender ab.
|
private final ClientDavInterface _connection
private final DataDescription _dataDescription
private final java.lang.Object _stateLock
private final SourceSimulationStatus.ClientSender _clientSender
SystemObject _simulationObject
private static final Debug _debug
DebugLogger für Debug-Ausgaben
boolean _subscribed
public SourceSimulationStatus(ClientDavInterface connection, SystemObject simulationObject, short simulationVariant) throws OneSubscriptionPerSendData
Erzeugt das Objekt und meldt sich als Sender für die Attributgruppe “atg.simulationsStatusKonfiguration” als Quelle an.
connection
- Verbidnung, auf der sich angemeldet wirdsimulationObject
- Objekt, mit dem der Sender angemeldet wirdsimulationVariant
- Simulationsvariante, mit der sich der Sender anmeldetOneSubscriptionPerSendData
public void sendReady() throws SendSubscriptionNotConfirmed
SendSubscriptionNotConfirmed
public void sendNotReady() throws SendSubscriptionNotConfirmed
SendSubscriptionNotConfirmed
public void sendDelete() throws SendSubscriptionNotConfirmed
Verschickt einen Datensatz, der den Empfänger mitteiler, dass das Simulationobjekt gelöscht werden kann (TPuK1-126).
SendSubscriptionNotConfirmed
public void unsubscribe()
Meldet den Sender ab. Wurde der Sender bereits abgemeldet, wurd nichts gemacht. Wird nach Abmeldung weiter versucht Daten zu verschicken, werden diese nicht verschickt.
private void sendData(Data data) throws SendSubscriptionNotConfirmed
SendSubscriptionNotConfirmed