Package | Description |
---|---|
simkit |
Contains the basic functionality of simkit.
|
simkit.animate | |
simkit.examples |
Useful implementations of basic event graph systems.
|
simkit.nss |
Experimental Classes for making NSS use Simkit as its simulation engine.
|
simkit.random |
A collection of Classes used to generate Random Numbers, Random
Variates, and RandomVectors.
|
simkit.smdx |
Contains basic classes to represent the entities in a combat simulation.
|
simkit.smdx.animate | |
simkit.smdx.test | |
simkit.util |
Contains a number of useful generic classes.
|
Modifier and Type | Field and Description |
---|---|
private SimEvent |
EventList.currentSimEvent
The event currently being handled.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<SimEventScheduler,java.util.SortedSet<SimEvent>> |
EventList.entityEventMap
A Map a SimEntity to a SortedSet of its pending SimEvents.
|
protected java.util.SortedSet<SimEvent> |
EventList.eventList
Holds the pending events.
|
protected java.util.Map<java.lang.Integer,java.util.SortedSet<SimEvent>> |
EventList.hashEventMap
A Map from a SimEvent.getEventHash() (an Integer) to a SortedSet of
pending events.
|
Modifier and Type | Method and Description |
---|---|
static SimEvent |
Schedule.getCurrentEvent()
Returns currently executing event; null if simulation is not currently
running.
|
SimEvent |
BasicEventList.getCurrentSimEvent() |
SimEvent |
EventList.getCurrentSimEvent() |
SimEvent |
BasicSimEntity.waitDelay(java.lang.String name,
double delay,
java.lang.Object... parameters)
Schedules an event with the default priority /
|
SimEvent |
SimEventScheduler.waitDelay(java.lang.String eventName,
double delay,
java.lang.Object... parameters)
Schedule an event with (optional) given parameters and a default priority after a delay from
the current simulation time.
|
SimEvent |
BasicSimEntity.waitDelay(java.lang.String name,
double delay,
Priority priority,
java.lang.Object... parameters)
Schedules a SimEvent for an event that has multiple parameters.
|
SimEvent |
SimEventScheduler.waitDelay(java.lang.String eventName,
double delay,
Priority priority,
java.lang.Object... parameters)
Schedule an event after a delay from the current
simulation time.
|
SimEvent |
BasicSimEntity.waitDelay(java.lang.String name,
RandomVariate delayGenerator,
java.lang.Object... parameters)
Schedules an event using a RandomVariate instance to generate the delay.
|
SimEvent |
BasicSimEntity.waitDelay(java.lang.String name,
RandomVariate delayGenerator,
Priority priority,
java.lang.Object... parameters)
Schedules an event using a RandomVariate instance to generate the delay
|
Modifier and Type | Method and Description |
---|---|
protected java.util.SortedSet<SimEvent> |
EventList.getEventList() |
static java.util.SortedSet<SimEvent> |
SimkitTestingHelper.getEventSet() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
EventList.addToEntityEventMap(SimEvent event)
Adds the given SimEvent to the entity event Map.
|
protected boolean |
EventList.addToHashEventMap(SimEvent event)
Adds the given SimEvent to the event hash event Map.
|
protected void |
BasicSimEntity.attemptSchedule(SimEvent event)
Schedules an event.
|
int |
SimEvent.compareTo(SimEvent other)
Compares this SimEvent to another SimEvent.
|
void |
Adapter.handleSimEvent(SimEvent event)
Does nothing, since instances of Adapter will never schedule their own
events.
|
void |
BasicAssembly.handleSimEvent(SimEvent simEvent)
Empty, implemented here so subclasses don't have to implement
(abstract method of BasicSimEntity)
|
abstract void |
BasicSimEntity.handleSimEvent(SimEvent event) |
void |
Bridge.handleSimEvent(SimEvent simEvent)
Does nothing.
|
void |
EventCounter.handleSimEvent(SimEvent simEvent)
Does nothing, since this will never schedule any events
|
void |
SimEntityBase.handleSimEvent(SimEvent event)
Process the given SimEvent.
|
void |
SimEntityBaseA.handleSimEvent(SimEvent event) |
void |
SimEntityBaseProtected.handleSimEvent(SimEvent event)
Process the given SimEvent.
|
void |
SimEventFilter.handleSimEvent(SimEvent simEvent)
Does nothing, since no events will be scheduled
|
void |
SimEventRedispatcher.handleSimEvent(SimEvent event)
Does nothing, since this only responds to events that are heard.
|
void |
SimEventScheduler.handleSimEvent(SimEvent event)
Typically an Event is handled (as opposed to processed, as in SimEventListener)
by actually executing a method.
|
protected java.lang.reflect.Method |
SimEntityBaseA.lookupMethodForSimEvent(SimEvent event) |
void |
BasicSimEventSource.notifyListeners(SimEvent event)
Causes all registered SimEventListeners to be notified of the given SimEvent.
|
void |
SimEventSource.notifyListeners(SimEvent event)
Notify registered listeners by calling their processSimEvent method.
|
void |
Adapter.processSimEvent(SimEvent event)
If the heard event is the one we are listening for, dispatch an event
with the name "passedEvent" that is otherwise identical.
|
void |
BasicAssembly.processSimEvent(SimEvent simEvent)
Empty, implemented here so subclasses don't have to implement
(abstract method of BasicSimEntity)
|
abstract void |
BasicSimEntity.processSimEvent(SimEvent event)
Process the given SimEvent.
|
void |
Bridge.processSimEvent(SimEvent simEvent)
Schedules the sent event using the parameters and priority from the heard
event.
|
void |
EventCounter.processSimEvent(SimEvent simEvent)
If a non-Run event is heard that has been heard before,
increment its count.
|
void |
SimEntityBase.processSimEvent(SimEvent event)
Process the given SimEvent.
|
void |
SimEntityBaseA.processSimEvent(SimEvent event) |
void |
SimEntityBaseProtected.processSimEvent(SimEvent event)
Process the given SimEvent.
|
void |
SimEventFilter.processSimEvent(SimEvent simEvent)
If passing through events and event is on list, send to listeners.
|
void |
SimEventListener.processSimEvent(SimEvent event)
Process the fired SimEvent.
|
void |
SimEventRedispatcher.processSimEvent(SimEvent event)
Creates a copy of the SimEvent and dispatches it to the SimEventListeners
of the source instance.
|
protected boolean |
EventList.removeFromEntityEventMap(SimEvent event)
Removes the given SimEvent from the entity event Map.
|
protected boolean |
EventList.removeFromHashEventMap(SimEvent event)
Removes the given SimEvent from the hash event Map.
|
void |
BasicEventList.scheduleEvent(SimEvent event)
Place an event on the event list.
|
void |
EventList.scheduleEvent(SimEvent event) |
protected void |
EventList.updateEventCounts(SimEvent event)
Adds one to the number of this event that have occurred.
|
Modifier and Type | Method and Description |
---|---|
void |
PingPainter.handleSimEvent(SimEvent simEvent) |
void |
PingPainter.processSimEvent(SimEvent simEvent) |
void |
PingPanel.processSimEvent(SimEvent e) |
Modifier and Type | Method and Description |
---|---|
void |
ArrivalProcess2.handleSimEvent(SimEvent event)
Handles either a Run or an Arrival event.
|
void |
SimpleServer2.handleSimEvent(SimEvent event)
Handles the Run, Arrival, StartService, and EndService events by calling
the corresponding event ("do") method.
|
void |
ArrivalProcess2.processSimEvent(SimEvent event)
Does nothing.
|
void |
SimpleServer2.processSimEvent(SimEvent event)
Processes events for which this SimpleServer2 is a listener.
|
Modifier and Type | Method and Description |
---|---|
void |
NativeBasicSimEntity.handleSimEvent(SimEvent simEvent)
This method is called from Schedule and will only
be passed SimEvents it had originally scheduled.
|
void |
NativeBasicSimEntity.processSimEvent(SimEvent simEvent)
This callback is received by listening to another SimEntity
|
Modifier and Type | Method and Description |
---|---|
void |
NHPoissonProcessVariate.handleSimEvent(SimEvent event) |
void |
NHPoissonProcess_64Variate.handleSimEvent(SimEvent event) |
void |
NPPoissonProcessThinnedVariate.handleSimEvent(SimEvent event) |
void |
NPPoissonProcessThinned_64Variate.handleSimEvent(SimEvent event) |
void |
NHPoissonProcessVariate.processSimEvent(SimEvent event) |
void |
NHPoissonProcess_64Variate.processSimEvent(SimEvent event) |
void |
NPPoissonProcessThinnedVariate.processSimEvent(SimEvent event) |
void |
NPPoissonProcessThinned_64Variate.processSimEvent(SimEvent event) |
Modifier and Type | Method and Description |
---|---|
SimEvent |
FormationMoverManager.SurrogateTarget.waitDelay(java.lang.String n,
double d) |
SimEvent |
FormationMoverManager.SurrogateTarget.waitDelay(java.lang.String n,
double d,
java.lang.Object... o) |
SimEvent |
FormationMoverManager.SurrogateTarget.waitDelay(java.lang.String n,
double d,
Priority p,
java.lang.Object... o) |
Modifier and Type | Method and Description |
---|---|
void |
FormationMoverManager.SurrogateTarget.handleSimEvent(SimEvent e) |
void |
FormationMoverManager.SurrogateTarget.notifyListeners(SimEvent e) |
void |
FormationMoverManager.SurrogateTarget.processSimEvent(SimEvent event) |
Modifier and Type | Method and Description |
---|---|
void |
AnimationFrame.processSimEvent(SimEvent e)
Here's where I hear the Ping event and update my entities.
|
Modifier and Type | Method and Description |
---|---|
void |
AnimationTest.processSimEvent(SimEvent e)
Here's where I hear the Ping event and update my entities.
|
Modifier and Type | Method and Description |
---|---|
SimEvent |
UnitTestEventList.getScheduledEvent(java.lang.String eventName)
Gets the SimEvent of the given name that would occur first in the
current event list's state.
|
SimEvent |
UnitTestEventList.getScheduledEvent(java.lang.String eventName,
java.lang.Object[] params)
Gets the SimEvent of the given name and parameter list that would occur
first in the current event list's state.
|
Modifier and Type | Method and Description |
---|---|
java.util.SortedSet<SimEvent> |
UnitTestEventList.getScheduledEvents() |
java.util.SortedSet<SimEvent> |
UnitTestEventList.getScheduledEvents(java.lang.String eventName)
Returns all scheduled events of the given name in increasing scheduled
order.
|
Modifier and Type | Method and Description |
---|---|
void |
CollectionSizeListener.handleSimEvent(SimEvent event)
Does nothing, since no SimEvents are scheduled by this class
|
void |
IndexedCollectionSizeListener.handleSimEvent(SimEvent event)
Does nothing, since no SimEvents are scheduled by this class
|
void |
Resetter.handleSimEvent(SimEvent event)
Does nothing
|
void |
TimeBetweenEvent.handleSimEvent(SimEvent event)
Empty - doesn't schedule any methods
|
void |
TimeBetweenEvents.handleSimEvent(SimEvent event)
Does nothing.
|
void |
CollectionSizeListener.processSimEvent(SimEvent event)
Does nothing, since this class should not respond to
any SimEvents
|
void |
IndexedCollectionSizeListener.processSimEvent(SimEvent event)
Does nothing, since this class should not respond to
any SimEvents
|
void |
ModelTrajectoryLogger.processSimEvent(SimEvent e) |
void |
Resetter.processSimEvent(SimEvent event)
Does nothing.
|
void |
SimpleEventLogger.processSimEvent(SimEvent event) |
void |
TimeBetweenEvent.processSimEvent(SimEvent event)
TODO: Replace call to parametersMatch(Object[] Object[]) with
Arrays.equals(Object[] Object[]).
|
void |
TimeBetweenEvents.processSimEvent(SimEvent event)
If the event is the first one, store the current
value of simTime on the list.
|