|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use DTNHost | |
---|---|
core | Contains core classes and interfaces of the simulator. |
gui | Contains the classes of Graphical User Interface. |
gui.playfield | Contains the classes of Graphical User Interface's playfield -view (the graphical presentation of the nodes' locations and other information). |
report | Contains all the report classes. |
routing | Contains all the router classes who decide how to handle the messages. |
test | Provides some unit and integration tests for the classes. |
Uses of DTNHost in core |
---|
Fields in core declared as DTNHost | |
---|---|
DTNHost |
DTN2Manager.EIDHost.host
|
Methods in core that return DTNHost | |
---|---|
DTNHost |
Message.getFrom()
Returns the node this message is originally from |
DTNHost |
World.getNodeByAddress(int address)
Returns a node from the world by its address |
DTNHost |
Connection.getOtherNode(DTNHost node)
Returns the node in the other end of the connection |
DTNHost |
Message.getTo()
Returns the node this message is originally to |
Methods in core that return types with arguments of type DTNHost | |
---|---|
java.util.List<DTNHost> |
Message.getHops()
Returns a list of nodes this message has passed so far |
java.util.List<DTNHost> |
World.getHosts()
Returns the hosts in a list |
java.util.List<DTNHost> |
SimScenario.getHosts()
Returns the list of nodes for this scenario. |
java.util.List<DTNHost> |
ConnectivityGrid.GridCell.getNodes()
Returns a list of of nodes in this cell |
Methods in core with parameters of type DTNHost | |
---|---|
void |
ConnectivityGrid.GridCell.addNode(DTNHost node)
Adds a node to this cell |
void |
Message.addNodeOnPath(DTNHost node)
Adds a new node on the list of nodes this message has passed |
int |
DTNHost.compareTo(DTNHost h)
Compares two DTNHosts by their addresses. |
void |
NetworkLayer.connect(DTNHost anotherHost)
Tries to connect this host to another host. |
void |
DTNHost.connect(DTNHost anotherHost)
Creates a connection to another host (if it is within range) |
void |
ConnectivityGrid.connectToNearNodes(DTNHost node)
Connects a node to all nodes that are in the same cell or in adjacent cells. |
void |
NetworkLayer.createConnection(DTNHost anotherHost)
Creates a connection to another host. |
void |
NetworkLayer.destroyConnection(DTNHost anotherHost)
Disconnect a connection between this and another host. |
boolean |
DTNHost.equals(DTNHost otherHost)
Checks if a host is the same as this host by comparing their names. |
void |
DTNHost.forceConnection(DTNHost anotherHost,
boolean up)
Forces this host to connect/disconnect to/from another host. |
DTNHost |
Connection.getOtherNode(DTNHost node)
Returns the node in the other end of the connection |
static fi.tkk.netlab.dtn.ecla.CLAParser |
DTN2Manager.getParser(DTNHost host)
Returns the ECL parser associated with the host. |
void |
ConnectionListener.hostsConnected(DTNHost host1,
DTNHost host2)
Method is called when two hosts are connected. |
void |
ConnectionListener.hostsDisconnected(DTNHost host1,
DTNHost host2)
Method is called when connection between hosts is disconnected. |
void |
MovementListener.initialLocation(DTNHost host,
Coord location)
Method is called when a host receives its initial location from movement model. |
boolean |
Connection.isInitiator(DTNHost node)
Returns true if the given node is the initiator of the connection, false otherwise |
void |
DTNHost.messageAborted(java.lang.String id,
DTNHost from,
int bytesRemaining)
Informs the host that a message transfer was aborted. |
void |
MessageListener.messageDeleted(Message m,
DTNHost where,
boolean dropped)
Method is called when a message is deleted |
void |
MessageListener.messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
Method is called when a message's transfer was aborted before it finished |
void |
MessageListener.messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean firstDelivery)
Method is called when a message is succesfully transferred from a node to another. |
void |
DTNHost.messageTransferred(java.lang.String id,
DTNHost from)
Informs the host that a message was successfully transferred. |
void |
MessageListener.messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
Method is called when a message's transfer is started |
void |
ConnectivityGrid.GridCell.moveNode(DTNHost node,
ConnectivityGrid.GridCell to)
Moves a node in a Cell to another Cell |
void |
MovementListener.newDestination(DTNHost host,
Coord destination,
double speed)
Method is called every time a host receives a new destination from its movement model. |
int |
DTNHost.receiveMessage(Message m,
DTNHost from)
Start receiving a message from another host |
void |
DTNHost.sendMessage(java.lang.String id,
DTNHost to)
Sends a message from this host to another host |
int |
Connection.startTransfer(DTNHost from,
Message m)
Sets a message that this connection is currently transferring. |
void |
ConnectivityGrid.updateLocation(DTNHost node)
Checks and updates (if necessary) node's position in the grid |
Method parameters in core with type arguments of type DTNHost | |
---|---|
void |
ConnectivityGrid.addNodes(java.util.Collection<DTNHost> nodes)
Adds nodes to overlay grid |
void |
UpdateListener.updated(java.util.List<DTNHost> hosts)
Method is called on every update cycle. |
Constructors in core with parameters of type DTNHost | |
---|---|
Connection(DTNHost fromNode,
DTNHost toNode,
int connectionSpeed)
Creates a new connection between nodes and sets the connection state to "up". |
|
DTN2Manager.EIDHost(java.lang.String eid,
int host_id,
DTNHost host)
|
|
Message(DTNHost from,
DTNHost to,
java.lang.String id,
int size)
Creates a new Message. |
|
NetworkLayer(DTNHost host,
java.util.List<ConnectionListener> cListeners,
double transmitRange,
int transmitSpeed)
Constructor. |
Uses of DTNHost in gui |
---|
Methods in gui with parameters of type DTNHost | |
---|---|
void |
EventLogPanel.hostsConnected(DTNHost host1,
DTNHost host2)
|
void |
EventLogPanel.hostsDisconnected(DTNHost host1,
DTNHost host2)
|
void |
EventLogPanel.messageDeleted(Message m,
DTNHost where,
boolean dropped)
|
void |
EventLogPanel.messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
|
void |
EventLogPanel.messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean firstDelivery)
|
void |
EventLogPanel.messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
|
void |
DTNSimGUI.setFocus(DTNHost host)
Sets a node's graphical presentation in the center of the playfield view |
void |
InfoPanel.showInfo(DTNHost host)
Show information about a host |
Constructors in gui with parameters of type DTNHost | |
---|---|
RoutingInfoWindow(DTNHost host)
|
Constructor parameters in gui with type arguments of type DTNHost | |
---|---|
NodeChooser(java.util.List<DTNHost> nodes,
DTNSimGUI gui)
|
Uses of DTNHost in gui.playfield |
---|
Methods in gui.playfield with parameters of type DTNHost | |
---|---|
void |
PlayField.addMessageTransfer(DTNHost from,
DTNHost to)
Adds graphics for message transfer |
Constructors in gui.playfield with parameters of type DTNHost | |
---|---|
MessageGraphic(DTNHost from,
DTNHost to)
|
|
NodeGraphic(DTNHost node)
|
Uses of DTNHost in report |
---|
Methods in report with parameters of type DTNHost | |
---|---|
protected void |
ContactTimesReport.addConnection(DTNHost host1,
DTNHost host2)
|
void |
InterContactTimesReport.hostsConnected(DTNHost host1,
DTNHost host2)
|
void |
ContactTimesReport.hostsConnected(DTNHost host1,
DTNHost host2)
|
void |
ConnectivityDtnsim2Report.hostsConnected(DTNHost h1,
DTNHost h2)
|
void |
AdjacencyGraphvizReport.hostsConnected(DTNHost host1,
DTNHost host2)
|
void |
TotalContactTimeReport.hostsDisconnected(DTNHost host1,
DTNHost host2)
|
void |
InterContactTimesReport.hostsDisconnected(DTNHost host1,
DTNHost host2)
|
void |
ContactTimesReport.hostsDisconnected(DTNHost host1,
DTNHost host2)
|
void |
ConnectivityDtnsim2Report.hostsDisconnected(DTNHost h1,
DTNHost h2)
|
void |
AdjacencyGraphvizReport.hostsDisconnected(DTNHost host1,
DTNHost host2)
|
void |
MovementNs2Report.initialLocation(DTNHost host,
Coord location)
|
void |
MessageStatsReport.messageDeleted(Message m,
DTNHost where,
boolean dropped)
|
void |
MessageGraphvizReport.messageDeleted(Message m,
DTNHost where,
boolean dropped)
|
void |
MessageDeliveryReport.messageDeleted(Message m,
DTNHost where,
boolean dropped)
|
void |
MessageDelayReport.messageDeleted(Message m,
DTNHost where,
boolean dropped)
|
void |
DTN2Reporter.messageDeleted(Message m,
DTNHost where,
boolean dropped)
Method is called when a message is deleted |
void |
DistanceDelayReport.messageDeleted(Message m,
DTNHost where,
boolean dropped)
|
void |
DeliveredMessagesReport.messageDeleted(Message m,
DTNHost where,
boolean dropped)
|
void |
MessageStatsReport.messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
|
void |
MessageGraphvizReport.messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
|
void |
MessageDeliveryReport.messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
|
void |
MessageDelayReport.messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
|
void |
DTN2Reporter.messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
Method is called when a message's transfer was aborted before it finished |
void |
DistanceDelayReport.messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
|
void |
DeliveredMessagesReport.messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
|
void |
MessageStatsReport.messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean finalTarget)
|
void |
MessageGraphvizReport.messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean firstDelivery)
|
void |
MessageDeliveryReport.messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean firstDelivery)
|
void |
MessageDelayReport.messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean firstDelivery)
|
void |
DTN2Reporter.messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean firstDelivery)
Method is called when a message is successfully transferred from a node to another. |
void |
DistanceDelayReport.messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean firstDelivery)
This is called when a message is transferred between nodes |
void |
DeliveredMessagesReport.messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean firstDelivery)
|
void |
MessageStatsReport.messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
|
void |
MessageGraphvizReport.messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
|
void |
MessageDeliveryReport.messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
|
void |
MessageDelayReport.messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
|
void |
DTN2Reporter.messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
Method is called when a message's transfer is started |
void |
DistanceDelayReport.messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
|
void |
DeliveredMessagesReport.messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
|
void |
MovementNs2Report.newDestination(DTNHost host,
Coord dst,
double speed)
|
protected ContactTimesReport.ConnectionInfo |
ContactTimesReport.removeConnection(DTNHost host1,
DTNHost host2)
|
Method parameters in report with type arguments of type DTNHost | |
---|---|
void |
AdjacencyGraphvizReport.setAllHosts(java.util.Collection<DTNHost> hosts)
Sets all hosts that should be in the graph at least once |
void |
TotalContactTimeReport.updated(java.util.List<DTNHost> hosts)
Reports total contact time if more time than defined with setting ContactTimesReport.GRANULARITY has passed. |
Constructors in report with parameters of type DTNHost | |
---|---|
ContactTimesReport.ConnectionInfo(DTNHost h1,
DTNHost h2)
|
Uses of DTNHost in routing |
---|
Methods in routing that return DTNHost | |
---|---|
protected DTNHost |
MessageRouter.getHost()
Returns the host this router is in |
Methods in routing with parameters of type DTNHost | |
---|---|
double |
MaxPropRouter.getCost(DTNHost from,
DTNHost to)
Returns the message delivery cost between two hosts from this host's point of view. |
double |
ProphetRouter.getPredFor(DTNHost host)
Returns the current prediction (P) value for a host or 0 if entry for the host doesn't exist. |
void |
MessageRouter.init(DTNHost host,
java.util.List<MessageListener> mListeners)
Initializes the router; i.e. sets the host this router is in and message listeners that need to be informed about message related events etc. |
void |
ActiveRouter.init(DTNHost host,
java.util.List<MessageListener> mListeners)
|
void |
MessageRouter.messageAborted(java.lang.String id,
DTNHost from,
int bytesRemaining)
This method should be called (on the receiving host) when a message transfer was aborted. |
Message |
SprayAndWaitRouter.messageTransferred(java.lang.String id,
DTNHost from)
|
Message |
MessageRouter.messageTransferred(java.lang.String id,
DTNHost from)
This method should be called (on the receiving host) after a message was successfully transferred. |
Message |
MaxPropRouter.messageTransferred(java.lang.String id,
DTNHost from)
|
Message |
ActiveRouter.messageTransferred(java.lang.String id,
DTNHost from)
|
protected void |
MessageRouter.putToIncomingBuffer(Message m,
DTNHost from)
Puts a message to incoming messages buffer. |
int |
SprayAndWaitRouter.receiveMessage(Message m,
DTNHost from)
|
int |
MessageRouter.receiveMessage(Message m,
DTNHost from)
Try to start receiving a message from another host. |
int |
ActiveRouter.receiveMessage(Message m,
DTNHost from)
|
protected Message |
MessageRouter.removeFromIncomingBuffer(java.lang.String id,
DTNHost from)
Removes and returns a message with a certain ID from the incoming messages buffer or null if such message wasn't found. |
void |
MessageRouter.sendMessage(java.lang.String id,
DTNHost to)
Start sending a message to another host. |
Uses of DTNHost in test |
---|
Subclasses of DTNHost in test | |
---|---|
class |
TestDTNHost
A test stub of DTNHost for testing. |
Fields in test declared as DTNHost | |
---|---|
DTNHost |
TestDTNHost.abortedFrom
|
protected DTNHost |
AbstractRouterTest.h0
|
protected DTNHost |
AbstractRouterTest.h1
|
protected DTNHost |
AbstractRouterTest.h2
|
protected DTNHost |
AbstractRouterTest.h3
|
protected DTNHost |
AbstractRouterTest.h4
|
protected DTNHost |
AbstractRouterTest.h5
|
protected DTNHost |
AbstractRouterTest.h6
|
DTNHost |
TestDTNHost.recvFrom
|
DTNHost |
TestDTNHost.transferredFrom
|
Methods in test that return DTNHost | |
---|---|
DTNHost |
TestUtils.createHost()
Creates a host to location (0,0) with stationary movement model and default name. |
DTNHost |
TestUtils.createHost(Coord loc)
Creates a host to a location with stationary movement model and default name. |
DTNHost |
TestUtils.createHost(Coord loc,
java.lang.String name)
Creates a host to a location with stationary movement model and MessageRouter router. |
DTNHost |
TestUtils.createHost(MovementModel mmProto,
java.lang.String name)
Creates a host with defined movement model |
DTNHost |
MessageChecker.getLastFrom()
|
DTNHost |
MessageChecker.getLastTo()
|
Methods in test that return types with arguments of type DTNHost | |
---|---|
java.util.List<DTNHost> |
TestUtils.getAllHosts()
|
Methods in test with parameters of type DTNHost | |
---|---|
protected void |
AbstractRouterTest.checkDelivered(DTNHost from,
DTNHost to,
java.lang.String msgId,
boolean isFirstDelivery)
|
protected void |
AbstractRouterTest.checkTransferStart(DTNHost from,
DTNHost to,
java.lang.String msgId)
|
void |
TestDTNHost.connect(DTNHost anotherHost)
|
protected void |
AbstractRouterTest.deliverMessage(DTNHost from,
DTNHost to,
java.lang.String msgId,
int msgSize,
boolean firstDelivery)
|
protected static void |
AbstractRouterTest.disconnect(DTNHost node)
Moves node to disconnectLocation (far away from c0), updates it and restores the node location |
void |
TestDTNHost.messageAborted(java.lang.String id,
DTNHost from,
int bytesRemaining)
|
void |
MessageChecker.messageDeleted(Message m,
DTNHost where,
boolean dropped)
|
void |
MessageChecker.messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
|
void |
MessageChecker.messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean firstDelivery)
|
void |
TestDTNHost.messageTransferred(java.lang.String id,
DTNHost from)
|
void |
MessageChecker.messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
|
int |
TestDTNHost.receiveMessage(Message m,
DTNHost from)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |