public class EventRate extends Event
Constructor and Description |
---|
EventRate(Agent ao)
Constructs the event object with Rate trigger.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the rate event as specified by the user.
|
void |
onChange()
Should be called when something changes in the object (and probably the rate
changes).
|
void |
reset()
Cancels the currently scheduled event, if any.
|
void |
restart()
Cancels the currently scheduled event, if any, and
schedules the next occurrence according to the Rate.
|
void |
start()
Should be called when the agents starts.
|
restoreOwner
cancel, getActiveObject, getAgent, getFullName, getRest, getRest, isActive, isCurrent, isLoggingToDB, onDestroy, toString
public EventRate(Agent ao)
ao
- agent where this event belongs topublic java.lang.String getName()
getName
in class EventOriginator
public void reset()
restart()
is called.public void restart()
@AnyLogicInternalCodegenAPI public void start()
public void onChange()
Copyright © AnyLogic North America, LLC. All Rights Reserved.