Package | Description |
---|---|
jsensor.distributed.utils | |
jsensor.nodes | |
jsensor.nodes.collections | |
jsensor.nodes.events | |
jsensor.nodes.models | |
jsensor.nodes.monitoring | |
jsensor.runtime | |
jsensor.runtime.threads | |
jsensor.utils |
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<java.lang.Integer,Tuple<Position,Position>> |
ChangePositionMessage.getNodesNewPositions() |
java.util.HashMap<java.lang.Integer,Tuple<Position,Position>> |
ChangePositionMessage.getNodesNewPositions() |
Modifier and Type | Method and Description |
---|---|
boolean |
NodeMap.changeNodePosition(java.lang.Integer n,
Position oldPosition,
Position newPosition)
Changes the node position inside the Hash.
|
java.util.List<java.lang.Integer> |
NodeMap.possibleNeighbours(java.lang.Integer n,
Position p) |
Modifier and Type | Method and Description |
---|---|
void |
NodeMap.addNode(Tuple<java.lang.Integer,Position> node)
Add a node to the Map.
|
void |
ChangePositionMessage.setNodesNewPositions(java.util.HashMap<java.lang.Integer,Tuple<Position,Position>> nodesNewPositions) |
void |
ChangePositionMessage.setNodesNewPositions(java.util.HashMap<java.lang.Integer,Tuple<Position,Position>> nodesNewPositions) |
Constructor and Description |
---|
ChangePositionMessage(MessageType type,
java.util.HashMap<java.lang.Integer,Tuple<Position,Position>> nps) |
ChangePositionMessage(MessageType type,
java.util.HashMap<java.lang.Integer,Tuple<Position,Position>> nps) |
NodeMap(java.util.LinkedList<Tuple<java.lang.Integer,Position>> list,
int communicationRadio) |
Modifier and Type | Method and Description |
---|---|
Position |
Node.getPosition()
Return the node's current position
|
Modifier and Type | Method and Description |
---|---|
void |
Node.setPosition(Position pos)
Internal use only method.Do not use this method on your projects.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
Position |
AbstractMovementEvent.getNextPosition() |
abstract Position |
AbstractMovementEvent.getNextPosition(Node n)
This method should return a new Position to the Node n.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractMovementEvent.setNextPosition(Position nextPosition) |
Modifier and Type | Method and Description |
---|---|
abstract Position |
AbstractDistributionModel.getNextPosition()
Return a new Position to the next node evaluated.
|
abstract Position |
AbstractMobilityModel.getNextPosition(Node n)
Return the new position of the Node n.
|
Modifier and Type | Method and Description |
---|---|
Position |
Fact.getPosition() |
Modifier and Type | Method and Description |
---|---|
void |
Fact.setPosition(Position position) |
Modifier and Type | Method and Description |
---|---|
static void |
Global.genNodes(Runtime runtime,
java.lang.String nodeName,
java.lang.String nodeProject,
java.lang.String cModel,
java.lang.String cmspl,
int numNodes,
java.util.LinkedList<Tuple<java.lang.Integer,Position>> nodes) |
Constructor and Description |
---|
NodesCreationThread(AbstractConnectivityModel connectivity,
int numNodes,
AbstractNodesList nodesList,
Runtime runtime,
java.lang.String nodeProjetc,
java.lang.String nodeImpl,
java.util.LinkedList<Tuple<java.lang.Integer,Position>> nodes) |
Modifier and Type | Method and Description |
---|---|
static Position |
PositionTransformation.getDim(int dx,
int dy) |