sidnet.core.interfaces
Interface NodeAPI

All Known Implementing Classes:
Node

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

getID

int getID()
Gets the unique ID that has been associated with the node. It is the integer representation of the IP address


getIP

NetAddress getIP()
Gets the IP address that has been associated with the node


getType

byte getType()
Get the TYPE of the node. Assigning nodes types can be useful when dealing with heterogeneous networks


setType

void setType(byte type)
Set the TYPE of the node. Assigning nodes types can be useful when dealing with heterogeneous networks to be able to distinguish between the nodes


getEnergyManagement

EnergyManagement getEnergyManagement()

getQueryList

java.util.List<Query> getQueryList()
Returns the list of queries that have been posted by the client through this node. It is update by the Terminal


addQuery

void addQuery(Query query)
Adds a query to the query list. This is used to set the query without automatically


getSimControl

SimControl getSimControl()
Return the SimControl handle


getLocation2D

Location2D getLocation2D()
Get the geographical location of the sensor node in real metric units, not in screen coordinates


getNCS_Location2D

NCS_Location2D getNCS_Location2D()
Returns the location of this node as an NCS (Normalized Coordinate System)


getLocationContext

LocationContext getLocationContext()
Returns the LocationContext in which the getLocation2D returns the measurements


readAnalogSensorData

double readAnalogSensorData(int sensorIndex)
Reads sensor data

Parameters:
sensorIndex - indexes through the registered sensors, in case a node has more than one sensing capabilities. Otherwise, set to 0

appendTerminalText

void appendTerminalText(java.lang.String s)
Appends the supplied string to the console associated with the Terminal of the calling node

Parameters:
String -

getNodeGUI

NodeGUIimpl getNodeGUI()
Gets the handle over the NodeGUIimpl which contains functions related to GUI


setAppCallback

void setAppCallback(CallbackInterface appCallback)

getAppCallback

CallbackInterface getAppCallback()