public class AnyLogicLoggerAccessor
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
AnyLogicLoggerAccessor(java.lang.Class<?> owner)
Create an 'empty' accessor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLoggerForRun(com.anylogic.engine.Agent agentInModel)
Thread-safe method to add a logger for the current run.
|
static AnyLogicLogger |
getAccessorFreeAnyLogicLogger(java.lang.Class<?> owner,
com.anylogic.engine.Agent agentInModel)
Get an AnyLogicLogger without an associated AnyLogicLoggerAccessor.
|
AnyLogicLogger |
getLoggerForRun(com.anylogic.engine.Agent agentInModel)
Thread-safe method to retrieve the logger for the current run.
|
public AnyLogicLoggerAccessor(java.lang.Class<?> owner)
owner - The class which is owning (using) this accessor.public static AnyLogicLogger getAccessorFreeAnyLogicLogger(java.lang.Class<?> owner, com.anylogic.engine.Agent agentInModel)
owner - The class which owns (is using) the logger.agentInModel - Any Agent instance that is part of the model. This
method will actually search for the closest 'parent' MainModel_AnyLogic
instance, so passing that (if available directly) will speed up the call.public void addLoggerForRun(com.anylogic.engine.Agent agentInModel)
agentInModel - Any Agent instance that is part of the model. This
method will actually search for the closest 'parent' MainModel_AnyLogic
instance, so passing that (if available directly) will speed up the call.public AnyLogicLogger getLoggerForRun(com.anylogic.engine.Agent agentInModel)
agentInModel - Any Agent instance that is part of the model. This
method will actually search for the closest 'parent' MainModel_AnyLogic
instance, so passing that (if available directly) will speed up the call.