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.
|
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() |
EventSourceSpecification<EventAtom> |
getSourceSpecification() |
java.lang.String |
toString() |
public RuleSpecification(EventSourceSpecification<EventAtom> sourceSpecification, ActivationLifeCycle lifeCycle, java.util.Set<Job<EventAtom>> jobs)
lifeCycle
- jobs
- 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 toString()
toString
in class java.lang.Object