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:
de.bsvrz.dav.daf.main.config.ConfigurationCommunicationInterface,de.bsvrz.dav.daf.main.config.ConfigurationObject,de.bsvrz.dav.daf.main.config.MutableCollection,de.bsvrz.dav.daf.main.config.MutableSet,de.bsvrz.dav.daf.main.config.ObjectSet,de.bsvrz.dav.daf.main.config.SystemObject,de.bsvrz.dav.daf.main.config.SystemObjectCollection,java.lang.Comparable
public class ConfigMutableSet extends ConfigObjectSet implements de.bsvrz.dav.daf.main.config.MutableSet
Implementierung des InterfacesMutableSetfür dynamische Mengen auf Seiten der Konfiguration.
-
-
Constructor Summary
Constructors Constructor Description ConfigMutableSet(de.bsvrz.dav.daf.main.config.ConfigurationArea configurationArea, SystemObjectInformationInterface systemObjectInfo)Konstruktor einer dynamischen Menge.
-
Method Summary
Modifier and Type Method Description voidadd(de.bsvrz.dav.daf.main.config.SystemObject[] objects)voidadd(de.bsvrz.dav.daf.main.config.SystemObject[] objects, short simulationVariant)Erweitert die add-Methode um eine Simulationsvariante, die angibt, in welcher Simulation diese Objekte der Menge hinzugefügt werden.voidadd(de.bsvrz.dav.daf.main.config.SystemObject object, short simulationVariant)Fügt ein Element zur dynamischen Menge in Abhängigkeit der Simulationsvariante.voidaddChangeListener(short simulationVariant, de.bsvrz.dav.daf.main.config.MutableCollectionChangeListener changeListener)voidaddChangeListener(de.bsvrz.dav.daf.main.config.MutableSetChangeListener listener)voidaddChangeListener(de.bsvrz.dav.daf.main.config.MutableSetChangeListener listener, short simulationVariant)voidaddConfigurationCommunicationChangeListener(de.bsvrz.dav.daf.main.config.ConfigurationCommunicationChangeListener listener)voiddeleteElements(short simulationVariant)Löscht alle Elemente permanent aus dieser dynamischen Menge.java.util.List<de.bsvrz.dav.daf.main.config.SystemObject>deleteElementsOlderThan(long deletionTime)Entfernt alle historischen Elemente, die vor dem angegebenen Zeitstempel auf ungültig gesetzt wurdenjava.util.Collection<? extends MutableElementInterface>getAllElements()Gibt alle Elemente der Menge zurückjava.util.List<de.bsvrz.dav.daf.main.config.SystemObject>getElements()java.util.List<de.bsvrz.dav.daf.main.config.SystemObject>getElements(long time)java.util.List<de.bsvrz.dav.daf.main.config.SystemObject>getElements(short simulationVariant)java.util.List<de.bsvrz.dav.daf.main.config.SystemObject>getElementsDuringPeriod(long startTime, long endTime)java.util.List<de.bsvrz.dav.daf.main.config.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.java.util.List<de.bsvrz.dav.daf.main.config.SystemObject>getElementsInPeriod(long startTime, long endTime)java.util.List<de.bsvrz.dav.daf.main.config.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.java.lang.StringgetElementsManagementPid()java.util.List<de.bsvrz.dav.daf.main.config.SystemObject>getElementsWithSimulationVariant(long time, short simulationVariant)Gibt die zum angegebenen Zeitpunkt gültigen Elemente der angegebenen Simulationsvariante zurückjava.util.List<de.bsvrz.dav.daf.main.config.SystemObject>getElementsWithSimulationVariant(short simulationVariant)Gibt die aktuell gültigen Elemente der angegebenen Simulationsvariante zurückMutableSetStoragegetMutableSetStorage()booleanisConfigurationCommunicationActive()voidremove(de.bsvrz.dav.daf.main.config.SystemObject[] objects)voidremove(de.bsvrz.dav.daf.main.config.SystemObject[] objects, short simulationVariant)Erweitert die remove-Methode um eine Simulationsvariante, die angibt, in welcher Simulation diese Objekte aus der Menge entfernt werden sollen.voidremove(de.bsvrz.dav.daf.main.config.SystemObject object, short simulationVariant)Entfernt ein Element aus der dynamischen Menge in Abhängigkeit der Simulationsvariante.voidremoveChangeListener(short simulationVariant, de.bsvrz.dav.daf.main.config.MutableCollectionChangeListener changeListener)voidremoveChangeListener(de.bsvrz.dav.daf.main.config.MutableSetChangeListener listener)voidremoveChangeListener(de.bsvrz.dav.daf.main.config.MutableSetChangeListener listener, short simulationsVariant)voidremoveConfigurationCommunicationChangeListener(de.bsvrz.dav.daf.main.config.ConfigurationCommunicationChangeListener listener)-
Methods inherited from class de.bsvrz.puk.config.configFile.datamodel.ConfigObjectSet
add, getObjectSetType, remove
-
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, getObjectLookupForData, getPid, getType, getUsedAttributeGroupUsages, hashCode, originalHashCode, 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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.ObjectSet
add, getObjectSetType, remove
-
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
-
-
-
-
Constructor Detail
-
ConfigMutableSet
public ConfigMutableSet(de.bsvrz.dav.daf.main.config.ConfigurationArea configurationArea, SystemObjectInformationInterface systemObjectInfo)Konstruktor einer dynamischen Menge.- Parameters:
configurationArea- Konfigurationsbereich dieser dynamischen MengesystemObjectInfo- das korrespondierende Objekt aus den Konfigurationsdateien
-
-
Method Detail
-
addChangeListener
public void addChangeListener(de.bsvrz.dav.daf.main.config.MutableSetChangeListener listener)
- Specified by:
addChangeListenerin interfacede.bsvrz.dav.daf.main.config.MutableSet
-
addChangeListener
public void addChangeListener(de.bsvrz.dav.daf.main.config.MutableSetChangeListener listener, short simulationVariant)
-
removeChangeListener
public void removeChangeListener(de.bsvrz.dav.daf.main.config.MutableSetChangeListener listener)
- Specified by:
removeChangeListenerin interfacede.bsvrz.dav.daf.main.config.MutableSet
-
removeChangeListener
public void removeChangeListener(de.bsvrz.dav.daf.main.config.MutableSetChangeListener listener, short simulationsVariant)
-
deleteElements
public void deleteElements(short simulationVariant) throws de.bsvrz.dav.daf.main.config.ConfigurationChangeExceptionLöscht alle Elemente permanent aus dieser dynamischen Menge.- Parameters:
simulationVariant- die Simulationsvariante- Throws:
de.bsvrz.dav.daf.main.config.ConfigurationChangeException- Falls die Elemente zur Simulationsvariante nicht gelöscht werden konnten oder nicht gelöscht werden dürfen (bei Simulationsvariante 0).
-
deleteElementsOlderThan
public java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> deleteElementsOlderThan(long deletionTime) throws de.bsvrz.dav.daf.main.config.ConfigurationChangeExceptionEntfernt alle historischen Elemente, die vor dem angegebenen Zeitstempel auf ungültig gesetzt wurden- Parameters:
deletionTime- Zeitstempel analog zu System.currentTimeMillis()- Returns:
- Alle aus den Referenzen bereinigten Systemobjekte
- Throws:
de.bsvrz.dav.daf.main.config.ConfigurationChangeException
-
getElements
public java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> getElements()
- Specified by:
getElementsin interfacede.bsvrz.dav.daf.main.config.SystemObjectCollection
-
getElementsWithSimulationVariant
public java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> getElementsWithSimulationVariant(short simulationVariant)
Gibt die aktuell gültigen Elemente der angegebenen Simulationsvariante zurück- Parameters:
simulationVariant- Simulationsvariante oder 0 für die normalen Elemente- Returns:
- die Elemente der angegebenen Simulationsvariante
-
getElements
public java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> getElements(long time)
- Specified by:
getElementsin interfacede.bsvrz.dav.daf.main.config.SystemObjectCollection
-
getElementsWithSimulationVariant
public java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> getElementsWithSimulationVariant(long time, short simulationVariant)Gibt die zum angegebenen Zeitpunkt gültigen Elemente der angegebenen Simulationsvariante zurück- Parameters:
time- Zeitpunkt analog zuSystem.currentTimeMillis()simulationVariant- Simulationsvariante oder 0 für die normalen Elemente- Returns:
- die Elemente der angegebenen Simulationsvariante
-
getElementsInPeriod
public java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> getElementsInPeriod(long startTime, long endTime)- Specified by:
getElementsInPeriodin interfacede.bsvrz.dav.daf.main.config.SystemObjectCollection
-
getElementsInPeriod
public java.util.List<de.bsvrz.dav.daf.main.config.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 java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> getElementsDuringPeriod(long startTime, long endTime)- Specified by:
getElementsDuringPeriodin interfacede.bsvrz.dav.daf.main.config.SystemObjectCollection
-
getElementsDuringPeriod
public java.util.List<de.bsvrz.dav.daf.main.config.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(de.bsvrz.dav.daf.main.config.SystemObject object, short simulationVariant) throws de.bsvrz.dav.daf.main.config.ConfigurationChangeExceptionFügt ein Element zur dynamischen Menge in Abhängigkeit der Simulationsvariante.- Parameters:
object- Element, welches hinzugefügt werden sollsimulationVariant- die Simulationsvariante- Throws:
de.bsvrz.dav.daf.main.config.ConfigurationChangeException- Falls das Objekt nicht hinzugefügt werden kann/darf.
-
add
public void add(de.bsvrz.dav.daf.main.config.SystemObject[] objects) throws de.bsvrz.dav.daf.main.config.ConfigurationChangeException- Specified by:
addin interfacede.bsvrz.dav.daf.main.config.ObjectSet- Throws:
de.bsvrz.dav.daf.main.config.ConfigurationChangeException
-
add
public void add(de.bsvrz.dav.daf.main.config.SystemObject[] objects, short simulationVariant) throws de.bsvrz.dav.daf.main.config.ConfigurationChangeExceptionErweitert 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:
de.bsvrz.dav.daf.main.config.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[])
-
getMutableSetStorage
public MutableSetStorage getMutableSetStorage()
-
getElementsManagementPid
public java.lang.String getElementsManagementPid()
-
remove
public void remove(de.bsvrz.dav.daf.main.config.SystemObject object, short simulationVariant) throws de.bsvrz.dav.daf.main.config.ConfigurationChangeExceptionEntfernt 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:
de.bsvrz.dav.daf.main.config.ConfigurationChangeException- Falls das Element nicht entfernt werden kann.
-
remove
public void remove(de.bsvrz.dav.daf.main.config.SystemObject[] objects) throws de.bsvrz.dav.daf.main.config.ConfigurationChangeException- Specified by:
removein interfacede.bsvrz.dav.daf.main.config.ObjectSet- Throws:
de.bsvrz.dav.daf.main.config.ConfigurationChangeException
-
remove
public void remove(de.bsvrz.dav.daf.main.config.SystemObject[] objects, short simulationVariant) throws de.bsvrz.dav.daf.main.config.ConfigurationChangeExceptionErweitert 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:
de.bsvrz.dav.daf.main.config.ConfigurationChangeException- Falls die Elemente nicht entfernt werden können.
-
getAllElements
public java.util.Collection<? extends MutableElementInterface> getAllElements()
Gibt alle Elemente der Menge zurück- Returns:
- Unveränderliche Collection der Elemente.
-
addChangeListener
public void addChangeListener(short simulationVariant, de.bsvrz.dav.daf.main.config.MutableCollectionChangeListener changeListener)- Specified by:
addChangeListenerin interfacede.bsvrz.dav.daf.main.config.MutableCollection
-
removeChangeListener
public void removeChangeListener(short simulationVariant, de.bsvrz.dav.daf.main.config.MutableCollectionChangeListener changeListener)- Specified by:
removeChangeListenerin interfacede.bsvrz.dav.daf.main.config.MutableCollection
-
getElements
public java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> getElements(short simulationVariant)
- Specified by:
getElementsin interfacede.bsvrz.dav.daf.main.config.MutableCollection
-
addConfigurationCommunicationChangeListener
public void addConfigurationCommunicationChangeListener(de.bsvrz.dav.daf.main.config.ConfigurationCommunicationChangeListener listener)
- Specified by:
addConfigurationCommunicationChangeListenerin interfacede.bsvrz.dav.daf.main.config.ConfigurationCommunicationInterface
-
removeConfigurationCommunicationChangeListener
public void removeConfigurationCommunicationChangeListener(de.bsvrz.dav.daf.main.config.ConfigurationCommunicationChangeListener listener)
- Specified by:
removeConfigurationCommunicationChangeListenerin interfacede.bsvrz.dav.daf.main.config.ConfigurationCommunicationInterface
-
isConfigurationCommunicationActive
public boolean isConfigurationCommunicationActive()
- Specified by:
isConfigurationCommunicationActivein interfacede.bsvrz.dav.daf.main.config.ConfigurationCommunicationInterface
-
-