public class RuleSpecification<EventAtom>
extends java.lang.Object
Constructor and Description |
---|
RuleSpecification(EventSourceSpecification<EventAtom> sourceSpecification,
ActivationLifeCycle lifeCycle,
java.util.Set<Job<EventAtom>> jobs)
Creates a specification with the given life-cycle and job set.
|
RuleSpecification(EventSourceSpecification<EventAtom> sourceSpecification,
ActivationLifeCycle lifeCycle,
java.util.Set<Job<EventAtom>> jobs,
java.lang.String name)
Creates a specification with a certain name based on the given life-cycle and job set.
|
Modifier and Type | Method and Description |
---|---|
EventFilter<EventAtom> |
createEmptyFilter() |
java.util.Set<ActivationState> |
getEnabledStates() |
com.google.common.collect.Multimap<ActivationState,Job<EventAtom>> |
getJobs() |
java.util.Collection<Job<EventAtom>> |
getJobs(ActivationState state)
Returns the jobs specified for the given state.
|
ActivationLifeCycle |
getLifeCycle() |
java.lang.String |
getName() |
EventSourceSpecification<EventAtom> |
getSourceSpecification() |
protected RuleInstance<EventAtom> |
instantiateRule(EventRealm eventRealm,
EventFilter<? super EventAtom> filter)
Instantiates the rule on the given EventRealm with the given filter
.
|
java.lang.String |
toString() |
public RuleSpecification(EventSourceSpecification<EventAtom> sourceSpecification, ActivationLifeCycle lifeCycle, java.util.Set<Job<EventAtom>> jobs)
lifeCycle
- jobs
- public RuleSpecification(EventSourceSpecification<EventAtom> sourceSpecification, ActivationLifeCycle lifeCycle, java.util.Set<Job<EventAtom>> jobs, java.lang.String name)
lifeCycle
- jobs
- name
- protected RuleInstance<EventAtom> instantiateRule(EventRealm eventRealm, EventFilter<? super EventAtom> filter)
eventRealm
- filter
- public EventSourceSpecification<EventAtom> getSourceSpecification()
public EventFilter<EventAtom> createEmptyFilter()
public ActivationLifeCycle getLifeCycle()
public java.util.Set<ActivationState> getEnabledStates()
public java.util.Collection<Job<EventAtom>> getJobs(ActivationState state)
state
- public com.google.common.collect.Multimap<ActivationState,Job<EventAtom>> getJobs()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object