Package ioids :: Module g4dsconnector :: Class G4dsConnector
[hide private]
[frames] | no frames]

Class G4dsConnector

source code

Instance Methods [hide private]
 
__init__(self)
Initialises local variables.
source code
 
connect(self)
Establishes the connection to the G4DS backend.
source code
 
disconnect(self)
Shuts down connection to G4DS.
source code
 
_incomingMessageCallback(self, data, metadata)
Callback function for G4DS to receive messages from it.
source code
 
sendEventUpdate(self, data, receiver=None) source code
 
sendKnowledgeRequest(self, conditions, receiver) source code
 
sendMessage(self, data, action, receiver=None)
Testing - send it off to everybody in the service :)
source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initialises local variables.

Perform the connection with connect. Please shut down properly the connection with disconnect.

sendKnowledgeRequest(self, conditions, receiver)

source code 
Parameters:
  • conditions (List of List) - List of conditions; each item a list itself (attribute name | operator indicator | value)