Uses of Class
core.Connection

Packages that use Connection
core Contains core classes and interfaces of the simulator. 
routing Contains all the router classes who decide how to handle the messages. 
 

Uses of Connection in core
 

Methods in core that return types with arguments of type Connection
 java.util.List<Connection> NetworkLayer.getConnections()
          Returns a list of currently connected connections
 java.util.List<Connection> DTNHost.getConnections()
          Returns a list of connections this host has with other hosts
 

Methods in core with parameters of type Connection
 void DTNHost.changedConnection(Connection con)
          Informs the router of this host about state change in a connection object.
 boolean DTNHost.requestDeliverableMessages(Connection con)
          Requests for deliverable message from this host to be sent trough a connection.
 

Uses of Connection in routing
 

Methods in routing that return Connection
protected  Connection ActiveRouter.exchangeDeliverableMessages()
          Exchanges deliverable (to final recipient) messages between this host and all hosts this host is currently connected to.
protected  Connection ActiveRouter.tryAllMessagesToAllConnections()
          Tries to send all messages that this router is carrying to all connections this node has.
protected  Connection ActiveRouter.tryMessagesToConnections(java.util.List<Message> messages, java.util.List<Connection> connections)
          Tries to send all given messages to all given connections.
 

Methods in routing that return types with arguments of type Connection
protected  java.util.List<Connection> ActiveRouter.getConnections()
          Returns a list of connections this host currently has with other hosts.
protected  java.util.List<Tuple<Message,Connection>> ActiveRouter.getMessagesForConnected()
          Returns a list of message-connections tuples of the messages whose recipient is some host that we're connected to at the moment.
protected  Tuple<Message,Connection> ActiveRouter.tryMessagesForConnected(java.util.List<Tuple<Message,Connection>> tuples)
          Tries to send messages for the connections that are mentioned in the Tuples in the order they are in the list until one of the connections starts transferring or all tuples have been tried.
 

Methods in routing with parameters of type Connection
protected  void ActiveRouter.addToSendingConnections(Connection con)
          Adds a connections to sending connections which are monitored in the update.
 void ProphetRouter.changedConnection(Connection con)
           
 void PassiveRouter.changedConnection(Connection con)
           
abstract  void MessageRouter.changedConnection(Connection con)
          Informs the router about change in connections state.
 void MaxPropRouter.changedConnection(Connection con)
           
 void ActiveRouter.changedConnection(Connection con)
          Called when a connection's state changes.
 boolean MessageRouter.requestDeliverableMessages(Connection con)
          Requests for deliverable message from this router to be sent trough a connection.
 boolean ActiveRouter.requestDeliverableMessages(Connection con)
           
protected  int ActiveRouter.startTransfer(Message m, Connection con)
          Tries to start a transfer of message using a connection.
protected  void ActiveRouter.transferAborted(Connection con)
          Method is called just before a transfer is aborted at ActiveRouter.update() due connection going down.
protected  void SprayAndWaitRouter.transferDone(Connection con)
          Called just before a transfer is finalized (by ActiveRouter.update()).
protected  void MaxPropRouter.transferDone(Connection con)
          Method is called just before a transfer is finalized at ActiveRouter.update().
protected  void FirstContactRouter.transferDone(Connection con)
           
protected  void ActiveRouter.transferDone(Connection con)
          Method is called just before a transfer is finalized at ActiveRouter.update().
protected  Message ActiveRouter.tryAllMessages(Connection con, java.util.List<Message> messages)
          Goes trough the messages until the other node accepts one for receiving (or doesn't accept any).
 

Method parameters in routing with type arguments of type Connection
protected  Tuple<Message,Connection> ActiveRouter.tryMessagesForConnected(java.util.List<Tuple<Message,Connection>> tuples)
          Tries to send messages for the connections that are mentioned in the Tuples in the order they are in the list until one of the connections starts transferring or all tuples have been tried.
protected  Connection ActiveRouter.tryMessagesToConnections(java.util.List<Message> messages, java.util.List<Connection> connections)
          Tries to send all given messages to all given connections.