class PlaceOS::Core::Mappings::ControlSystemModules
- PlaceOS::Core::Mappings::ControlSystemModules
- PlaceOS::Resource(PlaceOS::Model::ControlSystem)
- Reference
- Object
Defined in:
placeos-core/mappings/control_system_modules.crConstructors
Class Method Summary
-
.set_mappings(control_system : Model::ControlSystem, mod : Model::Module | Nil) : Hash(String, String)
Set the module mappings for a ControlSystem
-
.update_logic_modules(system : Model::ControlSystem, module_manager : ModuleManager = ModuleManager.instance) : Int32
Update logic Module children for a ControlSystem
-
.update_mapping(system : Model::ControlSystem, startup : Bool = false, module_manager : ModuleManager = ModuleManager.instance) : Resource::Result
Update the mapping for a ControlSystem
Instance Method Summary
- #process_resource(action : Resource::Action, resource control_system : PlaceOS::Model::ControlSystem) : Resource::Result
- #start
Constructor Detail
Class Method Detail
def self.set_mappings(control_system : Model::ControlSystem, mod : Model::Module | Nil) : Hash(String, String)
#
Set the module mappings for a ControlSystem
Pass module_id and updated_name to overrride a lookup
def self.update_logic_modules(system : Model::ControlSystem, module_manager : ModuleManager = ModuleManager.instance) : Int32
#
Update logic Module children for a ControlSystem
def self.update_mapping(system : Model::ControlSystem, startup : Bool = false, module_manager : ModuleManager = ModuleManager.instance) : Resource::Result
#
Update the mapping for a ControlSystem
Instance Method Detail
def process_resource(action : Resource::Action, resource control_system : PlaceOS::Model::ControlSystem) : Resource::Result
#