public class RuntimeListener extends java.lang.Object implements IACTRRuntimeListener
Constructor and Description |
---|
RuntimeListener() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isEnabled() |
void |
modelAdded(ACTRRuntimeEvent event)
called anytime a model is added to the runtime
|
void |
modelRemoved(ACTRRuntimeEvent event)
when model is removed
|
void |
modelStarted(ACTRRuntimeEvent event)
after model has started
|
void |
modelStopped(ACTRRuntimeEvent event)
after model has stopped, and all its events (stopped, disconnected) have
been fired, this will be called (but before runtimeStopped if this is th
elast model)
|
void |
runtimeResumed(ACTRRuntimeEvent event)
after last model resumes
|
void |
runtimeStarted(ACTRRuntimeEvent event)
when called, this makes "runtime" variable accessible
|
void |
runtimeStopped(ACTRRuntimeEvent event)
when executed blocks the runtime entirely, preventing disposal until quit
is called
|
void |
runtimeSuspended(ACTRRuntimeEvent event)
after last model has suspended
|
static void |
setEnabled(boolean enable) |
public static void setEnabled(boolean enable)
public static boolean isEnabled()
public void modelAdded(ACTRRuntimeEvent event)
IACTRRuntimeListener
modelAdded
in interface IACTRRuntimeListener
public void modelRemoved(ACTRRuntimeEvent event)
IACTRRuntimeListener
modelRemoved
in interface IACTRRuntimeListener
public void runtimeResumed(ACTRRuntimeEvent event)
IACTRRuntimeListener
runtimeResumed
in interface IACTRRuntimeListener
public void runtimeStarted(ACTRRuntimeEvent event)
runtimeStarted
in interface IACTRRuntimeListener
event
- IACTRRuntimeListener.runtimeStarted(org.jactr.core.runtime.event.ACTRRuntimeEvent)
public void runtimeStopped(ACTRRuntimeEvent event)
runtimeStopped
in interface IACTRRuntimeListener
event
- IACTRRuntimeListener.runtimeStopped(org.jactr.core.runtime.event.ACTRRuntimeEvent)
public void runtimeSuspended(ACTRRuntimeEvent event)
IACTRRuntimeListener
runtimeSuspended
in interface IACTRRuntimeListener
public void modelStarted(ACTRRuntimeEvent event)
IACTRRuntimeListener
modelStarted
in interface IACTRRuntimeListener
public void modelStopped(ACTRRuntimeEvent event)
IACTRRuntimeListener
modelStopped
in interface IACTRRuntimeListener