input
Class OneToEachMessageGenerator

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

public class OneToEachMessageGenerator
extends MessageEventGenerator

Message creation -external events generator. Creates one message from source node/nodes (defined with MessageEventGenerator.HOST_RANGE_S) to all 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 there's a message for every destination node.

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
OneToEachMessageGenerator(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

OneToEachMessageGenerator

public OneToEachMessageGenerator(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()