|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qi4j.library.alarm.AlarmProxy.Mixin
public abstract static class AlarmProxy.Mixin
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.qi4j.library.alarm.AlarmPoint |
---|
AlarmPoint.AlarmPointMixin, AlarmPoint.AlarmState |
Field Summary |
---|
Fields inherited from interface org.qi4j.library.alarm.AlarmPoint |
---|
EVENT_ACKNOWLEDGEMENT, EVENT_ACTIVATION, EVENT_BLOCKING, EVENT_DEACTIVATION, EVENT_DISABLING, EVENT_ENABLING, EVENT_UNBLOCKING, STATUS_ACKNOWLEDGED, STATUS_ACTIVATED, STATUS_BLOCKED, STATUS_DEACTIVATED, STATUS_DISABLED, STATUS_NORMAL, STATUS_REACTIVATED, TRIGGER_ACKNOWLEDGE, TRIGGER_ACTIVATE, TRIGGER_BLOCK, TRIGGER_DEACTIVATE, TRIGGER_DISABLE, TRIGGER_ENABLE, TRIGGER_UNBLOCK |
Constructor Summary | |
---|---|
AlarmProxy.Mixin()
|
Method Summary | |
---|---|
void |
acknowledge()
Acknowledges an AlarmPoint. |
void |
activate()
Activates an AlarmPoint. |
java.lang.String |
attribute(java.lang.String name)
Return the attribute of the given name. |
java.util.List<java.lang.String> |
attributeNames()
Return all attribute names |
boolean |
currentCondition()
Get AlarmPoint condition. |
AlarmStatus |
currentStatus()
Returns the current state of the standard. |
void |
deactivate()
Deactivates an AlarmPoint. |
java.lang.String |
description(java.util.Locale locale)
Returns a Description of the AlarmPoint. |
java.lang.String |
descriptionInDefaultLocale()
Returns a Description of the AlarmPoint. |
AlarmHistory |
history()
Returns the AlarmHistory of the standard. |
java.lang.String |
name()
Returns the Name of the AlarmPoint. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Sets the attribute of the given name. |
void |
trigger(java.lang.String trigger)
Trigger a state change. |
void |
updateCondition(boolean condition)
Set AlarmPoint condition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.qi4j.library.alarm.AlarmPoint |
---|
alarmClass, category |
Constructor Detail |
---|
public AlarmProxy.Mixin()
Method Detail |
---|
@UnitOfWorkPropagation(value=REQUIRED) public void trigger(java.lang.String trigger) throws java.lang.IllegalArgumentException
AlarmPoint
When the AlarmPoint object receives a trigger, it must consult the AlarmModel and figure out if there is an actual state change occurring and if any AlarmEvents should be fired.
trigger
in interface AlarmPoint
trigger
- The trigger to execute if existing in the AlarmModel.
java.lang.IllegalArgumentException
- if a trigger is not a known one.@UnitOfWorkPropagation(value=REQUIRED) public void activate()
AlarmPoint
Convinience method for:
trigger( "activate" );
activate
in interface AlarmPoint
@UnitOfWorkPropagation(value=REQUIRED) public void deactivate()
AlarmPoint
trigger( "deactivate" );
deactivate
in interface AlarmPoint
@UnitOfWorkPropagation(value=REQUIRED) public void acknowledge()
AlarmPoint
trigger( source, "acknowledge" );
acknowledge
in interface AlarmPoint
@UnitOfWorkPropagation(value=REQUIRED) public boolean currentCondition()
AlarmPoint
currentCondition
in interface AlarmPoint
@UnitOfWorkPropagation(value=REQUIRED) public void updateCondition(boolean condition)
AlarmPoint
updateCondition
in interface AlarmPoint
condition
- Sets the AlarmPoint condition.@UnitOfWorkPropagation(value=REQUIRED) public AlarmStatus currentStatus()
AlarmPoint
currentStatus
in interface AlarmPoint
@UnitOfWorkPropagation(value=REQUIRED) public AlarmHistory history()
AlarmPoint
history
in interface AlarmPoint
@UnitOfWorkPropagation(value=REQUIRED) public java.util.List<java.lang.String> attributeNames()
AlarmPoint
attributeNames
in interface AlarmPoint
@UnitOfWorkPropagation(value=REQUIRED) public java.lang.String attribute(java.lang.String name)
AlarmPoint
attribute
in interface AlarmPoint
name
- The name of the attribute to return.
@UnitOfWorkPropagation(value=REQUIRED) public void setAttribute(java.lang.String name, @Optional java.lang.String value)
AlarmPoint
setAttribute
in interface AlarmPoint
name
- The name of the attribute to set.value
- The value to set the named attribute to.@UnitOfWorkPropagation(value=REQUIRED) public java.lang.String name()
AlarmPoint
name
in interface AlarmPoint
@UnitOfWorkPropagation(value=REQUIRED) public java.lang.String descriptionInDefaultLocale()
AlarmPoint
descriptionInDefaultLocale
in interface AlarmPoint
@UnitOfWorkPropagation(value=REQUIRED) public java.lang.String description(java.util.Locale locale)
AlarmPoint
null
, then the
default Locale is used.
description
in interface AlarmPoint
locale
- The locale to return the description in, or null to use default locale.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |