input
Class OneFromEachMessageGenerator

java.lang.Object
  extended by input.MessageEventGenerator
      extended by input.OneFromEachMessageGenerator
All Implemented Interfaces:
EventQueue

public class OneFromEachMessageGenerator
extends MessageEventGenerator

Message creation -external events generator. Creates one message from every source node (defined with MessageEventGenerator.HOST_RANGE_S) to one of the destination nodes (defined with MessageEventGenerator.TO_HOST_RANGE_S). The message size, first messages time and the intervals between creating messages can be configured like with MessageEventGenerator. End time is not respected, but messages are created until every from-node has created a message.

See Also:
MessageEventGenerator

Field Summary
 
Fields inherited from class input.MessageEventGenerator
HOST_RANGE_S, hostRange, idPrefix, MESSAGE_ID_PREFIX_S, MESSAGE_INTERVAL_S, MESSAGE_SIZE_S, MESSAGE_TIME_S, msgTime, nextEventsTime, rng, TO_HOST_RANGE_S, toHostRange
 
Constructor Summary
OneFromEachMessageGenerator(Settings s)
           
 
Method Summary
 ExternalEvent nextEvent()
          Returns the next message creation event
 
Methods inherited from class input.MessageEventGenerator
drawHostAddress, drawMessageSize, drawNextEventTimeDiff, drawToAddress, getID, nextEventsTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneFromEachMessageGenerator

public OneFromEachMessageGenerator(Settings s)
Method Detail

nextEvent

public ExternalEvent nextEvent()
Returns the next message creation event

Specified by:
nextEvent in interface EventQueue
Overrides:
nextEvent in class MessageEventGenerator
Returns:
The next event
See Also:
EventQueue.nextEvent()