public interface GlobalAccessible extends PropertySupplying
Parameter. All initialization must already occur during the
construction phase of the appropriate object.
As some parameters may refer to astrometric target properties, a
TargetDefinition can be registered at the paramter set with
#setTarget.
CONFIG, KEY_CLASS| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(Parameter add)
Adds a parameter to the parameter watching instance.
|
Map<String,Object> |
change(Map<String,Object> all)
Sets multiple parameter values.
|
long |
currentTimeMillis()
Gets the current time as defined in the cluster.
|
Object |
get(String name)
Gets the value of the parameter, regardless of type.
|
Set<String> |
getAllParameterNames()
Returns a set of all global parameter names served by this
parameter watcher.
|
Collection<Parameter> |
getAllParameters()
Returns a collection of all global parameters served by this
parameter watcher.
|
Parameter |
getParameter(String name)
Gets a global parameter by its name, returns null if undefined.
|
Boolean |
getTrigger(String name)
Returns the boolean of a specified
Trigger instance. |
Number |
getValue(String name)
Returns the value of a specified global parameter.
|
Parameter |
removeParameter(String name)
Removes a paramter from the parameter watching instance.
|
Object |
set(String name,
Object val)
Sets the value of the parameter, regardless of type.
|
Boolean |
setTrigger(String name,
Boolean newval)
Tries to set a trigger parameter identified with its name.
|
Number |
setValue(String name,
Number newval)
Tries to set a global parameter.
|
Boolean |
toggleTrigger(String name)
Toggles a trigger given by its name.
|
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, stringPropertiesParameter getParameter(String name)
Collection<Parameter> getAllParameters()
Parameters.Set<String> getAllParameterNames()
long currentTimeMillis()
System.currentTimeMillisMap<String,Object> change(Map<String,Object> all)
Parameter.set(java.lang.Object) method.Number getValue(String name)
Value, otherwise null is returned.Number setValue(String name, Number newval)
Boolean setTrigger(String name, Boolean newval)
Boolean toggleTrigger(String name)
void addParameter(Parameter add)