public class OamShowValues
extends java.lang.Object
ViewCfg
, a GUI tool script programmable.Modifier and Type | Class and Description |
---|---|
(package private) static class |
OamShowValues.ColoredWidget
Information to a widget, which is colored by the value.
|
(package private) static class |
OamShowValues.ValueColorAssignment |
Modifier and Type | Field and Description |
---|---|
protected ByteDataSymbolicAccess |
accessOamVariable
Index (fast access) of all variable which are sent from the automation device (contained in the cfg-file).
|
protected ByteDataSymbolicAccessReadConfig |
cfgOamVariable
Index (fast access) of all variable which are sent from the automation device (contained in the cfg-file).
|
(package private) GralColor |
colorBackValueOk |
(package private) GralColor |
colorBackValueOld |
(package private) GralCurveView |
curveView |
(package private) boolean |
dataValid |
(package private) OamEvalValues_ifc |
evalValues
This is a plugin class delivered by an user application with the argument
ViewCfg.CallingArguments.argClassEvalRcvValues
or null if not given. |
(package private) java.util.Set<java.util.Map.Entry<java.lang.String,GralWidget>> |
fieldsToShow |
protected GralMng |
gralMng
The access to the gui, to change data to show.
|
(package private) java.util.Map<java.lang.String,VariableAccess_ifc> |
idxAllVariables
This index (map) contains all variables, both from
accessOamVariable as well as content of evalValues . |
(package private) LogMessage |
log |
private long |
milliSecondsOk
Time for valid values.
|
GralPanelActivated_ifc |
tabActivatedImpl
Agent instance to offer the interface for updating the tab in the main TabPanel
|
(package private) VariableAccess_ifc |
testVar1
Test variable used for values only if no communication is selected,
that is cmd line argument -ownIpc: is not given.
|
(package private) VariableAccess_ifc |
testVar2
Test variable used for values only if no communication is selected,
that is cmd line argument -ownIpc: is not given.
|
(package private) long |
timeMilliSecFromBaseyear |
private long |
timeNow
Set in
writeValuesOfTab() to check newless. |
(package private) VariableAccess_ifc |
varTimeMilliSecFromBaseyear
The access to received data for the timestamp as milliseconds after a base year.
|
static int |
version
Version and history
2022-10-26
idxAllVariables : Not it is a common index/Map for all variables,
the ByteDataSymbolicAccess#indexVariable refers to the same. |
protected GralButton |
wdgBtnWrHex
If this buttons are configured, ability to write received value to console out
|
protected GralButton |
wdgBtnWrVal
If this buttons are configured, ability to write received value to console out
|
(package private) java.util.List<GralWidget> |
widgetsInTab |
Constructor and Description |
---|
OamShowValues(LogMessage log,
GralMng gralMng,
Arguments.Argument argClassEvalRcvValues) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
debugStop() |
(package private) VariableAccess_ifc |
getVariable(java.lang.String sDataPath,
int[] ixArrayA) |
(package private) VariableAccess_ifc |
getVariableFromContentInfo(GralSetValue_ifc widgetInfo) |
boolean |
readVariableCfg(ViewCfg.CallingArguments args) |
private void |
redrawCurveValues() |
(package private) void |
setBar(GralWidget widgetInfo) |
void |
setCurveView(GralCurveView curveView) |
void |
setFieldsToShow(java.util.Set<java.util.Map.Entry<java.lang.String,GralWidget>> fields,
java.lang.Appendable log) |
(package private) void |
setValue(GralWidget widgetInfo) |
void |
show(byte[] binData,
int nrofBytes,
int from)
This routine presents the new received values at the GUI
or saves values in traces.
|
(package private) void |
showBinFromByte(GralWidget widgetInfo) |
void |
showRedraw() |
(package private) void |
stop() |
(package private) void |
testChgVariable()
Operation is only called if no communication is switched on.
|
(package private) void |
widgetSetColor(java.lang.String sName,
java.lang.String[] sParam,
GralWidget widgetInfo) |
private void |
writeField(GralWidget widgetInfo) |
(package private) void |
writeValuesOfTab() |
public static final int version
idxAllVariables
: Not it is a common index/Map for all variables,
the ByteDataSymbolicAccess#indexVariable
refers to the same.
This is a common index together with the possible evalValues
: OamEvalValues_ifc.getVariables()
.
The concept of plugin is improved.
wdgBtnWrHex
can be given in the scripted config.
If existing the button is used to write a hex output of data on pressing. Super helpful for data debugging.
curveView
as extra reference for only one curve view if only one is used for fast access.
ByteDataSymbolicAccess
and ByteDataSymbolicAccessReadConfig
are also refactored.
Prevent warnings (formally)
final LogMessage log
protected final ByteDataSymbolicAccess accessOamVariable
protected final ByteDataSymbolicAccessReadConfig cfgOamVariable
boolean dataValid
java.util.List<GralWidget> widgetsInTab
protected final GralMng gralMng
protected final GralButton wdgBtnWrHex
protected final GralButton wdgBtnWrVal
final OamEvalValues_ifc evalValues
ViewCfg.CallingArguments.argClassEvalRcvValues
or null if not given. The user class can contribute to the pool of variables and access to all Oam variables, see idxAllVariables
final java.util.Map<java.lang.String,VariableAccess_ifc> idxAllVariables
accessOamVariable
as well as content of evalValues
.VariableAccess_ifc testVar1
VariableAccess_ifc testVar2
java.util.Set<java.util.Map.Entry<java.lang.String,GralWidget>> fieldsToShow
GralCurveView curveView
VariableAccess_ifc varTimeMilliSecFromBaseyear
#readVariableCfg()
.GralColor colorBackValueOk
GralColor colorBackValueOld
long timeMilliSecFromBaseyear
private long timeNow
writeValuesOfTab()
to check newless.private final long milliSecondsOk
public final GralPanelActivated_ifc tabActivatedImpl
public OamShowValues(LogMessage log, GralMng gralMng, Arguments.Argument argClassEvalRcvValues)
public boolean readVariableCfg(ViewCfg.CallingArguments args) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void setFieldsToShow(java.util.Set<java.util.Map.Entry<java.lang.String,GralWidget>> fields, java.lang.Appendable log) throws java.io.IOException
java.io.IOException
public void setCurveView(GralCurveView curveView)
void testChgVariable()
public void show(byte[] binData, int nrofBytes, int from)
showRedraw()
binData
- nrofBytes
- from
- public void showRedraw()
private void writeField(GralWidget widgetInfo)
void writeValuesOfTab()
VariableAccess_ifc getVariableFromContentInfo(GralSetValue_ifc widgetInfo)
VariableAccess_ifc getVariable(java.lang.String sDataPath, int[] ixArrayA)
void widgetSetColor(java.lang.String sName, java.lang.String[] sParam, GralWidget widgetInfo)
void showBinFromByte(GralWidget widgetInfo)
void setValue(GralWidget widgetInfo)
void setBar(GralWidget widgetInfo)
private void redrawCurveValues()
void stop()
void debugStop()