WISP ERT (Server)  1.0.0
The WISP Extended Runtime (Server side)
wisp_ert.runtime.Runtime Class Reference

The WISP extended runtime class. More...

Inheritance diagram for wisp_ert.runtime.Runtime:

Public Member Functions

def __init__ (self, antennas=[1], n_tags_per_report=5, kwargs)
 The WISP extended runtime constructor. More...
 
def add_service (self, name, factory, args, kwargs)
 Add a service class to runtime. More...
 
def start (self, server, port)
 Start WISP extended runtime. More...
 
def stop (self)
 Stop WISP extended runtime. More...
 

Private Member Functions

def _handle_new_client (self, connection)
 Handle new WISP client. More...
 
def _service_constants (self, connection, name)
 Get service C constants by service name. More...
 
def _wtp_recv_cb (self, connection, data)
 WTP on message received callback. More...
 

Private Attributes

 _services
 Services. More...
 
 _services_factory
 Services factory. More...
 
 _clients
 WTP connection to services mapping. More...
 
 _wtp_ep
 WTP endpoint. More...
 

Detailed Description

The WISP extended runtime class.

Constructor & Destructor Documentation

◆ __init__()

def wisp_ert.runtime.Runtime.__init__ (   self,
  antennas = [1],
  n_tags_per_report = 5,
  kwargs 
)

The WISP extended runtime constructor.

Parameters
antennasAntennas to be enabled.
n_tags_per_reportNumber of tags per tag report.
kwargsOther arguments.

Member Function Documentation

◆ _handle_new_client()

def wisp_ert.runtime.Runtime._handle_new_client (   self,
  connection 
)
private

Handle new WISP client.

Parameters
connectionNew WTP connection.

◆ _service_constants()

def wisp_ert.runtime.Runtime._service_constants (   self,
  connection,
  name 
)
private

Get service C constants by service name.

Parameters
connectionWTP connection.
nameService name.
Returns
Respective service C constants in binary format.

◆ _wtp_recv_cb()

def wisp_ert.runtime.Runtime._wtp_recv_cb (   self,
  connection,
  data 
)
private

WTP on message received callback.

Parameters
connectionWTP connection.
dataReceived data.

◆ add_service()

def wisp_ert.runtime.Runtime.add_service (   self,
  name,
  factory,
  args,
  kwargs 
)

Add a service class to runtime.

Parameters
nameName of the service.
factoryService instance factory.
argsArguments to be passed to service factory.
kwargsKeyword arguments to be passed to service factory.

◆ start()

def wisp_ert.runtime.Runtime.start (   self,
  server,
  port 
)

Start WISP extended runtime.

Parameters
serverLLRP reader IP or domain name.
portLLRP reader port.

◆ stop()

def wisp_ert.runtime.Runtime.stop (   self)

Stop WISP extended runtime.

Member Data Documentation

◆ _clients

wisp_ert.runtime.Runtime._clients
private

WTP connection to services mapping.

◆ _services

wisp_ert.runtime.Runtime._services
private

Services.

◆ _services_factory

wisp_ert.runtime.Runtime._services_factory
private

Services factory.

◆ _wtp_ep

wisp_ert.runtime.Runtime._wtp_ep
private

WTP endpoint.


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