class GC100ControlPoint

Handles the discovery and discarding of the GC-100 devices.

Inheritance:


Public Fields

[more]map<string, time_t> deviceListDisTimeMap
Map of device Vs time

Public Methods

[more]static GC100ControlPoint* getInstance()
Returns an Instance of GC100ControlPoint.
[more]string doAction(string uuid, string connector, string module, string code)
Performs the specified action on searched GCDevice from uuid, connection and module
[more]void setGCDeviceChangeListener(IGCDeviceChangeListener* gcDeviceChangeListener )
Register the clinet for GC device change listener.
[more]void setGCUpdateListener(IGCUpdateListener* gcUpdateListener )
Register client for GC device update listener.
[more]bool connect(string uuid, string connector, string module)
Method to connect to the specified target device connected to the specified 'module' and 'connector'.
[more]void addDevice(map<string, string>* messageMap)
Add the device discovered
[more]void removeDevice(map<string, string>* messageMap)
Remove the device discovered
[more]string configureSerialPort(string uuid, string module, string connector, string serialPortSettings)
Configures the Serial Port of searched GCDevice from uuid, connection and module


Inherited from IGC100ControlPoint:


Documentation

Handles the discovery and discarding of the GC-100 devices. It implements IGC100ControlPoint. This class follows the Singleton pattern, hence the contructor is private. The singleton instance can be retrieved by using the getInstance() method

omap<string, time_t> deviceListDisTimeMap
Map of device Vs time

ostatic GC100ControlPoint* getInstance()
Returns an Instance of GC100ControlPoint. Singleton Pattern.
Returns:
GC100ControlPoint Object

ostring doAction(string uuid, string connector, string module, string code)
Performs the specified action on searched GCDevice from uuid, connection and module
Parameters:
uuid - a String Value of UUID(unique identification number) of device
connector - a String Value of connector address
module - a String Value of module address
code - a String Value of command in form of entire code
Returns:
response of the action

ovoid setGCDeviceChangeListener(IGCDeviceChangeListener* gcDeviceChangeListener )
Register the clinet for GC device change listener. Client will be update when device is added or removed in the network.
Parameters:
Object - of IGCDeviceChangeListener

ovoid setGCUpdateListener(IGCUpdateListener* gcUpdateListener )
Register client for GC device update listener. In case of any update registered client will be updated.
Parameters:
Object - of GCUpdataListener

obool connect(string uuid, string connector, string module)
Method to connect to the specified target device connected to the specified 'module' and 'connector'.

Parameters:
uuid - a String value of uuid
module - an integer value of module
connector - an integer value of connector
Returns:
a boolean whether device is connected to the specified module or not.

ovoid addDevice(map<string, string>* messageMap)
Add the device discovered
Parameters:
messageMap - Map<String,String> property map of GC100 device

ovoid removeDevice(map<string, string>* messageMap)
Remove the device discovered
Parameters:
messageMap - Map<String,String> property map of GC100 device

ostring configureSerialPort(string uuid, string module, string connector, string serialPortSettings)
Configures the Serial Port of searched GCDevice from uuid, connection and module
Parameters:
uuid - a String Value of UUID(unique identification number)
connector - a String Value of connector address
module - a String Value of module address
serialPortSettings - a String Value of serial port settings i.e baud rate, number of stop bits, parity bit etc.
Returns:
response of the action


This class has no child classes.
Author:
Parikshit Thakur & Team, Trace R&D Center
Version:
1.0

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.