public abstract class SimEntityEvent
extends org.javades.jsimulation.r5.DefaultSimEvent
SimEvent for a SimEntity (queue, job, or other) operation.
This class only administers the key parameters for the event; it does not actually schedule it.
Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
| Modifier and Type | Class and Description |
|---|---|
static class |
SimEntityEvent.Reset
The (default)
SimEvent for resetting a SimEntity. |
static class |
SimEntityEvent.Update
The (default)
SimEvent for updating a SimEntity. |
| Modifier | Constructor and Description |
|---|---|
protected |
SimEntityEvent(String name,
double time,
SimEntity entity,
org.javades.jsimulation.r5.SimEventAction<? extends SimEntity> action)
Creates a new event for an entity.
|
| Modifier and Type | Method and Description |
|---|---|
SimEntity |
getEntity()
Gets the entity at which the event occurs.
|
protected SimEntityEvent(String name, double time, SimEntity entity, org.javades.jsimulation.r5.SimEventAction<? extends SimEntity> action)
name - The (optional) name of the event, may be null.time - The time at which the event occurs.entity - The entity related to the event, non-null.action - The SimEventAction to take; may be null.IllegalArgumentException - If entity == null.public final SimEntity getEntity()
null.Copyright © 2018. All rights reserved.