public abstract static class AlarmPoint.AlarmPointMixin extends Object implements AlarmPoint
AlarmPoint.AlarmPointMixin, AlarmPoint.AlarmStateHasIdentity.HasIdentityMixinEVENT_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_UNBLOCKIDENTITY_METHOD, IDENTITY_STATE_NAME| Constructor and Description |
|---|
AlarmPointMixin() |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge()
Acknowledges an AlarmPoint.
|
void |
activate()
Activates an AlarmPoint.
|
String |
attribute(String name)
Return the attribute of the given name.
|
List<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.
|
String |
description(Locale locale)
Returns a Description of the AlarmPoint.
|
String |
descriptionInDefaultLocale()
Returns a Description of the AlarmPoint.
|
AlarmHistory |
history()
Returns the AlarmHistory of the standard.
|
String |
name()
Returns the Name of the AlarmPoint.
|
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 AlarmPoint condition.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalarmClass, categoryidentitypublic void setAttribute(String name, String value)
AlarmPointsetAttribute in interface AlarmPointname - The name of the attribute to set.value - The value to set the named attribute to.public String attribute(String name)
AlarmPointattribute in interface AlarmPointname - The name of the attribute to return.public List<String> attributeNames()
AlarmPointattributeNames in interface AlarmPointpublic void trigger(String trigger)
AlarmPointWhen 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 AlarmPointtrigger - The trigger to execute if existing in the AlarmModel.public void activate()
AlarmPointConvenience method for:
trigger( "activate" );
activate in interface AlarmPointpublic void deactivate()
AlarmPoint
trigger( "deactivate" );
deactivate in interface AlarmPointpublic void acknowledge()
AlarmPoint
trigger( source, "acknowledge" );
acknowledge in interface AlarmPointpublic AlarmHistory history()
AlarmPointhistory in interface AlarmPointpublic AlarmStatus currentStatus()
AlarmPointcurrentStatus in interface AlarmPointpublic String name()
name in interface AlarmPointpublic String descriptionInDefaultLocale()
descriptionInDefaultLocale in interface AlarmPointpublic String description(Locale locale)
null, then the
default Locale is used.description in interface AlarmPointlocale - The locale to return the description in, or null to use default locale.public void updateCondition(boolean condition)
AlarmPointupdateCondition in interface AlarmPointcondition - Sets the AlarmPoint condition.public boolean currentCondition()
AlarmPointcurrentCondition in interface AlarmPoint