de.bsvrz.puk.config.main.simulation
Class SourceSimulationStatus

java.lang.Object
  extended by 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

Nested Class Summary
private  class SourceSimulationStatus.ClientSender
           
 
Field Summary
private  SourceSimulationStatus.ClientSender _clientSender
           
private  ClientDavInterface _connection
           
private  DataDescription _dataDescription
           
private static Debug _debug
          DebugLogger für Debug-Ausgaben
(package private)  SystemObject _simulationObject
           
private  Object _stateLock
           
(package private)  boolean _subscribed
           
 
Constructor Summary
SourceSimulationStatus(ClientDavInterface connection, SystemObject simulationObject, short simulationVariant)
          Erzeugt das Objekt und meldt sich als Sender für die Attributgruppe "atg.simulationsStatusKonfiguration" als Quelle an.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_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
Constructor Detail

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 wird
simulationObject - Objekt, mit dem der Sender angemeldet wird
simulationVariant - Simulationsvariante, mit der sich der Sender anmeldet
Throws:
OneSubscriptionPerSendData
Method Detail

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