|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qi4j.library.alarm.Alarm.AlarmMixin
public abstract static class Alarm.AlarmMixin
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.qi4j.library.alarm.Alarm |
---|
Alarm.AlarmMixin, Alarm.AlarmState |
Field Summary |
---|
Fields inherited from interface org.qi4j.library.alarm.Alarm |
---|
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 | |
---|---|
Alarm.AlarmMixin()
|
Method Summary | |
---|---|
void |
acknowledge()
Acknowledges an Alarm. |
void |
activate()
Activates an Alarm. |
String |
attribute(String name)
Return the attribute of the given name. |
List<String> |
attributeNames()
Return all attribute names |
boolean |
currentCondition()
Get Alarm condition. |
AlarmStatus |
currentStatus()
Returns the current state of the standard. |
void |
deactivate()
Deactivates an Alarm. |
String |
description(Locale locale)
Returns a Description of the Alarm. |
String |
descriptionInDefaultLocale()
Returns a Description of the Alarm. |
AlarmHistory |
history()
Returns the AlarmHistory of the standard. |
String |
name()
Returns the Name of the Alarm. |
void |
setAttribute(String name,
String value)
Sets the attribute of the given name. |
String |
toString()
|
void |
trigger(String trigger)
Trigger a state change. |
void |
updateCondition(boolean condition)
Set Alarm condition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.qi4j.library.alarm.Alarm |
---|
alarmClass, category |
Constructor Detail |
---|
public Alarm.AlarmMixin()
Method Detail |
---|
public void setAttribute(String name, String value)
Alarm
setAttribute
in interface Alarm
name
- The name of the attribute to set.value
- The value to set the named attribute to.public String attribute(String name)
Alarm
attribute
in interface Alarm
name
- The name of the attribute to return.
public List<String> attributeNames()
Alarm
attributeNames
in interface Alarm
public String toString()
toString
in class Object
public void trigger(String trigger)
Alarm
When the Alarm 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 Alarm
trigger
- The trigger to execute if existing in the AlarmModel.public void activate()
Alarm
Convinience method for:
trigger( "activate" );
activate
in interface Alarm
public void deactivate()
Alarm
trigger( "deactivate" );
deactivate
in interface Alarm
public void acknowledge()
Alarm
trigger( source, "acknowledge" );
acknowledge
in interface Alarm
public AlarmHistory history()
Alarm
history
in interface Alarm
public AlarmStatus currentStatus()
Alarm
currentStatus
in interface Alarm
public String name()
name
in interface Alarm
public String descriptionInDefaultLocale()
descriptionInDefaultLocale
in interface Alarm
public String description(Locale locale)
null
, then the
default Locale is used.
description
in interface Alarm
locale
- The locale to return the description in, or null to use default locale.
public void updateCondition(boolean condition)
Alarm
updateCondition
in interface Alarm
condition
- Sets the Alarm condition.public boolean currentCondition()
Alarm
currentCondition
in interface Alarm
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |