riaps.run.peripheral module

Peripheral class - encapsulates a device, used in an app actor Created on Jan 6, 2017

@author: riaps

class riaps.run.peripheral.Peripheral(parentActor, iTypeDef, iName, iTypeName, iArgs)[source]

Bases: object

Peripheral class to encapsulate access to a device component Note: implements a public interface compatible with a part

class State(value)[source]

Bases: Enum

An enumeration.

Active = 3
Checkpointing = 4
Destroyed = 7
Inactive = 5
Initial = 1
Passive = 6
Ready = 2
Starting = 0
activate()[source]

Activate this peripheral

checkpoint()[source]
deactivate()[source]
destroy()[source]
getControl()[source]
handleCPULimit()[source]
handleMemLimit()[source]
handleNICStateChange(state)[source]
handleNetLimit()[source]
handlePeerStateChange(state, uuid)[source]
handlePortUpdate(_portName, _host, _port)[source]

Handle an update message coming from the devm service

handleReinstate()[source]
handleSpcLimit()[source]
property mods
passivate()[source]
reactivate()[source]
setup()[source]

Set up the peripheral and change its state to Ready

terminate()[source]