private class BeckhoffRoof.PlcTrigger extends SimpleTrigger implements CacheChangedListener
SwitchTrigger in RoofReceiver for
the
2017ff roof control version operated on a Beckhoff system.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static String |
COLON |
private String |
read
The PLC variable to read, also the cache changed key.
|
KEY_INITBOOLEANKEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWNKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Modifier | Constructor and Description |
|---|---|
private |
PlcTrigger(String plc)
Constructs a new roof trigger.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
The name of a PLC Trigger is equal to the variable it observes.
|
private String |
getUnique(Object reply) |
int |
hashCode() |
void |
newValue(CacheChangedEvent cce)
We are notified by the polling thread that a limit switch has
changed.
|
void |
registerBeckhoff(CacheChangedCaster beckhoff)
If the driver is also a cache changed caster, we register ourself as
a
listener on the
#KEY_PLCREAD property. |
private void |
response(Object changed) |
private String |
uniqueKey(Object bool,
BeckhoffRoof.Action whilst) |
getLastToggleTime, getTrigger, init, rescanned, setTriggerget, getElapsedToggleTime, isTrue, set, toggleTriggercreateParameter, delivers, exit, getFormatted, getFormatted, getPreserveFile, getString, getString, overrideDefaultName, register, setName, toStringclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, parseObject, reload, removeProperty, requires, setObject, setProperties, setProperty, stringPropertiesfinalize, getClass, notify, notifyAll, wait, wait, waitreloadgetFormatted, getStringdefaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringPropertiesprivate static final String COLON
private final String read
private PlcTrigger(String plc)
RoofOperating instance
must be registered to it prior to querying.public String getName()
getName in interface ParametergetName in class AbstractParameterpublic void registerBeckhoff(CacheChangedCaster beckhoff)
#KEY_PLCREAD property.public void newValue(CacheChangedEvent cce)
newValue in interface CacheChangedListenerprivate String uniqueKey(Object bool, BeckhoffRoof.Action whilst)
private void response(Object changed)