Package cmion.storage
Class BlackBoard
- java.lang.Object
-
- ion.Meta.Element
-
- cmion.architecture.CmionComponent
-
- cmion.storage.CmionStorageContainer
-
- cmion.storage.BlackBoard
-
public class BlackBoard extends CmionStorageContainer
The BlackBoard is a storage container for competencies to share information with each other. For time critical applications, it has some additional functions to store "real-time" properties, those are properties that are not written and read through ION requests and events but directly. The advantage of this is faster reaction times (not tied to the ION simulation loop), the disadvantage, is that there are no event listeners for changes to those properties available and access is less controlled
-
-
Field Summary
-
Fields inherited from class cmion.storage.CmionStorageContainer
persistentProperties
-
Fields inherited from class cmion.architecture.CmionComponent
architecture
-
-
Constructor Summary
Constructors Constructor Description BlackBoard(IArchitecture architecture, java.lang.String name)create a new black board with the specified name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetRTPropertyValue(java.lang.String propertyName)returns the value of the real time property with the given namebooleanhasRTProperty(java.lang.String propertyName)sets the value of the real time property with the given namevoidremoveRTProperty(java.lang.String propertyName)sets the value of the real time property with the given namevoidsetRTProperty(java.lang.String propertyName, java.lang.Object propertyValue)sets the value of the real time property with the given name-
Methods inherited from class cmion.storage.CmionStorageContainer
getContainerName, getContainerType, getParentContainer, getPropertyNames, getPropertyNames, getPropertyValue, getSubContainer, getSubContainerNames, getSubContainerNames, getTopContainer, hasProperty, hasProperty, hasSubContainer, hasSubContainer, isPropertyPersistent, registerEventHandlerWithSubContainers, registerHandlers, requestAddSubContainer, requestAddSubContainer, requestAddSubContainer, requestRemoveProperty, requestRemoveSubContainer, requestSetProperty, requestSetProperty, toString
-
Methods inherited from class cmion.architecture.CmionComponent
getArchitecture, isConnected, onDestroy, raise
-
-
-
-
Constructor Detail
-
BlackBoard
public BlackBoard(IArchitecture architecture, java.lang.String name)
create a new black board with the specified name
-
-
Method Detail
-
getRTPropertyValue
public java.lang.Object getRTPropertyValue(java.lang.String propertyName)
returns the value of the real time property with the given name
-
setRTProperty
public void setRTProperty(java.lang.String propertyName, java.lang.Object propertyValue)sets the value of the real time property with the given name
-
removeRTProperty
public void removeRTProperty(java.lang.String propertyName)
sets the value of the real time property with the given name
-
hasRTProperty
public boolean hasRTProperty(java.lang.String propertyName)
sets the value of the real time property with the given name
-
-