|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.AbstractRemoteParameter
stella.parameter.AbstractRemoteTrigger
stella.roof.RoofTrigger
public class RoofTrigger
A trigger that directly connects to a RoofOperating instance. It
comes in two flavors, KEY_FLAVOR, operating either on
Sheltering.isOpen() or Sheltering.isClosed(). This
trigger is read-only. Its toggle-time is undefined.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
static String |
CLOSE
The close flavor. |
private static String |
DEFFLAVOR
The default flavor. |
static String |
KEY_FLAVOR
The key to the flavor of the trigger. |
static String |
OPEN
The open flavor. |
private RoofOperating |
roof
The roof operating instance for this trigger. |
| Fields inherited from class stella.parameter.AbstractRemoteParameter |
|---|
DEFBIND, KEY_BIND |
| Fields inherited from class stella.parameter.AbstractParameter |
|---|
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWN |
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface stella.rmi.RemoteTrigger |
|---|
NAMING_EXTENSION |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
RoofTrigger(Map prop)
Constructs a new roof trigger. |
|
| Method Summary | |
|---|---|
Object |
get()
Diverts to getTrigger(). |
long |
getElapsedToggleTime()
Returns the time elapsed since the last toggle event. |
String |
getFlavor()
Returns the flavor of this roof trigger. |
Date |
getLastToggleTime()
Returns the last toggle time of the trigger in the appropriate falvour. |
Boolean |
getTrigger()
Gets the value of this parameter. |
boolean |
isTrue()
Shortcut to getTrigger(). |
void |
registerRoof(RoofOperating operator)
Sets the roof operator where queries are diverted to. |
Object |
set(Object newval)
Not allowed. |
Boolean |
setTrigger(Boolean newval)
Not allowed. |
Boolean |
toggleTrigger()
Not allowed. |
| Methods inherited from class stella.parameter.AbstractRemoteTrigger |
|---|
remoteGetTrigger, remoteIsTrue, remoteToggleTime |
| Methods inherited from class stella.parameter.AbstractRemoteParameter |
|---|
addRmiListener, bindToRegistry, exit, init, isValid, remoteGet, removeRmiListener, rescanned, unbindFromRegistry |
| Methods inherited from class stella.parameter.AbstractParameter |
|---|
createParameter, delivers, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, register, setName, toString |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
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, reload, removeProperty, setObject, setProperties, setProperty, stringProperties |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface stella.rmi.RemoteParameter |
|---|
addRmiListener, remoteGet, removeRmiListener |
| Methods inherited from interface util.rmi.RmiCaster |
|---|
bindToRegistry, isValid, unbindFromRegistry |
| Methods inherited from interface stella.Parameter |
|---|
getFormatted, getName, getString |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, 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, stringProperties |
| Methods inherited from interface util.Initializable |
|---|
init |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Field Detail |
|---|
public static final String KEY_FLAVOR
public static final String OPEN
public static final String CLOSE
private static final String DEFFLAVOR
private RoofOperating roof
| Constructor Detail |
|---|
public RoofTrigger(Map prop)
throws RemoteException
RoofOperating instance
must be registered to it prior to querying.
RemoteException| Method Detail |
|---|
public void registerRoof(RoofOperating operator)
public String getFlavor()
public Boolean getTrigger()
KEY_FLAVOR
of the trigger, either the operators is open or is closed method is
queried.
public boolean isTrue()
getTrigger().
public Object get()
getTrigger().
public Object set(Object newval)
public Boolean setTrigger(Boolean newval)
public Boolean toggleTrigger()
public Date getLastToggleTime()
public long getElapsedToggleTime()
getLastToggleTime() returns null, -1 is returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||