Class EasyTrigger<X>
java.lang.Object
gg.xp.xivsupport.events.triggers.easytriggers.model.EasyTrigger<X>
- All Implemented Interfaces:
HasConditions<X>
,HasEventType
,HasMutableActions<X>
,HasMutableConditions<X>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addCondition
(Condition<? super X> condition) long
getHits()
long
getName()
void
handleEvent
(EventContext context, Event event) boolean
void
recalc()
void
removeAction
(Action<? super X> action) void
removeCondition
(Condition<? super X> condition) void
setActions
(List<Action<? super X>> actions) void
setConcurrency
(SequentialTriggerConcurrencyMode concurrency) void
setConditions
(List<Condition<? super X>> conditions) void
setEnabled
(boolean enabled) void
setEventType
(Class<X> eventType) void
-
Constructor Details
-
EasyTrigger
public EasyTrigger()
-
-
Method Details
-
handleEvent
-
recalc
public void recalc() -
getEventType
- Specified by:
getEventType
in interfaceHasEventType
- Specified by:
getEventType
in interfaceHasMutableActions<X>
- Specified by:
getEventType
in interfaceHasMutableConditions<X>
-
setEventType
-
getConditions
- Specified by:
getConditions
in interfaceHasConditions<X>
-
setConditions
- Specified by:
setConditions
in interfaceHasMutableConditions<X>
-
classForConditions
- Specified by:
classForConditions
in interfaceHasMutableConditions<X>
-
classForActions
- Specified by:
classForActions
in interfaceHasMutableActions<X>
-
addCondition
- Specified by:
addCondition
in interfaceHasMutableConditions<X>
-
removeCondition
- Specified by:
removeCondition
in interfaceHasMutableConditions<X>
-
getConcurrency
-
setConcurrency
-
getActions
- Specified by:
getActions
in interfaceHasMutableActions<X>
-
setActions
- Specified by:
setActions
in interfaceHasMutableActions<X>
-
addAction
- Specified by:
addAction
in interfaceHasMutableActions<X>
-
addAction
- Specified by:
addAction
in interfaceHasMutableActions<X>
-
removeAction
- Specified by:
removeAction
in interfaceHasMutableActions<X>
-
getName
-
setName
-
getHits
public long getHits() -
getMisses
public long getMisses() -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled)
-