|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsidnet.stack.users.marco_project.packet_centric.app.AppP2P_electrostatic
public class AppP2P_electrostatic
Field Summary | |
---|---|
static long |
ackSequenceNumber
|
Treap |
activeCharges
|
java.util.LinkedList<java.lang.Integer> |
activeRoutes
|
short |
electrostaticIndex
|
boolean |
estimatedSourceLocation
|
Treap |
knownCharges
|
static long |
lastRreqSequenceNumber
Sequence numbers |
java.util.LinkedList<java.lang.Integer> |
pendingRoutes
|
static long |
querySequenceNumber
|
static long |
rreqSequenceNumber
Sequence numbers |
short |
shortestPathIndex
|
Coordinate |
snk
|
NetAddress |
snkIP
|
Coordinate |
src
|
NetAddress |
srcIP
|
static long |
updateSequenceNumber
|
Query |
userQuery
|
Constructor Summary | |
---|---|
AppP2P_electrostatic(Node myNode,
short shortestPathIndex,
short electrostaticIndex,
StatsCollector stats,
ExperimentDataImpl experimentData,
TopologyGUI topologyGUI)
Creates a new instance of the AppP2P |
Method Summary | |
---|---|
double |
calculateMagnitude(Coordinate src,
Coordinate snk)
|
AppInterface |
getAppProxy()
|
void |
receive(Message msg,
NetAddress src,
MacAddress lastHop,
byte macId,
NetAddress dst,
byte priority,
byte ttl)
Receive a message from network layer. |
void |
run()
Run application. |
void |
run(java.lang.String[] args)
Run application. |
java.util.List<java.lang.Integer> |
selectFirstHops(int nrOfRoutes)
|
void |
sendMessage(Message msg)
|
void |
sensing(java.util.List params)
|
void |
setNetEntity(NetInterface netEntity)
|
java.util.List<java.lang.Integer> |
shuffle(java.util.List<NodeEntry> list)
|
void |
signalUserRequest()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public short shortestPathIndex
public short electrostaticIndex
public Coordinate src
public NetAddress srcIP
public Treap knownCharges
public java.util.LinkedList<java.lang.Integer> pendingRoutes
public java.util.LinkedList<java.lang.Integer> activeRoutes
public Query userQuery
public Coordinate snk
public NetAddress snkIP
public boolean estimatedSourceLocation
public Treap activeCharges
public static long rreqSequenceNumber
public static long lastRreqSequenceNumber
public static long ackSequenceNumber
public static long updateSequenceNumber
public static long querySequenceNumber
Constructor Detail |
---|
public AppP2P_electrostatic(Node myNode, short shortestPathIndex, short electrostaticIndex, StatsCollector stats, ExperimentDataImpl experimentData, TopologyGUI topologyGUI)
Method Detail |
---|
public void run(java.lang.String[] args)
AppInterface
run
in interface AppInterface
args
- command-line parameterspublic void run()
AppInterface
run
in interface AppInterface
public void sensing(java.util.List params)
sensing
in interface AppInterface
public void signalUserRequest()
signalUserRequest
in interface CallbackInterface
public void receive(Message msg, NetAddress src, MacAddress lastHop, byte macId, NetAddress dst, byte priority, byte ttl)
AppInterface
receive
in interface AppInterface
msg
- message receivedsrc
- source network addresslastHop
- source link addressmacId
- incoming interfacedst
- destination network addresspriority
- packet priorityttl
- packet time-to-livepublic void sendMessage(Message msg)
public double calculateMagnitude(Coordinate src, Coordinate snk)
public java.util.List<java.lang.Integer> selectFirstHops(int nrOfRoutes)
public java.util.List<java.lang.Integer> shuffle(java.util.List<NodeEntry> list)
public void setNetEntity(NetInterface netEntity)
public AppInterface getAppProxy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |