de.bsvrz.sys.startstopp.skriptvew
Class StartStoppBlockVerwaltung

java.lang.Object
  extended by de.bsvrz.sys.startstopp.skriptvew.StartStoppBlockVerwaltung

public class StartStoppBlockVerwaltung
extends java.lang.Object

Klasse zum Verwalten der StartStopp Blöcke

Author:
Dambach Werke GmbH

Constructor Summary
StartStoppBlockVerwaltung()
          Parameterloser Konstruktor der Klasse, legt eine leere Hashmap an
 
Method Summary
 void addDaten(java.lang.String id, StartStoppBlock daten)
          Methode zum Hinzufügen der Daten
 java.util.HashMap<java.lang.String,StartStoppBlock> getAlleDaten()
          Methode liefert alle StartStopp Blöcke in Form einer Hashmap.
 StartStoppBlock getDaten(java.lang.String id)
          Methode liefert die Daten eines StartStopp Blocks mit einer bestimmten ID.
 boolean isStartStoppBlockBekannt(java.lang.String id)
          Methode prüft, ob ein StartStopp Block mit einer bestimmten ID bereits versorgt ist.
 void removeDaten(java.lang.String id)
          Methode zum Entfernen der Daten eines StartStopp Blocks.
 void reset()
          Methode löscht alle StartStopp Blöcke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartStoppBlockVerwaltung

public StartStoppBlockVerwaltung()
Parameterloser Konstruktor der Klasse, legt eine leere Hashmap an

Method Detail

addDaten

public void addDaten(java.lang.String id,
                     StartStoppBlock daten)
Methode zum Hinzufügen der Daten

Parameters:
id - Id unter der die Daten abgelegt werden
daten - Daten die hinzugefügt werden sollen

removeDaten

public void removeDaten(java.lang.String id)
Methode zum Entfernen der Daten eines StartStopp Blocks. Der Block wird über seine ID identifiziert

Parameters:
id - Id des zum Entfernenden StartStopp Blocks

getDaten

public StartStoppBlock getDaten(java.lang.String id)
Methode liefert die Daten eines StartStopp Blocks mit einer bestimmten ID.

Parameters:
id - Id des zu lesenden StartStopp Blocks
Returns:
Daten des StartStopp Blocks sofern vorhanden, sonst null.

isStartStoppBlockBekannt

public boolean isStartStoppBlockBekannt(java.lang.String id)
Methode prüft, ob ein StartStopp Block mit einer bestimmten ID bereits versorgt ist.

Parameters:
id - Id des zu prüfenden Blocks
Returns:
Block bereits bekannt: true, sonst false

getAlleDaten

public java.util.HashMap<java.lang.String,StartStoppBlock> getAlleDaten()
Methode liefert alle StartStopp Blöcke in Form einer Hashmap. Key = ID eines StartStopp Blocks, Value = Daten eines StartStopp Blocks

Returns:
alle Prozessdaten

reset

public void reset()
Methode löscht alle StartStopp Blöcke