inputOutputHandler
Class ReplyDecision

java.lang.Object
  extended by inputOutputHandler.ReplyDecision

final class ReplyDecision
extends java.lang.Object

Decides about the optimal reply size and time depending on the current traffic situation (only used by last mix of cascade).

"Traffic situation" means the amount of data available to reply (for each channel/user) at a given point of time.

"Optimal size" means the best tradeoff between padding and the total amount of (available) data actually sent. A "perfect size" is only possible if all channels contain the same amount of data. In any other situation, optimizing one parameter will have a negative effect on the other. So, "the best tradeoff" depends on situational conditions and therefore can't be generalized.

"Optimal time" means the best point of time for returning the data available which again is a tradeoff and depends on situational conditions and therefore can't be generalized.

Author:
Karl-Peter Fuchs

Constructor Summary
protected ReplyDecision(InputOutputHandlerController inputOutputHandler)
          Creates a new ReplyDecision object which can be used to decides about the optimal reply size and time depending on the current traffic situation by the last mix of a cascade.
 
Method Summary
protected  void manageReplyProcess(User[] channels)
          Decides about the optimal reply size and time depending on the current traffic situation for the bypassed channels/users.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplyDecision

protected ReplyDecision(InputOutputHandlerController inputOutputHandler)
Creates a new ReplyDecision object which can be used to decides about the optimal reply size and time depending on the current traffic situation by the last mix of a cascade.

"Traffic situation" means the amount of data available to reply (for each channel/user) at a given point of time.

"Optimal size" means the best tradeoff between padding and the total amount of (available) data actually sent. A "perfect size" is only possible if all channels contain the same amount of data. In any other situation, optimizing one parameter will have a negative effect on the other. So, "the best tradeoff" depends on situational conditions and therefore can't be generalized.

"Optimal time" means the best point of time for returning the data available which again is a tradeoff and depends on situational conditions and therefore can't be generalized.

Parameters:
inputOutputHandler - Reference on InputOutputHandlerController (used to add unprocessed Replyies).
Method Detail

manageReplyProcess

protected void manageReplyProcess(User[] channels)
Decides about the optimal reply size and time depending on the current traffic situation for the bypassed channels/users.

Parameters:
channels - The channels/users to be observed.