|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeAPI
Method Summary | |
---|---|
void |
addQuery(Query query)
Adds a query to the query list. |
void |
appendTerminalText(java.lang.String s)
Appends the supplied string to the console associated with the Terminal of the calling node |
CallbackInterface |
getAppCallback()
|
EnergyManagement |
getEnergyManagement()
|
int |
getID()
Gets the unique ID that has been associated with the node. |
NetAddress |
getIP()
Gets the IP address that has been associated with the node |
Location2D |
getLocation2D()
Get the geographical location of the sensor node in real metric units, not in screen coordinates |
LocationContext |
getLocationContext()
Returns the LocationContext in which the getLocation2D returns the measurements |
NCS_Location2D |
getNCS_Location2D()
Returns the location of this node as an NCS (Normalized Coordinate System) |
NodeGUIimpl |
getNodeGUI()
Gets the handle over the NodeGUIimpl which contains functions related to GUI |
java.util.List<Query> |
getQueryList()
Returns the list of queries that have been posted by the client through this node. |
SimControl |
getSimControl()
Return the SimControl handle |
byte |
getType()
Get the TYPE of the node. |
double |
readAnalogSensorData(int sensorIndex)
Reads sensor data |
void |
setAppCallback(CallbackInterface appCallback)
|
void |
setType(byte type)
Set the TYPE of the node. |
Method Detail |
---|
int getID()
NetAddress getIP()
byte getType()
void setType(byte type)
EnergyManagement getEnergyManagement()
java.util.List<Query> getQueryList()
void addQuery(Query query)
SimControl getSimControl()
Location2D getLocation2D()
NCS_Location2D getNCS_Location2D()
LocationContext getLocationContext()
double readAnalogSensorData(int sensorIndex)
sensorIndex
- indexes through the registered sensors, in case a node has more than one sensing capabilities. Otherwise, set to 0void appendTerminalText(java.lang.String s)
String
- NodeGUIimpl getNodeGUI()
void setAppCallback(CallbackInterface appCallback)
CallbackInterface getAppCallback()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |