public class ProphetRouter extends ActiveRouter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BETA_S
Transitivity scaling constant (beta) -setting id ("beta").
|
static double |
DEFAULT_BETA
delivery predictability transitivity scaling constant default value
|
static double |
GAMMA
delivery predictability aging constant
|
static double |
P_INIT
delivery predictability initialization constant
|
static java.lang.String |
PROPHET_NS
Prophet router's setting namespace ("ProphetRouter")
|
static java.lang.String |
SECONDS_IN_UNIT_S
Number of seconds in time unit -setting id ("secondsInTimeUnit").
|
DELETE_DELIVERED_S, deleteDelivered, RESPONSE_PREFIX, sendingConnectionsB_SIZE_S, DENIED_LOW_RESOURCES, DENIED_NO_SPACE, DENIED_OLD, DENIED_POLICY, DENIED_TTL, DENIED_UNSPECIFIED, MSG_TTL_S, msgTtl, Q_MODE_FIFO, Q_MODE_RANDOM, RCV_OK, SEND_QUEUE_MODE_S, TRY_LATER_BUSY| Modifier | Constructor and Description |
|---|---|
protected |
ProphetRouter(ProphetRouter r)
Copyconstructor.
|
|
ProphetRouter(Settings s)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changedConnection(Connection con)
Called when a connection's state changes.
|
double |
getPredFor(DTNHost host)
Returns the current prediction (P) value for a host or 0 if entry for
the host doesn't exist.
|
RoutingInfo |
getRoutingInfo()
Returns routing information about this router.
|
MessageRouter |
replicate()
Creates a replicate of this router.
|
void |
update()
Checks out all sending connections to finalize the ready ones
and abort those whose connection went down.
|
addToSendingConnections, canStartTransfer, checkReceiving, createNewMessage, dropExpiredMessages, exchangeDeliverableMessages, getConnections, getMessagesForConnected, getNextMessageToRemove, hasEnergy, init, isSending, isTransferring, makeRoomForMessage, makeRoomForNewMessage, messageTransferred, receiveMessage, requestDeliverableMessages, shuffleMessages, startTransfer, transferAborted, transferDone, tryAllMessages, tryAllMessagesToAllConnections, tryMessagesForConnected, tryMessagesToConnectionsaddApplication, addToMessages, compareByQueueMode, deleteMessage, getApplications, getBufferSize, getFreeBufferSize, getHost, getMessage, getMessageCollection, getNrofMessages, hasMessage, isBlacklistedMessage, isDeliveredMessage, isIncomingMessage, messageAborted, putToIncomingBuffer, removeFromIncomingBuffer, removeFromMessages, sendMessage, sortByQueueMode, toStringpublic static final double P_INIT
public static final double DEFAULT_BETA
public static final double GAMMA
public static final java.lang.String PROPHET_NS
public static final java.lang.String SECONDS_IN_UNIT_S
public static final java.lang.String BETA_S
DEFAULT_BETA.public ProphetRouter(Settings s)
s - The settings objectprotected ProphetRouter(ProphetRouter r)
r - The router prototype where setting values are copied frompublic void changedConnection(Connection con)
ActiveRouterchangedConnection in class ActiveRoutercon - The connection that changedpublic double getPredFor(DTNHost host)
host - The host to look the P forpublic void update()
ActiveRouterupdate in class ActiveRouterActiveRouter.addToSendingConnections(Connection)public RoutingInfo getRoutingInfo()
MessageRoutergetRoutingInfo in class ActiveRouterpublic MessageRouter replicate()
MessageRouterreplicate in class MessageRouter