AnyLogic
Expand
Font size
All Implemented Interfaces:
Serializable

@AnyLogicInternalAPI
public class DatabaseLogState
extends Object
implements Serializable
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.

This class is responsible for storing some intermediate state required by the model logging.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
DatabaseLogState() 

Method Summary

Modifier and TypeMethodDescription
intgenerateAgentElementId()
This method generates new id for dynamically created agent elements
intgenerateAgentId()
Internal method, used to initialize Agent.getId() property
intgetAgentTypeElementId(LoggingType loggingType, Agent agent, String elementName)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
intgetAgentTypeId(Agent agent)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
<T extends Enum<T> & IStatechartState<?, T>>
int
getAgentTypeStateId(Agent agent, Statechart<T> statechart, T state)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
intgetEventId(EventOriginator event)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
intgetStatechartId(Statechart<?> statechart)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
voidresetBeforeStart() 

Methods inherited from class java.lang.Object

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

Constructor Details

DatabaseLogState

public DatabaseLogState()

Method Details

resetBeforeStart

@AnyLogicInternalAPI
public void resetBeforeStart()

getAgentTypeId

@AnyLogicInternalAPI
public int getAgentTypeId(Agent agent)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

generateAgentElementId

@AnyLogicInternalAPI
public int generateAgentElementId()
This method generates new id for dynamically created agent elements

generateAgentId

@AnyLogicInternalAPI
public int generateAgentId()
Internal method, used to initialize Agent.getId() property

getEventId

@AnyLogicInternalAPI
public int getEventId(EventOriginator event)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

getStatechartId

@AnyLogicInternalAPI
public int getStatechartId(Statechart<?> statechart)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

getAgentTypeElementId

@AnyLogicInternalAPI
public int getAgentTypeElementId(LoggingType loggingType,
 Agent agent,
 String elementName)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

getAgentTypeStateId

@AnyLogicInternalAPI
public <T extends Enum<T> & IStatechartState<?,
T>>
int getAgentTypeStateId(Agent agent,
 Statechart<T> statechart,
 T state)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.