de.bsvrz.puk.config.main.simulation
Class SourceSimulationStatus
java.lang.Object
de.bsvrz.puk.config.main.simulation.SourceSimulationStatus
public class SourceSimulationStatus
- extends 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.
- Author:
- Achim Wullenkord (AW), Kappich Systemberatung
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_connection
private final ClientDavInterface _connection
_dataDescription
private final DataDescription _dataDescription
_stateLock
private final Object _stateLock
_clientSender
private final SourceSimulationStatus.ClientSender _clientSender
_simulationObject
SystemObject _simulationObject
_debug
private static final Debug _debug
- DebugLogger für Debug-Ausgaben
_subscribed
boolean _subscribed
SourceSimulationStatus
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.
- Parameters:
connection
- Verbidnung, auf der sich angemeldet wirdsimulationObject
- Objekt, mit dem der Sender angemeldet wirdsimulationVariant
- Simulationsvariante, mit der sich der Sender anmeldet
- Throws:
OneSubscriptionPerSendData
sendReady
public void sendReady()
throws SendSubscriptionNotConfirmed
- Throws:
SendSubscriptionNotConfirmed
sendNotReady
public void sendNotReady()
throws SendSubscriptionNotConfirmed
- Throws:
SendSubscriptionNotConfirmed
sendDelete
public void sendDelete()
throws SendSubscriptionNotConfirmed
- Verschickt einen Datensatz, der den Empfänger mitteiler, dass das Simulationobjekt gelöscht werden kann (TPuK1-126).
- Throws:
SendSubscriptionNotConfirmed
unsubscribe
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.
sendData
private void sendData(Data data)
throws SendSubscriptionNotConfirmed
- Throws:
SendSubscriptionNotConfirmed