Package empro :: Module empro :: Class SensorDataDefinitionList
[frames] | no frames]

Class SensorDataDefinitionList

core.Updatable --+
                 |
                SensorDataDefinitionList

Manages the list of sensor data definitions.

Class Hierarchy for SensorDataDefinitionList
Class Hierarchy for SensorDataDefinitionList

Instance Methods
 
__call__(x, ...)
x(...)
 
__contains__(x, y)
y in x
 
__delitem__(x, y)
del x[y]
 
__getitem__(x, y)
x[y]
 
__len__(x)
len(x)
 
__setitem__(x, i, y)
x[i]=y
bool
append(iSensorDef)
Appends a sensor data definition to the list.
SensorDataDefinition
at(iName)
Returns the sensor data definition by name.
None
clear()
Clear the list.
bool
contains(iSensorDef)
Determines if the sensor data definition is in the list.
int
index(iSensorDef)
Retrieves the index of a sensor data definition.
bool
insert(iIndex, iSensorDef)
Inserts a sensor data definition into the list.
list{string}
names()
Returns the names of the sensor data definitions in the list.
bool
remove(iIndex)
Removes a sensor data definition.
bool
replace(iIndex, iSensorDef)
Replaces a sensor data definition.
int
size()
Returns the size of the list.
list{string}
swap()
Returns the names of the sensor data definitions in the list.

Inherited from core.Updatable: __enter__, __exit__, clone, hash, isValid, reasonWhyInvalid

Method Details

append(iSensorDef)

 

Appends a sensor data definition to the list.

Parameters:
Returns: bool

at(iName)

 

Returns the sensor data definition by name.

Parameters:
  • iName (string) - Name of the requested sensor data definition.
Returns: SensorDataDefinition

contains(iSensorDef)

 

Determines if the sensor data definition is in the list.

Parameters:
Returns: bool

index(iSensorDef)

 

Retrieves the index of a sensor data definition.

Parameters:
Returns: int

insert(iIndex, iSensorDef)

 

Inserts a sensor data definition into the list.

Parameters:
  • iIndex (int) - Index of where to insert the new element.
  • iSensorDef (SensorDataDefinition) - Sensor data definition to add.
Returns: bool

remove(iIndex)

 

Removes a sensor data definition.

Parameters:
  • iIndex (int) - Index of the sensor data definition to remove.
Returns: bool

replace(iIndex, iSensorDef)

 

Replaces a sensor data definition.

Parameters:
  • iIndex (int) - Index of which sensor data definition to replace.
  • iSensorDef (SensorDataDefinition) - Sensor data definition to add.
Returns: bool