Package | Description |
---|---|
jsensor.nodes | |
jsensor.nodes.collections | |
jsensor.nodes.connections | |
jsensor.nodes.events | |
jsensor.nodes.messages | |
jsensor.nodes.models | |
jsensor.nodes.monitoring | |
jsensor.runtime |
Modifier and Type | Method and Description |
---|---|
void |
Node.addToInbox(Message m,
Node sender,
Node target,
double delayTime)
Define the actions for the step phase in synchronous simulation.
|
int |
Node.compareTo(Node o)
Compare two nodes.
|
boolean |
Node.equals(Node n)
Return whether a node is equal to another using its id.
|
void |
Node.unicast(Message m,
Node target,
double delayTime)
Send a message directly to a specific Node.
|
Modifier and Type | Method and Description |
---|---|
java.util.LinkedList<Node> |
NodesList.getNodeList() |
abstract java.util.LinkedList<Node> |
AbstractNodesList.getNodeList()
Return a set of Nodes.
|
java.util.LinkedList<Node> |
ConcurrentNodesList.getNodeList() |
java.util.List<Node> |
NodesPositionMatrix.possibleNeighbours(Node n,
Position p) |
java.util.List<Node> |
ConcurrentNodesPositionHashMap.possibleNeighbours(Node n,
Position p) |
java.util.List<Node> |
ConcurrentNodesPositionMatrix.possibleNeighbours(Node n,
Position p) |
abstract java.util.List<Node> |
AbstractNodesPositionMatrix.possibleNeighbours(Node n,
Position p)
Retrieve a set of Nodes which can be the possible neighbour of the Node n.
|
Modifier and Type | Method and Description |
---|---|
void |
NodesQuadrantMap.addNode(int quadrant,
Node n) |
void |
ConcurrentNodesPositionHashMap.addNode(Node n)
Add a node to the Map.
|
boolean |
NodesList.addNode(Node n) |
abstract boolean |
AbstractNodesList.addNode(Node n)
Add a node to this NodeList.
|
boolean |
ConcurrentNodesList.addNode(Node n) |
boolean |
NodesPositionMatrix.changeNodePosition(Node n,
Position oldPosition,
Position newPosition) |
boolean |
ConcurrentNodesPositionHashMap.changeNodePosition(Node n,
Position oldPosition,
Position newPosition)
Changes the node position inside the Hash.
|
boolean |
ConcurrentNodesPositionMatrix.changeNodePosition(Node n,
Position oldPosition,
Position newPosition) |
abstract boolean |
AbstractNodesPositionMatrix.changeNodePosition(Node n,
Position oldPosition,
Position newPosition)
Change the position of a Node wich is located inside a NodeList.
|
java.util.List<Node> |
NodesPositionMatrix.possibleNeighbours(Node n,
Position p) |
java.util.List<Node> |
ConcurrentNodesPositionHashMap.possibleNeighbours(Node n,
Position p) |
java.util.List<Node> |
ConcurrentNodesPositionMatrix.possibleNeighbours(Node n,
Position p) |
abstract java.util.List<Node> |
AbstractNodesPositionMatrix.possibleNeighbours(Node n,
Position p)
Retrieve a set of Nodes which can be the possible neighbour of the Node n.
|
void |
NodesQuadrantMap.removeNode(int quadrant,
Node n) |
boolean |
NodesList.removeNode(Node n) |
abstract boolean |
AbstractNodesList.removeNode(Node n)
Remove a node from this list.
|
boolean |
ConcurrentNodesList.removeNode(Node n) |
Modifier and Type | Method and Description |
---|---|
void |
NodesList.setNodeList(java.util.LinkedList<Node> nodeList) |
abstract void |
AbstractNodesList.setNodeList(java.util.LinkedList<Node> nodeList)
Sets the NodeList
|
void |
ConcurrentNodesList.setNodeList(java.util.LinkedList<Node> nodeList) |
Modifier and Type | Method and Description |
---|---|
void |
Connection.add(Node from,
Node to) |
boolean |
Connection.contains(Node from,
Node to) |
void |
Connection.remove(Node from,
Node to) |
Modifier and Type | Method and Description |
---|---|
Node |
AbstractEvent.getNode() |
Node |
SendingEvent.getTarget() |
Modifier and Type | Method and Description |
---|---|
void |
SendingEvent.broadcast(Node sender,
Message message,
double delayTime)
Send a message to all sender's neighbours.
|
abstract Position |
AbstractMovementEvent.getNextPosition(Node n)
This method should return a new Position to the Node n.
|
boolean |
SendingEvent.isNear(Node n1,
Node n2)
Compare if two nodes are near to each other.
|
void |
AbstractEvent.setNode(Node node) |
void |
SendingEvent.setTarget(Node target) |
void |
AbstractMovementEvent.start(Node n,
double startime,
double time,
double step)
This method starts the MovimentEvent event.
|
void |
AbstractTimer.startRelative(double relativeTime,
Node n)
Start a new relative timer to the Node n.
|
void |
SendingEvent.unicast(Node sender,
Node target,
Message message,
double delayTime)
Send a message from a sender to a target.
|
Constructor and Description |
---|
SendingEvent(Message message,
Node sender,
Node target,
double delayTime,
SendType SendType) |
Modifier and Type | Method and Description |
---|---|
Node |
Packet.getNode() |
Node |
Packet.getTarget() |
Modifier and Type | Method and Description |
---|---|
void |
PacketsInTheAir.addNewNode(Node n) |
void |
PacketsInTheAir.addNewPacket(Node target,
Packet p) |
void |
Inbox.addToInbox(Node node,
Node target,
double delayTime,
Message m) |
java.util.LinkedList<Packet> |
PacketsInTheAir.getNodePackets(Node node,
int time) |
void |
Packet.setNode(Node node) |
void |
Packet.setTarget(Node target) |
Constructor and Description |
---|
Packet(Node sender,
Node target,
double delayTime,
Message message) |
Modifier and Type | Method and Description |
---|---|
abstract Position |
AbstractMobilityModel.getNextPosition(Node n)
Return the new position of the Node n.
|
abstract boolean |
AbstractConnectivityModel.isConnected(Node from,
Node to)
This method should tell when two close nodes are connected.
|
boolean |
AbstractConnectivityModel.isNear(Node n1,
Node n2) |
boolean |
AbstractConnectivityModel.updateConnection(Node n,
AbstractNodesList[] nodesLists)
Update a node connections using an array of AbstractNodesList.
|
boolean |
AbstractConnectivityModel.updateConnection(Node n,
AbstractNodesPositionMatrix nodesMatrix)
Update a node connections using an unic AbstractNodesPositionMatrix.
|
boolean |
AbstractConnectivityModel.updateConnection(Node n,
AbstractNodesPositionMatrix[] nodesMatrix)
Update a node connections using an array of AbstractNodesPositionMatrix.
|
boolean |
AbstractConnectivityModel.updateConnection(Node n,
ConcurrentNodesPositionHashMap nodesHash)
Update a node connections using a single ConcurrentHashMap (faster implementation).
|
Modifier and Type | Method and Description |
---|---|
boolean |
Fact.isNear(Node n) |
Modifier and Type | Method and Description |
---|---|
static Node |
Global.getNodeByID(int id) |
Node |
Runtime.getNodeByID(int id) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Fact> |
Runtime.getDetectedFactsByNode(Node n) |
static java.util.List<Fact> |
Global.getFactsDetectedByNode(Node n) |