Modifier and Type | Method and Description |
---|---|
ActivationState |
RuleInstance.activationStateTransition(Activation<EventAtom> activation,
EventType event)
Performs the state transition on the given activation in response to the specified event
using the life-cycle defined in the rule specification.
|
ActivationState |
Job.getActivationState() |
ActivationState |
ActivationLifeCycle.getInactiveState() |
ActivationState |
Activation.getState() |
ActivationState |
ActivationLifeCycle.nextActivationState(ActivationState currentState,
EventType event)
Returns the state in the life cycle that is defined as the next state
from the given current state in response to the given event.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.Table<ActivationState,EventAtom,Activation<EventAtom>> |
RuleInstance.getActivations() |
com.google.common.collect.Multimap<ActivationState,Activation<?>> |
RuleEngine.getActivations() |
com.google.common.collect.Multimap<ActivationState,Activation<?>> |
Agenda.getActivations() |
java.util.Set<ActivationState> |
RuleSpecification.getEnabledStates() |
com.google.common.collect.Multimap<ActivationState,Job<EventAtom>> |
RuleSpecification.getJobs() |
com.google.common.collect.Table<ActivationState,EventType,ActivationState> |
ActivationLifeCycle.getStateTransitionTable()
Returns a copy of the transition table.
|
com.google.common.collect.Table<ActivationState,EventType,ActivationState> |
ActivationLifeCycle.getStateTransitionTable()
Returns a copy of the transition table.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ActivationLifeCycle.addStateTransition(ActivationState from,
EventType event,
ActivationState to)
Extends the life cycle with a new transition that is created
from the given state, labeled with the given event and leading
to the given state.
|
boolean |
ActivationLifeCycle.containsFrom(ActivationState state)
Check that the life-cycle contains a transition from the given state.
|
boolean |
ActivationLifeCycle.containsTo(ActivationState state)
Check that the life-cycle contains a transition to the given state.
|
static ActivationLifeCycle |
ActivationLifeCycle.create(ActivationState inactiveState) |
java.util.Collection<Activation<EventAtom>> |
RuleInstance.getActivations(ActivationState state) |
java.util.Collection<Activation<?>> |
Agenda.getActivations(ActivationState state)
Returns the activations that are in the given state
|
<EventAtom> |
RuleEngine.getActivations(RuleSpecification<EventAtom> specification,
ActivationState state) |
<EventAtom> |
RuleEngine.getActivations(RuleSpecification<EventAtom> specification,
EventFilter<? super EventAtom> filter,
ActivationState state) |
java.util.Collection<Job<EventAtom>> |
RuleSpecification.getJobs(ActivationState state)
Returns the jobs specified for the given state.
|
ActivationState |
ActivationLifeCycle.nextActivationState(ActivationState currentState,
EventType event)
Returns the state in the life cycle that is defined as the next state
from the given current state in response to the given event.
|
Modifier and Type | Method and Description |
---|---|
void |
ConflictSetUpdater.activationChanged(Activation<?> activation,
ActivationState oldState,
EventType event) |
void |
ConflictSetUpdater.activationCreated(Activation<?> activation,
ActivationState inactiveState) |
void |
ConflictSetUpdater.activationRemoved(Activation<?> activation,
ActivationState oldState) |
Modifier and Type | Method and Description |
---|---|
void |
IActivationNotificationListener.activationChanged(Activation<?> activation,
ActivationState oldState,
EventType event)
This method is called by
ActivationNotificationProvider to relay changes to listeners. |
void |
IActivationNotificationListener.activationCreated(Activation<?> activation,
ActivationState inactiveState) |
void |
IActivationNotificationListener.activationRemoved(Activation<?> activation,
ActivationState oldState) |
void |
ActivationNotificationProvider.notifyActivationChanged(Activation<?> activation,
ActivationState oldState,
EventType event)
Notifies listeners about an activation change.
|
void |
ActivationNotificationProvider.notifyActivationCreated(Activation<?> activation,
ActivationState inactiveState)
Notifies listeners about an activation creation.
|
void |
ActivationNotificationProvider.notifyActivationRemoved(Activation<?> activation,
ActivationState oldState)
Notifies listeners about an activation removal.
|
Modifier and Type | Method and Description |
---|---|
static <EventAtom> |
Jobs.newNopJob(ActivationState activationState)
Creates a
Job that does not have any effect. |
Modifier and Type | Class and Description |
---|---|
class |
IncQueryActivationStateEnum
This enumeration represents the possible states of an Activation.
|
Constructor and Description |
---|
CommandExecutingJob(ActivationState enablingState,
EventAtomEditingDomainProvider<EventAtom> provider)
Create a new job that supports execution through commands by finding the editing
domain using the given provider and giving a
CommandExecutingJob.JobExecutionHelper for providing
the execution with a way to easily create commands and execute them. |
Modifier and Type | Method and Description |
---|---|
boolean |
UnmodifiableActivationLifeCycle.addStateTransition(ActivationState from,
EventType event,
ActivationState to) |