Handles the discovery and discarding of the GC-100 devices.
Inheritance:
Public Fields
-
map<string, time_t> deviceListDisTimeMap
- Map of device Vs time
Public Methods
-
static GC100ControlPoint* getInstance()
- Returns an Instance of GC100ControlPoint.
-
string doAction(string uuid, string connector, string module, string code)
- Performs the specified action on searched GCDevice from uuid, connection and module
-
void setGCDeviceChangeListener(IGCDeviceChangeListener* gcDeviceChangeListener )
- Register the clinet for GC device change listener.
-
void setGCUpdateListener(IGCUpdateListener* gcUpdateListener )
- Register client for GC device update listener.
-
bool connect(string uuid, string connector, string module)
- Method to connect to the specified target device connected to the specified 'module' and 'connector'.
-
void addDevice(map<string, string>* messageMap)
- Add the device discovered
-
void removeDevice(map<string, string>* messageMap)
- Remove the device discovered
-
string configureSerialPort(string uuid, string module, string connector, string serialPortSettings)
- Configures the Serial Port of searched GCDevice from uuid, connection and module
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
map<string, time_t> deviceListDisTimeMap
-
Map of device Vs time
static GC100ControlPoint* getInstance()
-
Returns an Instance of GC100ControlPoint. Singleton Pattern.
- Returns:
- GC100ControlPoint Object
string 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
void 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
void setGCUpdateListener(IGCUpdateListener* gcUpdateListener )
-
Register client for GC device update listener. In case of any update registered client will be updated.
- Parameters:
- Object - of GCUpdataListener
bool 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.
void addDevice(map<string, string>* messageMap)
-
Add the device discovered
- Parameters:
- messageMap - Map<String,String> property map of GC100 device
void removeDevice(map<string, string>* messageMap)
-
Remove the device discovered
- Parameters:
- messageMap - Map<String,String> property map of GC100 device
string 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++.