AnyLogic
Expand
Font size
All Implemented Interfaces:
com.anylogic.engine.internal.Child, Serializable
Direct Known Subclasses:
EventCondition, EventRate, EventTimeout

public abstract class Event
extends EventOriginator
implements com.anylogic.engine.internal.Child
Base class for all kinds of (static) events: EventTimeout, EventRate and EventCondition.
Memory: sizeof(EventOriginator) = 22 bytes
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Method Summary

Modifier and TypeMethodDescription
abstract voidreset() 
abstract voidrestart() 
voidrestoreOwner(Object owner)
Deprecated.
abstract voidstart()
Should be called when the agents starts.

Methods inherited from class com.anylogic.engine.EventOriginator

cancel, getActiveObject, getAgent, getFullName, getName, getRest, getRest, isActive, isCurrent, isLoggingToDB, onDestroy, toString

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Method Details

reset

public abstract void reset()

restart

public abstract void restart()

start

@AnyLogicInternalCodegenAPI
public abstract void start()
Should be called when the agents starts. Performs initial event scheduling.

restoreOwner

@AnyLogicInternalCodegenAPI
@Deprecated
public void restoreOwner(Object owner)
Deprecated.
This method normally should not be called by user
This method restores owner of this object
The method is used in snapshot saving/loading
Specified by:
restoreOwner in interface com.anylogic.engine.internal.Child
Parameters:
owner - owner of this object, usually Agent, Experiment or ShapeGroup