ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
fcfDevsimLamp.devsimLamp.DevsimLamp Class Reference

Device Simulator class for the Standard Lamp Device. More...

Inheritance diagram for fcfDevsimLamp.devsimLamp.DevsimLamp:
fcfDevsimLamp.DeviceSimulatorLamp

Public Member Functions

def __init__
 Initialise the Lamp Device simulator class; set the members. More...
 
def initialise
 Initialise various parameters of the simulated device. More...
 
def set_error_attribs
 Set the "stat.nErrorCode"/"stat.sErrorText" node values. More...
 
def set_rpc_error_attribs
 Set the "stat.nRpcErrorCode"/"stat.sRpcErrorText" node values. More...
 
def sim_thr_user
 Simulation Thread managing the lamp status. More...
 
def data_change_handler
 Invoked when subscribed "ctrl." and "stat." nodes change value. More...
 
def RPC_Init
 Initiate the initialisation procedure. More...
 
def RPC_Reset
 Reset the Lamp Device (bring it to NotOp/NotReady). More...
 
def RPC_On
 Switch on lamp. More...
 
def RPC_Off
 Switch off lamp. More...
 
def RPC_Enable
 Execute SM Enable operation. More...
 
def RPC_Disable
 Execute SM Disable operation. More...
 

Public Attributes

 initialised
 
 sim_init_time
 

Static Public Attributes

string CFG_TODO = "TODO"
 OPC UA Namespace Node IDs: More...
 
string CTRL_TODO = "TODO"
 
string STAT_COUNTER = "stat.nCycleCounter"
 

Detailed Description

Device Simulator class for the Standard Lamp Device.

Constructor & Destructor Documentation

def fcfDevsimLamp.devsimLamp.DevsimLamp.__init__ (   self)

Initialise the Lamp Device simulator class; set the members.

Member Function Documentation

def fcfDevsimLamp.devsimLamp.DevsimLamp.data_change_handler (   self,
  node,
  value,
  data 
)

Invoked when subscribed "ctrl." and "stat." nodes change value.

def fcfDevsimLamp.devsimLamp.DevsimLamp.initialise (   self)

Initialise various parameters of the simulated device.

def fcfDevsimLamp.devsimLamp.DevsimLamp.RPC_Disable (   self,
  parent 
)

Execute SM Disable operation.

def fcfDevsimLamp.devsimLamp.DevsimLamp.RPC_Enable (   self,
  parent 
)

Execute SM Enable operation.

def fcfDevsimLamp.devsimLamp.DevsimLamp.RPC_Init (   self,
  parent 
)

Initiate the initialisation procedure.

def fcfDevsimLamp.devsimLamp.DevsimLamp.RPC_Off (   self,
  parent 
)

Switch off lamp.

def fcfDevsimLamp.devsimLamp.DevsimLamp.RPC_On (   self,
  parent,
  intensity,
  time_on_limit 
)

Switch on lamp.

def fcfDevsimLamp.devsimLamp.DevsimLamp.RPC_Reset (   self,
  parent 
)

Reset the Lamp Device (bring it to NotOp/NotReady).

def fcfDevsimLamp.devsimLamp.DevsimLamp.set_error_attribs (   self,
  error_code 
)

Set the "stat.nErrorCode"/"stat.sErrorText" node values.

def fcfDevsimLamp.devsimLamp.DevsimLamp.set_rpc_error_attribs (   self,
  rpc_error_code 
)

Set the "stat.nRpcErrorCode"/"stat.sRpcErrorText" node values.

def fcfDevsimLamp.devsimLamp.DevsimLamp.sim_thr_user (   self)

Simulation Thread managing the lamp status.

Member Data Documentation

string fcfDevsimLamp.devsimLamp.DevsimLamp.CFG_TODO = "TODO"
static

OPC UA Namespace Node IDs:


Configuration Node IDs:

string fcfDevsimLamp.devsimLamp.DevsimLamp.CTRL_TODO = "TODO"
static
fcfDevsimLamp.devsimLamp.DevsimLamp.initialised
fcfDevsimLamp.devsimLamp.DevsimLamp.sim_init_time
string fcfDevsimLamp.devsimLamp.DevsimLamp.STAT_COUNTER = "stat.nCycleCounter"
static

The documentation for this class was generated from the following file: