AnyLogic AnyLogic
Expand
Font size
All Implemented Interfaces:
com.anylogic.engine.internal.Child, java.io.Serializable
Direct Known Subclasses:
TransitionCondition, TransitionMessage, TransitionRate, TransitionTimeout

public abstract class Transition
extends EventOriginator
implements com.anylogic.engine.internal.Child
Base class for all kinds of statechart transitions: TransitionTimeout, TransitionRate, TransitionCondition and TransitionMessage
Memory: sizeof(EventOriginator) = 22 bytes
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Method Summary

All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
abstract void cancel()
Should be called when this transition becomes deactivated e.g. as a result of alternative transition being taken.
boolean isLoggingToDB()
Return true if the given event (or dynamic event) is logged to database (note that this may be overridden by logging settings of Agent).
void restoreOwner​(java.lang.Object owner)
Deprecated.
Modifier and Type Method Description

Methods inherited from class com.anylogic.engine.EventOriginator

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

Methods inherited from class java.lang.Object

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

Method Detail

cancel

@AnyLogicInternalCodegenAPI
public abstract void cancel()
Should be called when this transition becomes deactivated e.g. as a result of alternative transition being taken.
Overrides:
cancel in class EventOriginator

restoreOwner

@AnyLogicInternalCodegenAPI
@Deprecated
public void restoreOwner​(java.lang.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

isLoggingToDB

public boolean isLoggingToDB()
Description copied from class: EventOriginator
Return true if the given event (or dynamic event) is logged to database (note that this may be overridden by logging settings of Agent).
Overrides:
isLoggingToDB in class EventOriginator
How can we improve this article?