ifw-fcf  5.0.0-pre2
Public Member Functions | List of all members
clib.spf_buffer.SpfBuffer Class Reference

Class that manages the buffer of the setup request. More...

Public Member Functions

def __init__ (self)
 
def action (self, devtype, dic)
 It does the convertion of the SPF to JSON string. More...
 
def lamp (self, dic)
 Handles the conversion for a lamp device. More...
 
def actuator (self, dic)
 Handles the conversion for an actuator device. More...
 
def shutter (self, dic)
 Handles the conversion for a shutter device. More...
 
def motor (self, dic)
 Handles the conversion for a motor device. More...
 
def drot (self, dic)
 Handles the conversion for a drot device. More...
 
def adc (self, dic)
 Handles the conversion for a adc device. More...
 
def piezo (self, dic)
 Handles the conversion for a piezo device. More...
 
def iodev (self, dic)
 Handles the conversion for a iodev device. More...
 

Detailed Description

Class that manages the buffer of the setup request.

It converts a setup buffer in Simple Parameter Format (SPF) into JSON format. Once the buffer is in JSON it shall be validated against the schema.

Constructor & Destructor Documentation

◆ __init__()

def clib.spf_buffer.SpfBuffer.__init__ (   self)

Member Function Documentation

◆ action()

def clib.spf_buffer.SpfBuffer.action (   self,
  devtype,
  dic 
)

It does the convertion of the SPF to JSON string.

◆ actuator()

def clib.spf_buffer.SpfBuffer.actuator (   self,
  dic 
)

Handles the conversion for an actuator device.

◆ adc()

def clib.spf_buffer.SpfBuffer.adc (   self,
  dic 
)

Handles the conversion for a adc device.

◆ drot()

def clib.spf_buffer.SpfBuffer.drot (   self,
  dic 
)

Handles the conversion for a drot device.

◆ iodev()

def clib.spf_buffer.SpfBuffer.iodev (   self,
  dic 
)

Handles the conversion for a iodev device.

◆ lamp()

def clib.spf_buffer.SpfBuffer.lamp (   self,
  dic 
)

Handles the conversion for a lamp device.

◆ motor()

def clib.spf_buffer.SpfBuffer.motor (   self,
  dic 
)

Handles the conversion for a motor device.

◆ piezo()

def clib.spf_buffer.SpfBuffer.piezo (   self,
  dic 
)

Handles the conversion for a piezo device.

◆ shutter()

def clib.spf_buffer.SpfBuffer.shutter (   self,
  dic 
)

Handles the conversion for a shutter device.


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