public class GralSwitchExclusiveButtonMng extends java.lang.Object implements VariableAccess_ifc
Modifier and Type | Field and Description |
---|---|
GralUserAction |
switchAction |
version
Constructor and Description |
---|
GralSwitchExclusiveButtonMng() |
Modifier and Type | Method and Description |
---|---|
void |
add(GralWidget widgd) |
double |
getDouble()
Gets the value from this variable.
|
float |
getFloat()
Gets the value from this variable.
|
int |
getInt()
Gets a integer value from this variable.
|
long |
getLastRefreshTime()
Gets the time stamp when this variable was refreshed lastly.
|
long |
getLong()
Gets a long value from this variable.
|
java.lang.String |
getString()
Gets the value from this variable.
|
char |
getType()
Returns the type of the variable:
|
boolean |
isRefreshed()
Returns true if the variable was refresed after it was requested.
|
boolean |
isRequestedValue(long timeEarlyRequested,
boolean retryFaultyVariables)
Returns true if the request is newer than the last refresh.
|
void |
remove(GralWidget widgd) |
void |
requestValue()
Requests a new value from the target device with the
System.currentTimeMillis() |
void |
requestValue(long timeRequested)
Requests a new value from the target device.
|
void |
requestValue(long timeRequested,
java.lang.Runnable run)
Requests a new value from the target device.
|
double |
setDouble(double value)
Sets the value from this variable.
|
float |
setFloat(float value)
Sets the value from this variable.
|
int |
setInt(int value)
Sets the value into the variable.
|
long |
setLong(long value)
Sets the value into the variable.
|
void |
setRefreshed(long time) |
java.lang.String |
setString(java.lang.String value)
Sets the value into the variable
|
public GralUserAction switchAction
public GralSwitchExclusiveButtonMng()
public void add(GralWidget widgd)
public double getDouble()
org.vishia.byteData.VariableAccess_ifc
getDouble
in interface VariableAccess_ifc
public float getFloat()
org.vishia.byteData.VariableAccess_ifc
getFloat
in interface VariableAccess_ifc
public int getInt()
org.vishia.byteData.VariableAccess_ifc
getInt
in interface VariableAccess_ifc
public long getLastRefreshTime()
org.vishia.byteData.VariableAccess_ifc
getLastRefreshTime
in interface VariableAccess_ifc
public long getLong()
org.vishia.byteData.VariableAccess_ifc
getLong
in interface VariableAccess_ifc
public java.lang.String getString()
org.vishia.byteData.VariableAccess_ifc
getString
in interface VariableAccess_ifc
public char getType()
org.vishia.byteData.VariableAccess_ifc
getType
in interface VariableAccess_ifc
public boolean isRefreshed()
org.vishia.byteData.VariableAccess_ifc
isRefreshed
in interface VariableAccess_ifc
public boolean isRequestedValue(long timeEarlyRequested, boolean retryFaultyVariables)
org.vishia.byteData.VariableAccess_ifc
isRequestedValue
in interface VariableAccess_ifc
timeEarlyRequested
- The earliest time where the variable is requested. If the request time is more early, it is not regarded.
This is since 2016-01. An old request should be ignored but the time stamp of the request should be visible for debug or view the state.retryFaultyVariables
- A variable which is set to invalid is requested though.public void remove(GralWidget widgd)
public void requestValue()
org.vishia.byteData.VariableAccess_ifc
System.currentTimeMillis()
requestValue
in interface VariableAccess_ifc
public void requestValue(long timeRequested)
org.vishia.byteData.VariableAccess_ifc
requestValue
in interface VariableAccess_ifc
timeRequested
- the current time, used to mark the request.public void requestValue(long timeRequested, java.lang.Runnable run)
org.vishia.byteData.VariableAccess_ifc
requestValue
in interface VariableAccess_ifc
timeRequested
- the current timerun
- method which should be invoked if the request is resolved, optional operation.public double setDouble(double value)
org.vishia.byteData.VariableAccess_ifc
setDouble
in interface VariableAccess_ifc
public float setFloat(float value)
org.vishia.byteData.VariableAccess_ifc
setFloat
in interface VariableAccess_ifc
public int setInt(int value)
org.vishia.byteData.VariableAccess_ifc
setInt
in interface VariableAccess_ifc
value
- The value given as int.public long setLong(long value)
org.vishia.byteData.VariableAccess_ifc
setLong
in interface VariableAccess_ifc
value
- The value given as int.public void setRefreshed(long time)
setRefreshed
in interface VariableAccess_ifc
public java.lang.String setString(java.lang.String value)
org.vishia.byteData.VariableAccess_ifc
setString
in interface VariableAccess_ifc
value
- The value given as String.