AnyLogic AnyLogic
Expand
Font size
  • java.lang.Object
    • com.anylogic.engine.database.LogEntryFactory

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

Constructor Summary

Constructors 
LogEntryFactory()  
Constructor Description

Method Summary

All Methods Static Methods Concrete Methods 
static ILogEntry agentDied​(Agent agent)
Agent have died.
static ILogEntry agentLogEntry​(Agent agent)
Instance of agent has been created or destroyed.
static ILogEntry agentMovementLogEntry​(int agentId, double speed, long startTime, long stopTime)
Log agent's movement.
static ILogEntry agentParametersLogEntry​(Agent agent)
Instance of agent has been created or destroyed.
static ILogEntry agentTypeElementLogEntry​(int elementId, Agent agent, java.lang.String elementName)
Create agent type's element like state or event.
static ILogEntry agentTypeLogEntry​(int agentTypeId, java.lang.String agentTypeName)
Agent type
static ILogEntry changeAgentNameLogEntry​(int agentId, java.lang.String newName)
Agent changed name.
static ILogEntry dataSetLogEntry​(Agent agent, java.lang.String name, DataSet dataSet)  
static ILogEntry eventOccurredLogEntry​(EventOriginator eventOriginator)
Event have occurred.
static ILogEntry flowchartEntry​(Agent agent, Agent block)
Entity entered some block
static ILogEntry flowchartProcessStateChangedLogEntry​(Agent agent, Agent block, java.lang.Object activityType, long startTime)
Entity entered some block
static ILogEntry fluidRatesLogEntry​(Agent fluidBlock, java.lang.String port, double total, double min, double max, double average)  
static ILogEntry fluidStoragesLogEntry​(Agent fluidBlock, double min, double max, double average)  
static ILogEntry fluidUnitsLogEntry​(Agent fluidBlock, java.lang.String amountUnits, java.lang.String rateUnits)  
static ILogEntry fluidUtilizationLogEntry​(Agent fluidBlock, double utilization)  
static ILogEntry histogramDataLogEntry​(Agent agent, java.lang.String name, HistogramData h)  
static ILogEntry messageReceived​(Agent agent, Agent sender, java.lang.Object msg)
Log agent's movement.
static ILogEntry resourcePoolUtilizationLogEntry​(Agent resourcePool, double utilization, int size)  
static ILogEntry resourceUnitStateChangedLogEntry​(Agent unit, Agent resourcePool, java.lang.Object usageState, java.lang.Object taskType, Agent agent, Agent resourceTask, long startTime)
Resource unit changed its activity.
static ILogEntry resourceUnitUtilizationLogEntry​(Agent unit, Agent resourcePool, double utilization)  
static ILogEntry statechartElementLogEntry​(Agent agent, Statechart<?> statechart, int stateId)  
static <T extends java.lang.Enum<T> & IStatechartState<?,​T>>
ILogEntry
statechartEnterStateLogEntry​(Agent agent, Statechart<T> statechart, T state)  
static <T extends java.lang.Enum<T> & IStatechartState<?,​T>>
ILogEntry
statechartExitStateLogEntry​(Agent agent, Statechart<T> statechart, T state)  
static <T extends java.lang.Enum<T> & IStatechartState<?,​T>>
ILogEntry
statechartTransitionLogEntry​(Agent agent, Statechart<T> statechart, Transition transition, T nextState)
Statechart transition has happened
static ILogEntry statisticsContinuousLogEntry​(Agent agent, java.lang.String name, StatisticsContinuous statistics)  
static ILogEntry statisticsDiscreteLogEntry​(Agent agent, java.lang.String name, StatisticsDiscrete statistics)  
static ILogEntry traceLogEntry​(Utilities utilities, java.lang.String trace)
traceToDB() was called
Modifier and Type Method Description

Methods inherited from class java.lang.Object

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

Constructor Detail

LogEntryFactory

public LogEntryFactory()

Method Detail

agentLogEntry

public static ILogEntry agentLogEntry​(Agent agent)
Instance of agent has been created or destroyed.

agentParametersLogEntry

public static ILogEntry agentParametersLogEntry​(Agent agent)
Instance of agent has been created or destroyed.

agentTypeLogEntry

public static ILogEntry agentTypeLogEntry​(int agentTypeId,
                                          java.lang.String agentTypeName)
Agent type

agentTypeElementLogEntry

public static ILogEntry agentTypeElementLogEntry​(int elementId,
                                                 Agent agent,
                                                 java.lang.String elementName)
Create agent type's element like state or event.

flowchartEntry

public static ILogEntry flowchartEntry​(Agent agent,
                                       Agent block)
Entity entered some block

flowchartProcessStateChangedLogEntry

public static ILogEntry flowchartProcessStateChangedLogEntry​(Agent agent,
                                                             Agent block,
                                                             java.lang.Object activityType,
                                                             long startTime)
Entity entered some block
Parameters:
agent -
block -
activityType - instance of FlowchartActivityType enum from Process Modeling Library
startTime -
Returns:
log entry

resourceUnitStateChangedLogEntry

public static ILogEntry resourceUnitStateChangedLogEntry​(Agent unit,
                                                         Agent resourcePool,
                                                         java.lang.Object usageState,
                                                         java.lang.Object taskType,
                                                         Agent agent,
                                                         Agent resourceTask,
                                                         long startTime)
Resource unit changed its activity.
Parameters:
unit -
resourcePool -
usageState - instance of ResourceUsageState enum from Process Modeling Library
taskType - instance of ResourceTaskType enum from Process Modeling Library
agent -
resourceTask -
startTime -
Returns:
log entry

resourcePoolUtilizationLogEntry

public static ILogEntry resourcePoolUtilizationLogEntry​(Agent resourcePool,
                                                        double utilization,
                                                        int size)

resourceUnitUtilizationLogEntry

public static ILogEntry resourceUnitUtilizationLogEntry​(Agent unit,
                                                        Agent resourcePool,
                                                        double utilization)

fluidUnitsLogEntry

public static ILogEntry fluidUnitsLogEntry​(Agent fluidBlock,
                                           java.lang.String amountUnits,
                                           java.lang.String rateUnits)

fluidStoragesLogEntry

public static ILogEntry fluidStoragesLogEntry​(Agent fluidBlock,
                                              double min,
                                              double max,
                                              double average)

fluidRatesLogEntry

public static ILogEntry fluidRatesLogEntry​(Agent fluidBlock,
                                           java.lang.String port,
                                           double total,
                                           double min,
                                           double max,
                                           double average)

fluidUtilizationLogEntry

public static ILogEntry fluidUtilizationLogEntry​(Agent fluidBlock,
                                                 double utilization)

eventOccurredLogEntry

public static ILogEntry eventOccurredLogEntry​(EventOriginator eventOriginator)
Event have occurred.

agentDied

public static ILogEntry agentDied​(Agent agent)
Agent have died.
Parameters:
agent -
Returns:
log entry

changeAgentNameLogEntry

public static ILogEntry changeAgentNameLogEntry​(int agentId,
                                                java.lang.String newName)
Agent changed name.
Parameters:
agent -
Returns:
log entry

traceLogEntry

public static ILogEntry traceLogEntry​(Utilities utilities,
                                      java.lang.String trace)
traceToDB() was called

statechartTransitionLogEntry

public static <T extends java.lang.Enum<T> & IStatechartState<?,​T>> ILogEntry statechartTransitionLogEntry​(Agent agent,
                                                                                                                 Statechart<T> statechart,
                                                                                                                 Transition transition,
                                                                                                                 T nextState)
Statechart transition has happened

statechartElementLogEntry

public static ILogEntry statechartElementLogEntry​(Agent agent,
                                                  Statechart<?> statechart,
                                                  int stateId)

agentMovementLogEntry

public static ILogEntry agentMovementLogEntry​(int agentId,
                                              double speed,
                                              long startTime,
                                              long stopTime)
Log agent's movement.

messageReceived

public static ILogEntry messageReceived​(Agent agent,
                                        Agent sender,
                                        java.lang.Object msg)
Log agent's movement.

statisticsContinuousLogEntry

public static ILogEntry statisticsContinuousLogEntry​(Agent agent,
                                                     java.lang.String name,
                                                     StatisticsContinuous statistics)

statisticsDiscreteLogEntry

public static ILogEntry statisticsDiscreteLogEntry​(Agent agent,
                                                   java.lang.String name,
                                                   StatisticsDiscrete statistics)

dataSetLogEntry

public static ILogEntry dataSetLogEntry​(Agent agent,
                                        java.lang.String name,
                                        DataSet dataSet)

histogramDataLogEntry

public static ILogEntry histogramDataLogEntry​(Agent agent,
                                              java.lang.String name,
                                              HistogramData h)

statechartEnterStateLogEntry

public static <T extends java.lang.Enum<T> & IStatechartState<?,​T>> ILogEntry statechartEnterStateLogEntry​(Agent agent,
                                                                                                                 Statechart<T> statechart,
                                                                                                                 T state)

statechartExitStateLogEntry

public static <T extends java.lang.Enum<T> & IStatechartState<?,​T>> ILogEntry statechartExitStateLogEntry​(Agent agent,
                                                                                                                Statechart<T> statechart,
                                                                                                                T state)
How can we improve this article?