AnyLogic
Expand
Font size

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

Constructor Summary

ConstructorDescription
LogEntryFactory() 

Method Summary

Modifier and TypeMethodDescription
static ILogEntryagentDied(Agent agent)
Agent have died.
static ILogEntryagentLogEntry(Agent agent)
Instance of agent has been created or destroyed.
static ILogEntryagentMovementLogEntry(int agentId, double speed, long startTime, long stopTime)
Log agent's movement.
static ILogEntryagentParametersLogEntry(Agent agent)
Instance of agent has been created or destroyed.
static ILogEntryagentTypeElementLogEntry(int elementId, Agent agent, String elementName)
Create agent type's element like state or event.
static ILogEntryagentTypeLogEntry(int agentTypeId, String agentTypeName)
Agent type
static ILogEntrychangeAgentNameLogEntry(int agentId, String newName)
Agent changed name.
static intcompareLogEntries(ILogEntry o1, ILogEntry o2) 
static ILogEntrydataSetLogEntry(Agent agent, String name, DataSet dataSet) 
static ILogEntryeventOccurredLogEntry(EventOriginator eventOriginator)
Event have occurred.
static ILogEntryflowchartEntry(Agent agent, Agent block)
Entity entered some block
static ILogEntryflowchartProcessStateChangedLogEntry(Agent agent, Agent block, Object activityType, long startTime)
Entity entered some block
static ILogEntryfluidRatesLogEntry(Agent fluidBlock, String port, double total, double min, double max, double average) 
static ILogEntryfluidStoragesLogEntry(Agent fluidBlock, double min, double max, double average) 
static ILogEntryfluidUnitsLogEntry(Agent fluidBlock, String amountUnits, String rateUnits) 
static ILogEntryfluidUtilizationLogEntry(Agent fluidBlock, double utilization) 
static ILogEntryhistogramDataLogEntry(Agent agent, String name, HistogramData h) 
static ILogEntrymessageReceived(Agent agent, Agent sender, Object msg)
Log agent's movement.
static ILogEntryresourcePoolUtilizationLogEntry(Agent resourcePool, double utilization, int size) 
static ILogEntryresourceUnitStateChangedLogEntry(Agent unit, Agent resourcePool, Object usageState, Object taskType, Agent agent, Agent resourceTask, long startTime)
Resource unit changed its activity.
static ILogEntryresourceUnitUtilizationLogEntry(Agent unit, Agent resourcePool, double utilization) 
static ILogEntrystatechartElementLogEntry(Agent agent, Statechart<?> statechart, int stateId) 
static <T extends Enum<T> & IStatechartState<?, T>>
ILogEntry
statechartEnterStateLogEntry(Agent agent, Statechart<T> statechart, T state) 
static <T extends Enum<T> & IStatechartState<?, T>>
ILogEntry
statechartExitStateLogEntry(Agent agent, Statechart<T> statechart, T state) 
static <T extends Enum<T> & IStatechartState<?, T>>
ILogEntry
statechartTransitionLogEntry(Agent agent, Statechart<T> statechart, Transition transition, T nextState)
Statechart transition has happened
static ILogEntrystatisticsContinuousLogEntry(Agent agent, String name, StatisticsContinuous statistics) 
static ILogEntrystatisticsDiscreteLogEntry(Agent agent, String name, StatisticsDiscrete statistics) 
static ILogEntrytraceLogEntry(Utilities utilities, String trace)
traceToDB() was called

Methods inherited from class java.lang.Object

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

Constructor Details

LogEntryFactory

public LogEntryFactory()

Method Details

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,
 String agentTypeName)
Agent type

agentTypeElementLogEntry

public static ILogEntry agentTypeElementLogEntry(int elementId,
 Agent agent,
 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,
 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,
 Object usageState,
 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,
 String amountUnits,
 String rateUnits)

fluidStoragesLogEntry

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

fluidRatesLogEntry

public static ILogEntry fluidRatesLogEntry(Agent fluidBlock,
 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,
 String newName)
Agent changed name.
Parameters:
agent -
Returns:
log entry

traceLogEntry

public static ILogEntry traceLogEntry(Utilities utilities,
 String trace)
traceToDB() was called

statechartTransitionLogEntry

public static <T extends 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,
 Object msg)
Log agent's movement.

statisticsContinuousLogEntry

public static ILogEntry statisticsContinuousLogEntry(Agent agent,
 String name,
 StatisticsContinuous statistics)

statisticsDiscreteLogEntry

public static ILogEntry statisticsDiscreteLogEntry(Agent agent,
 String name,
 StatisticsDiscrete statistics)

dataSetLogEntry

public static ILogEntry dataSetLogEntry(Agent agent,
 String name,
 DataSet dataSet)

histogramDataLogEntry

public static ILogEntry histogramDataLogEntry(Agent agent,
 String name,
 HistogramData h)

compareLogEntries

public static int compareLogEntries(ILogEntry o1,
 ILogEntry o2)

statechartEnterStateLogEntry

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

statechartExitStateLogEntry

public static <T extends Enum<T> & IStatechartState<?,
T>>
ILogEntry statechartExitStateLogEntry(Agent agent,
 Statechart<T> statechart,
 T state)