Class WorldModelManipulator


  • public class WorldModelManipulator
    extends cmion.architecture.CmionComponent
    this class can be used to directly manipulate and change the world model
    • Field Summary

      • Fields inherited from class cmion.architecture.CmionComponent

        architecture
    • Constructor Summary

      Constructors 
      Constructor Description
      WorldModelManipulator​(cmion.architecture.IArchitecture architecture)
      create a new simulator
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEntity​(cmion.storage.CmionStorageContainer entityContainer)
      add an entity (Agent or Object) to the world model
      void registerHandlers()  
      void removeEntity​(java.lang.String entityName)
      remove an entity (Agent or Object) from the world model
      void removeProperty​(java.lang.String propertyName, cmion.storage.CmionStorageContainer entityContainer)
      removes a property (Agent or Object) from the world model
      void setProperty​(java.lang.String propertyName, java.lang.String propertyValue, boolean persistent, cmion.storage.CmionStorageContainer parentContainer)
      sets a property (Agent or Object) from the world model
      • Methods inherited from class cmion.architecture.CmionComponent

        getArchitecture, isConnected, onDestroy, raise
      • Methods inherited from class ion.Meta.Element

        destroy, getEventFilters, getEventHandlers, getRequestFilters, getRequestHandlers, getSimulation, getUID, schedule, wasDestroyed
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorldModelManipulator

        public WorldModelManipulator​(cmion.architecture.IArchitecture architecture)
        create a new simulator
    • Method Detail

      • addEntity

        public void addEntity​(cmion.storage.CmionStorageContainer entityContainer)
        add an entity (Agent or Object) to the world model
      • removeEntity

        public void removeEntity​(java.lang.String entityName)
        remove an entity (Agent or Object) from the world model
      • setProperty

        public void setProperty​(java.lang.String propertyName,
                                java.lang.String propertyValue,
                                boolean persistent,
                                cmion.storage.CmionStorageContainer parentContainer)
        sets a property (Agent or Object) from the world model
      • removeProperty

        public void removeProperty​(java.lang.String propertyName,
                                   cmion.storage.CmionStorageContainer entityContainer)
        removes a property (Agent or Object) from the world model
      • registerHandlers

        public void registerHandlers()
        Specified by:
        registerHandlers in class cmion.architecture.CmionComponent