de.bsvrz.puk.config.configFile.datamodel
Class ConfigMutableSet
java.lang.Object
de.bsvrz.puk.config.configFile.datamodel.AbstractConfigSystemObject
de.bsvrz.puk.config.configFile.datamodel.ConfigSystemObject
de.bsvrz.puk.config.configFile.datamodel.ConfigConfigurationObject
de.bsvrz.puk.config.configFile.datamodel.ConfigObjectSet
de.bsvrz.puk.config.configFile.datamodel.ConfigMutableSet
- All Implemented Interfaces:
- ConfigurationCommunicationInterface, ConfigurationObject, MutableCollection, MutableSet, ObjectSet, SystemObject, SystemObjectCollection, Comparable
public class ConfigMutableSet
- extends ConfigObjectSet
- implements MutableSet
Implementierung des Interfaces MutableSet
für dynamische Mengen auf Seiten der Konfiguration.
- Author:
- Kappich Systemberatung
Method Summary |
void |
add(SystemObject[] objects)
|
void |
add(SystemObject[] objects,
short simulationVariant)
Erweitert die add-Methode um eine Simulationsvariante, die angibt, in welcher Simulation diese Objekte der Menge hinzugefügt werden. |
void |
add(SystemObject object,
short simulationVariant)
Fügt ein Element zur dynamischen Menge in Abhängigkeit der Simulationsvariante. |
void |
addChangeListener(MutableSetChangeListener listener)
|
void |
addChangeListener(MutableSetChangeListener listener,
short simulationVariant)
|
void |
addChangeListener(short simulationVariant,
MutableCollectionChangeListener changeListener)
|
void |
addConfigurationCommunicationChangeListener(ConfigurationCommunicationChangeListener listener)
|
void |
deleteElements(short simulationVariant)
Löscht alle Elemente permanent aus dieser dynamischen Menge. |
List<SystemObject> |
getElements()
|
List<SystemObject> |
getElements(long time)
|
List<SystemObject> |
getElements(short simulationVariant)
|
List<SystemObject> |
getElementsDuringPeriod(long startTime,
long endTime)
|
List<SystemObject> |
getElementsDuringPeriod(long startTime,
long endTime,
short simulationVariant)
Bestimmt die Elemente, die während des gesamten angegebenen Zeitbereichs zur Zusammenstellung gehört haben in Abhängigkeit der Simulationsvariante. |
List<SystemObject> |
getElementsInPeriod(long startTime,
long endTime)
|
List<SystemObject> |
getElementsInPeriod(long startTime,
long endTime,
short simulationVariant)
Bestimmt die Elemente, die an mindestens einem Zeitpunkt des angegebenen Zeitbereichs zur Zusammenstellung gehört haben in Abhängigkeit der
Simulationsvariante. |
String |
getElementsManagementPid()
|
List<SystemObject> |
getElementsWithSimulationVariant(long time,
short simulationVariant)
|
List<SystemObject> |
getElementsWithSimulationVariant(short simulationVariant)
|
boolean |
isConfigurationCommunicationActive()
|
void |
remove(SystemObject[] objects)
|
void |
remove(SystemObject[] objects,
short simulationVariant)
Erweitert die remove-Methode um eine Simulationsvariante, die angibt, in welcher Simulation diese Objekte aus der Menge entfernt werden sollen. |
void |
remove(SystemObject object,
short simulationVariant)
Entfernt ein Element aus der dynamischen Menge in Abhängigkeit der Simulationsvariante. |
void |
removeChangeListener(MutableSetChangeListener listener)
|
void |
removeChangeListener(MutableSetChangeListener listener,
short simulationsVariant)
|
void |
removeChangeListener(short simulationVariant,
MutableCollectionChangeListener changeListener)
|
void |
removeConfigurationCommunicationChangeListener(ConfigurationCommunicationChangeListener listener)
|
Methods inherited from class de.bsvrz.puk.config.configFile.datamodel.ConfigConfigurationObject |
addSet, duplicate, duplicate, getMutableSet, getNonMutableSet, getNotValidSince, getObjectSet, getObjectSets, getValidSince, invalidate, isValid, removeSet, revalidate, simpleRevalidate |
Methods inherited from class de.bsvrz.puk.config.configFile.datamodel.ConfigSystemObject |
createConfigurationData, equals, getConfigurationData, getConfigurationData, getConfigurationData, getConfigurationData, getConfigurationData, getConfigurationDataBytes, getId, getName, getPid, getType, getUsedAttributeGroupUsages, hashCode, removeConfigurationData, setConfigurationData, setConfigurationData, setName, simpleInvalidation |
Methods inherited from class de.bsvrz.puk.config.configFile.datamodel.AbstractConfigSystemObject |
compareTo, getConfigurationArea, getConfigurationData, getDataModel, getInfo, getNameOrPidOrId, getPidOrId, getPidOrNameOrId, isOfType, isOfType, setConfigurationData, toString |
Methods inherited from interface de.bsvrz.dav.daf.main.config.ConfigurationObject |
addSet, duplicate, duplicate, getMutableSet, getNonMutableSet, getNotValidSince, getObjectSet, getObjectSets, getValidSince, removeSet, revalidate |
Methods inherited from interface de.bsvrz.dav.daf.main.config.SystemObject |
getConfigurationArea, getConfigurationData, getConfigurationData, getConfigurationData, getDataModel, getId, getInfo, getName, getNameOrPidOrId, getPid, getPidOrId, getPidOrNameOrId, getType, getUsedAttributeGroupUsages, invalidate, isOfType, isOfType, isValid, setConfigurationData, setConfigurationData, setConfigurationData, setName, toString |
Methods inherited from interface de.bsvrz.dav.daf.main.config.ConfigurationObject |
addSet, duplicate, duplicate, getMutableSet, getNonMutableSet, getNotValidSince, getObjectSet, getObjectSets, getValidSince, removeSet, revalidate |
Methods inherited from interface de.bsvrz.dav.daf.main.config.SystemObject |
getConfigurationArea, getConfigurationData, getConfigurationData, getConfigurationData, getDataModel, getId, getInfo, getName, getNameOrPidOrId, getPid, getPidOrId, getPidOrNameOrId, getType, getUsedAttributeGroupUsages, invalidate, isOfType, isOfType, isValid, setConfigurationData, setConfigurationData, setConfigurationData, setName, toString |
ConfigMutableSet
public ConfigMutableSet(ConfigurationArea configurationArea,
SystemObjectInformationInterface systemObjectInfo)
- Konstruktor einer dynamischen Menge.
- Parameters:
configurationArea
- Konfigurationsbereich dieser dynamischen MengesystemObjectInfo
- das korrespondierende Objekt aus den Konfigurationsdateien
addChangeListener
public void addChangeListener(MutableSetChangeListener listener)
- Specified by:
addChangeListener
in interface MutableSet
addChangeListener
public void addChangeListener(MutableSetChangeListener listener,
short simulationVariant)
removeChangeListener
public void removeChangeListener(MutableSetChangeListener listener)
- Specified by:
removeChangeListener
in interface MutableSet
removeChangeListener
public void removeChangeListener(MutableSetChangeListener listener,
short simulationsVariant)
deleteElements
public void deleteElements(short simulationVariant)
throws ConfigurationChangeException
- Löscht alle Elemente permanent aus dieser dynamischen Menge.
- Parameters:
simulationVariant
- die Simulationsvariante
- Throws:
ConfigurationChangeException
- Falls die Elemente zur Simulationsvariante nicht gelöscht werden konnten oder nicht gelöscht werden dürfen (bei Simulationsvariante 0).
getElements
public List<SystemObject> getElements()
- Specified by:
getElements
in interface SystemObjectCollection
getElementsWithSimulationVariant
public List<SystemObject> getElementsWithSimulationVariant(short simulationVariant)
getElements
public List<SystemObject> getElements(long time)
- Specified by:
getElements
in interface SystemObjectCollection
getElementsWithSimulationVariant
public List<SystemObject> getElementsWithSimulationVariant(long time,
short simulationVariant)
getElementsInPeriod
public List<SystemObject> getElementsInPeriod(long startTime,
long endTime)
- Specified by:
getElementsInPeriod
in interface SystemObjectCollection
getElementsInPeriod
public List<SystemObject> getElementsInPeriod(long startTime,
long endTime,
short simulationVariant)
- Bestimmt die Elemente, die an mindestens einem Zeitpunkt des angegebenen Zeitbereichs zur Zusammenstellung gehört haben in Abhängigkeit der
Simulationsvariante.
- Parameters:
startTime
- Erster Zeitpunkt des Zeitbereichs in Millisekunden seit 1970.endTime
- Letzter Zeitpunkt des Zeitbereichs in Millisekunden seit 1970.simulationVariant
- die Simulationsvariante
- Returns:
- Liste mit den zu mindestens einem Zeitpunkt des Zeitbereichs zur Zusammenstellung gehörenden System-Objekten.
getElementsDuringPeriod
public List<SystemObject> getElementsDuringPeriod(long startTime,
long endTime)
- Specified by:
getElementsDuringPeriod
in interface SystemObjectCollection
getElementsDuringPeriod
public List<SystemObject> getElementsDuringPeriod(long startTime,
long endTime,
short simulationVariant)
- Bestimmt die Elemente, die während des gesamten angegebenen Zeitbereichs zur Zusammenstellung gehört haben in Abhängigkeit der Simulationsvariante.
- Parameters:
startTime
- Erster Zeitpunkt des Zeitbereichs in Millisekunden seit 1970.endTime
- Letzter Zeitpunkt des Zeitbereichs in Millisekunden seit 1970.simulationVariant
- die Simulationsvariante
- Returns:
- Liste mit den während des gesamten Zeitbereichs zur Zusammenstellung gehörenden System-Objekten.
add
public void add(SystemObject object,
short simulationVariant)
throws ConfigurationChangeException
- Fügt ein Element zur dynamischen Menge in Abhängigkeit der Simulationsvariante.
- Parameters:
object
- Element, welches hinzugefügt werden sollsimulationVariant
- die Simulationsvariante
- Throws:
ConfigurationChangeException
- Falls das Objekt nicht hinzugefügt werden kann/darf.
add
public void add(SystemObject[] objects)
throws ConfigurationChangeException
- Specified by:
add
in interface ObjectSet
- Throws:
ConfigurationChangeException
add
public void add(SystemObject[] objects,
short simulationVariant)
throws ConfigurationChangeException
- Erweitert die add-Methode um eine Simulationsvariante, die angibt, in welcher Simulation diese Objekte der Menge hinzugefügt werden.
- Parameters:
objects
- die hinzuzufügenden ElementesimulationVariant
- die Simulationsvariante
- Throws:
ConfigurationChangeException
- Wenn mindestens eines der übergebenen Objekte nicht in die Menge aufgenommen werden konnte und noch nicht in der Menge enthalten war.- See Also:
add(de.bsvrz.dav.daf.main.config.SystemObject[])
getElementsManagementPid
public String getElementsManagementPid()
remove
public void remove(SystemObject object,
short simulationVariant)
throws ConfigurationChangeException
- Entfernt ein Element aus der dynamischen Menge in Abhängigkeit der Simulationsvariante.
- Parameters:
object
- Element, welches aus der dynamischen Menge entfernt werden sollsimulationVariant
- die Simulationsvariante
- Throws:
ConfigurationChangeException
- Falls das Element nicht entfernt werden kann.
remove
public void remove(SystemObject[] objects)
throws ConfigurationChangeException
- Specified by:
remove
in interface ObjectSet
- Throws:
ConfigurationChangeException
remove
public void remove(SystemObject[] objects,
short simulationVariant)
throws ConfigurationChangeException
- Erweitert die remove-Methode um eine Simulationsvariante, die angibt, in welcher Simulation diese Objekte aus der Menge entfernt werden sollen.
- Parameters:
objects
- Elemente, welche aus der dynamischen Menge entfernt werden sollensimulationVariant
- die Simulationsvariante
- Throws:
ConfigurationChangeException
- Falls die Elemente nicht entfernt werden können.
addChangeListener
public void addChangeListener(short simulationVariant,
MutableCollectionChangeListener changeListener)
- Specified by:
addChangeListener
in interface MutableCollection
removeChangeListener
public void removeChangeListener(short simulationVariant,
MutableCollectionChangeListener changeListener)
- Specified by:
removeChangeListener
in interface MutableCollection
getElements
public List<SystemObject> getElements(short simulationVariant)
- Specified by:
getElements
in interface MutableCollection
addConfigurationCommunicationChangeListener
public void addConfigurationCommunicationChangeListener(ConfigurationCommunicationChangeListener listener)
- Specified by:
addConfigurationCommunicationChangeListener
in interface ConfigurationCommunicationInterface
removeConfigurationCommunicationChangeListener
public void removeConfigurationCommunicationChangeListener(ConfigurationCommunicationChangeListener listener)
- Specified by:
removeConfigurationCommunicationChangeListener
in interface ConfigurationCommunicationInterface
isConfigurationCommunicationActive
public boolean isConfigurationCommunicationActive()
- Specified by:
isConfigurationCommunicationActive
in interface ConfigurationCommunicationInterface