class PlaceOS::Core::Mappings::ControlSystemModules

Defined in:

placeos-core/mappings/control_system_modules.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(startup : Bool = true, module_manager : ModuleManager = ModuleManager.instance) #

[View source]

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


[View source]
def self.update_logic_modules(system : Model::ControlSystem, module_manager : ModuleManager = ModuleManager.instance) : Int32 #

Update logic Module children for a ControlSystem


[View source]
def self.update_mapping(system : Model::ControlSystem, startup : Bool = false, module_manager : ModuleManager = ModuleManager.instance) : Resource::Result #

Update the mapping for a ControlSystem


[View source]

Instance Method Detail

def process_resource(action : Resource::Action, resource control_system : PlaceOS::Model::ControlSystem) : Resource::Result #

[View source]
def start #

[View source]