public class EventsGenerator extends Object
The generator randomly adds new state machines, and removes state machines as soon as they reach the terminal state. This implementation maintains up to 1000 state machines concurrently.
Constructor and Description |
---|
EventsGenerator() |
EventsGenerator(double errorProb) |
Modifier and Type | Method and Description |
---|---|
Event |
next(int minIp,
int maxIp)
Creates a new random event.
|
Event |
nextInvalid()
Creates an event for an illegal state transition of one of the internal state machines.
|
int |
numActiveEntries() |
public EventsGenerator()
public EventsGenerator(double errorProb)
public Event next(int minIp, int maxIp)
With errorProb
probability, the generated event will be from an illegal state
transition of one of the currently running state machines.
minIp
- The lower bound for the range from which a new IP address may be picked.maxIp
- The upper bound for the range from which a new IP address may be picked.@Nullable public Event nextInvalid()
next(int, int)
was made, yet), this will return null.public int numActiveEntries()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.