|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinput.MessageEventGenerator
public class MessageEventGenerator
Message creation -external events generator. Creates uniformly distributed message creation patterns whose message size and inter-message intervals can be configured.
| Field Summary | |
|---|---|
static java.lang.String |
HOST_RANGE_S
Sender/receiver address range -setting id ("hosts"). |
static java.lang.String |
MESSAGE_ID_PREFIX_S
Message ID prefix -setting id ("prefix"). |
static java.lang.String |
MESSAGE_INTERVAL_S
Message creation interval range -setting id ("interval"). |
static java.lang.String |
MESSAGE_SIZE_S
Message size range -setting id ("size"). |
protected double |
nextEventsTime
Time of the next event (simulated seconds) |
| Constructor Summary | |
|---|---|
MessageEventGenerator(Settings s)
Constructor, initializes the interval between events, and the size of messages generated, as well as number of hosts in the network. |
|
| Method Summary | |
|---|---|
ExternalEvent |
nextEvent()
Returns the next message creation event |
double |
nextEventsTime()
Returns next message creation event's time |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MESSAGE_SIZE_S
public static final java.lang.String MESSAGE_INTERVAL_S
public static final java.lang.String HOST_RANGE_S
public static final java.lang.String MESSAGE_ID_PREFIX_S
protected double nextEventsTime
| Constructor Detail |
|---|
public MessageEventGenerator(Settings s)
s - Settings for this generator.| Method Detail |
|---|
public ExternalEvent nextEvent()
nextEvent in interface EventQueueEventQueue.nextEvent()public double nextEventsTime()
nextEventsTime in interface EventQueueEventQueue.nextEventsTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||