Package jsl.simulation
Interface ModelElement.EventBuilderIfc<T>
-
- All Known Implementing Classes:
ModelElement.EventScheduler
- Enclosing class:
- ModelElement
public static interface ModelElement.EventBuilderIfc<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModelElement.EventBuilderIfc<T>
havingPriority(int priority)
Sets the scheduling priority of the event, lower is fasterModelElement.TimeUnitIfc<T>
in(double time)
Sets the time of the event being built to current time + timeModelElement.TimeUnitIfc<T>
in(GetValueIfc value)
Sets the time of the event being built to current time + value.getValue()ModelElement.EventBuilderIfc<T>
name(java.lang.String name)
Sets the name of the event being builtJSLEvent<T>
now()
Causes the event that is being built to be scheduled at the current simulation time (no time offset)ModelElement.EventBuilderIfc<T>
withMessage(T message)
An object of type T that is attached to the event
-
-
-
Method Detail
-
withMessage
ModelElement.EventBuilderIfc<T> withMessage(T message)
An object of type T that is attached to the event- Parameters:
message
- the message to attach- Returns:
- the builder
-
havingPriority
ModelElement.EventBuilderIfc<T> havingPriority(int priority)
Sets the scheduling priority of the event, lower is faster- Parameters:
priority
- the priority- Returns:
- the builder
-
name
ModelElement.EventBuilderIfc<T> name(java.lang.String name)
Sets the name of the event being built- Parameters:
name
- the name of the event- Returns:
- the builder
-
now
JSLEvent<T> now()
Causes the event that is being built to be scheduled at the current simulation time (no time offset)- Returns:
- the event that was scheduled
-
in
ModelElement.TimeUnitIfc<T> in(GetValueIfc value)
Sets the time of the event being built to current time + value.getValue()- Parameters:
value
- an object that can compute the time via getValue()- Returns:
- the builder
-
in
ModelElement.TimeUnitIfc<T> in(double time)
Sets the time of the event being built to current time + time- Parameters:
time
- the time until the event should occur- Returns:
- the builder
-
-