Package net.simplace.sim.util
Class FWSimVariable<T>
java.lang.Object
net.simplace.sim.util.FWSimVariable<T>
- Type Parameters:
T
-
- Direct Known Subclasses:
FWSimCalibrationVariable
- Author:
- Andreas Enders
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Different variables have different identifies to be able to divide them within within the debugging phase of the software developing process.static enum
Variables can have the following value typesstatic class
static enum
Mode is used for Output Variables to define the way they are generalized if Frequence is no daily step.static enum
Different variables have different identifies to be able to divide them within a list of variables. -
Constructor Summary
ModifierConstructorDescriptionprotected
FWSimVariable
(String aName, String aDescription, String aRule, FWSimVariable.DATA_TYPE aDataType, FWSimVariable.CONTENT_TYPE aContentType, String aUnit, T aValue, Number aMin, Number aMax, T aDefault, Integer[] aCount, FWSimVariable.MODE_TYPE aModeType, FWSimVarMap aVarMap, FWSimFieldContainer aSourceSimComponent) protected
FWSimVariable
(FWSimVariable<T>.net.simplace.sim.util.FWSimVariable.MetaData<T> aMetaData, T aValue, FWSimVarMap aVarMap) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInputLink
(String aFieldName) adding a link to the output-part of the link.void
addOutputLink
(String aFieldName) adding a link to the output-part of the link.void
addValue
(FWSimVariable<T> aVariable, FWSimFieldContainer aSource) standard set Value method: - checks for min and max limits - sets the current date when the value had changed last time - but only if SimModel was registeredvoid
addValue
(T aValue, FWSimFieldContainer aSource) standard set Value method: - checks for min and max limits - sets the current date when the value had changed last time - but only if SimModel was registeredcalculateValue
(FWSimVarMap aVarMap) void
changeDefaultValue
(T aValue) changes default valuecheck
(FWSimVariable<?> aOutputVar) checking routine for 2 different SimVariables that are to be linked togetherclone
(FWSimVarMap aVarMap) deep clone of the SimVariable copying all fields to a new variablestatic org.jdom2.Element
createFormElement
(FWSimVariable<?> aVariable, String aName, String aDescription, String aVisible, String aEnabled, String aContentType, String aModeType, boolean aModeNeeded, String tDataType, String tUnit, String tMax, String tMin, String tRule, String tDesc, String tDefault, FWSimVariable.CONTENT_TYPE aComponentContentType) static org.jdom2.Element
createFormFields
(String aName, String aDescription, String aContentTypeDefault, String aVisible, String aEnabled, FWSimVariable.CONTENT_TYPE aComponentContentType) static org.jdom2.Element
createFormFields
(FWSimVariable<?> aVariable, FWSimVariable.CONTENT_TYPE aComponentContentType, String aDescription, String aFrequence, String aVisible, String aEnabled, boolean aMultipleVarType) static org.jdom2.Element
createMultipleFormElement
(FWSimVariable<?> aVariable, String aName, String aDescription, String aVisible, String aEnabled, String aContentType, String tModeType, boolean aModeNeeded, String aFrequence, String tDataType, String tUnit, String tMax, String tMin, String tRule, String tDesc, String tDefault, FWSimVariable.CONTENT_TYPE aComponentContentType) static FWSimVariable<?>
createOutputSimVariable
(String aName, String aDesc, String aRule, FWSimVariable.DATA_TYPE aDataType, String aUnit, String aOutputFormat, Object aDefault, FWSimVariable.MODE_TYPE aModeType, FWSimFieldContainer aTarget) factory method to create an output (system-output - not component output) sim variable forFWSimVariable.CONTENT_TYPE
out use method above.static FWSimVariable<?>
createSimVariable
(String aName, String aDesc, String aRule, FWSimVariable.DATA_TYPE aDataType, FWSimVariable.CONTENT_TYPE aContentType, String aUnit, Object aValue, Number aMin, Number aMax, Object aDefault, Integer[] aCount, FWSimVariable.MODE_TYPE aModeType, FWSimVarMap aVarMap, FWSimFieldContainer aSourceSimComponent) standard constructor for FWSimVariable - called from clone, too.static FWSimVariable<?>
createSimVariable
(String aName, String aDesc, FWSimVariable.DATA_TYPE aDataType, FWSimVariable.CONTENT_TYPE aContentType, String aUnit, Number aMin, Number aMax, Object aDefault, FWSimFieldContainer aSourceSimComponent) factory method to create a component sim variable forFWSimVariable.CONTENT_TYPE
out use method abovestatic FWSimVariable<?>
createSimVariable
(org.jdom2.Element aVarElement, FWSimFieldContainer aFWSimFieldContainer) factory method to create a FWSimVariable (Typed)deepClone
(FWSimVarMap aVarMap) boolean
evaluate()
evaluate
(FWSimVarMap aVarMap) void
fillMetaDataFromSource
(FWSimVarMap aVarMap) boolean
forceBooleanValue
(boolean aDefault) forces a value to be returned as boolean !!!double
forces a value to be returned as double !!!int
forces a value to be returned as integer !!!forces a value to be returned as string !!!getArrayValue
(int aIndex) Use this method to get value out of the variable by default!Integer[]
getCount()
getDateFormatter
(String aPattern) org.jdom2.Element
getMatrixValue
(int aXIndex, int aYIndex) Use this method to get value out of the variable by default!getMax()
getMin()
getName()
getOrder()
getRule()
getUnit()
getValue()
Use this method to get value out of the variable by default!boolean
hasRule()
boolean
isArray()
boolean
boolean
isDate()
boolean
isDouble()
boolean
boolean
boolean
isInt()
boolean
boolean
isNumber()
boolean
boolean
boolean
isString()
void
multiplyValue
(Number aValue, FWSimFieldContainer aSource) standard set Value method: - checks for min and max limits - sets the current date when the value had changed last time - but only if SimModel was registeredvoid
removeLink
(String aName) void
reset()
replaces the value with the default - even if default is null valuevoid
setArrayValue
(int aIndex, Number aValue, FWSimFieldContainer aSource) special method for setting values to an array type variablevoid
setArrayValue
(int aIndex, String aValue, FWSimFieldContainer aSource) special method for setting values to an array type variablevoid
setContentType
(FWSimVariable.CONTENT_TYPE aContentType) Integer[]
setCount
(int aCount) void
void
replaces the value with the default - even if default is null valuevoid
void
setModeType
(FWSimVariable.MODE_TYPE aModeType) void
void
setNull
(FWSimFieldContainer aSource) sets value to null: - checks for authentication - sets the current date when the value had changed last time - but only if SimModel was registeredvoid
void
setSource
(FWSimFieldContainer aComponent) changing registered source component for this variable !static <F> F
setValue
(Object aObject, FWSimVariable<F> aSimVariable, FWSimFieldContainer aSourceComponent) static factory implementation for setting unknown object type to a given FWSimVariable with type Fvoid
setValue
(FWSimVariable<T> aVariable, FWSimFieldContainer aSource) standard set Value method: - checks for min and max limits - sets the current date when the value had changed last time - but only if SimModel was registeredvoid
setValue
(T aValue, FWSimFieldContainer aSource) standard set Value method: - checks for min and max limits - sets the current date when the value had changed last time - but only if SimModel was registeredstatic <F> F
setValueAndDefault
(Object aObject, FWSimVariable<F> aSimVariable, FWSimFieldContainer aSourceComponent) static factory implementation for setting unknown object type to a given FWSimVariable with type Fvoid
setVarMap
(FWSimVarMap aFwSimvarMap) toString()
org.jdom2.Element
toXML()
static String
transformContentType
(FWSimVariable.CONTENT_TYPE aContentType) static Object
transformDataType
(String aObject, FWSimVariable.DATA_TYPE aDataType) static implementation of a data converter if possible use static setValue()-Method insteadstatic Object
transformDataType
(String aObject, FWSimVariable<?> aSimVariable) static implementation of a data converter if possible use static setValue()-Method insteadstatic String
transformDataTypeToDB
(FWSimVariable.DATA_TYPE aDataType) transforms from Database type toFWSimVariable.DATA_TYPE
static FWSimVariable.DATA_TYPE
transformDBDataType
(String dataType) transforms from Database type toFWSimVariable.DATA_TYPE
static FWSimVariable.DATA_TYPE
transformJavaDataType
(String dataType) transforms from written code style type toFWSimVariable.DATA_TYPE
static String
transformJavaDataType
(FWSimVariable.DATA_TYPE aDataType) static FWSimVariable<?>
updateFields
(FWSimVariable<?> aVariable, FWObservable aObservable) void
updateFields
(org.jdom2.Element aVarElement)
-
Constructor Details
-
FWSimVariable
protected FWSimVariable(String aName, String aDescription, String aRule, FWSimVariable.DATA_TYPE aDataType, FWSimVariable.CONTENT_TYPE aContentType, String aUnit, T aValue, Number aMin, Number aMax, T aDefault, Integer[] aCount, FWSimVariable.MODE_TYPE aModeType, FWSimVarMap aVarMap, FWSimFieldContainer aSourceSimComponent) - Parameters:
aName
-aDescription
-aRule
-aDataType
-aContentType
-aUnit
-aValue
-aMin
-aMax
-aDefault
-aCount
-aModeType
-aVarMap
-aSourceSimComponent
-
-
FWSimVariable
protected FWSimVariable(FWSimVariable<T>.net.simplace.sim.util.FWSimVariable.MetaData<T> aMetaData, T aValue, FWSimVarMap aVarMap) - Parameters:
aMetaData
-aValue
-aVarMap
-
-
-
Method Details
-
createSimVariable
public static FWSimVariable<?> createSimVariable(org.jdom2.Element aVarElement, FWSimFieldContainer aFWSimFieldContainer) factory method to create a FWSimVariable (Typed)- Parameters:
aVarElement
-aFWSimFieldContainer
-- Returns:
- the new created Variable
-
createSimVariable
public static FWSimVariable<?> createSimVariable(String aName, String aDesc, FWSimVariable.DATA_TYPE aDataType, FWSimVariable.CONTENT_TYPE aContentType, String aUnit, Number aMin, Number aMax, Object aDefault, FWSimFieldContainer aSourceSimComponent) factory method to create a component sim variable forFWSimVariable.CONTENT_TYPE
out use method above- Parameters:
aName
-aDesc
-aDataType
-aContentType
-aUnit
-aMin
-aMax
-aDefault
-aSourceSimComponent
-- Returns:
- the new created Variable
-
createOutputSimVariable
public static FWSimVariable<?> createOutputSimVariable(String aName, String aDesc, String aRule, FWSimVariable.DATA_TYPE aDataType, String aUnit, String aOutputFormat, Object aDefault, FWSimVariable.MODE_TYPE aModeType, FWSimFieldContainer aTarget) factory method to create an output (system-output - not component output) sim variable forFWSimVariable.CONTENT_TYPE
out use method above.- Parameters:
aName
-aDesc
-aRule
-aDataType
-aUnit
-aOutputFormat
-aDefault
-aModeType
-aTarget
-- Returns:
- the new created Variable
-
createSimVariable
public static FWSimVariable<?> createSimVariable(String aName, String aDesc, String aRule, FWSimVariable.DATA_TYPE aDataType, FWSimVariable.CONTENT_TYPE aContentType, String aUnit, Object aValue, Number aMin, Number aMax, Object aDefault, Integer[] aCount, FWSimVariable.MODE_TYPE aModeType, FWSimVarMap aVarMap, FWSimFieldContainer aSourceSimComponent) standard constructor for FWSimVariable - called from clone, too.- Parameters:
aName
- Variable nameaDesc
- DescriptionaRule
-aDataType
- Data typeaContentType
- Input, output, etcaUnit
- UnitsaValue
- (internal use, not for initializing)aMin
- MinimumaMax
- MaximumaDefault
- Default, use when initializing constants or inputsaCount
-aModeType
-aVarMap
- (internal use, not for initializing)aSourceSimComponent
- SimModel declaring the variable- Returns:
-
fillMetaDataFromSource
- Parameters:
aVarMap
-
-
isNumber
public boolean isNumber()- Returns:
- if Variable is a Number (int or double)
-
hasRule
public boolean hasRule()- Returns:
- true if has a rule implemented
-
isDouble
public boolean isDouble()- Returns:
- true if variable is double or array of double
-
isInt
public boolean isInt()- Returns:
- true if variable contains int or array of int
-
isBoolean
public boolean isBoolean()- Returns:
- true if variable is boolean
-
isString
public boolean isString()- Returns:
- true if variable is char type
-
isDate
public boolean isDate()- Returns:
- true if variable is of date type
-
isArray
public boolean isArray()- Returns:
- true if variable is an array (int or double)
-
isOutputContent
public boolean isOutputContent()- Returns:
- false if this is of type Input field: input or constant, else true
-
isInputContent
public boolean isInputContent()- Returns:
- true if this is of type Input field: input or constant, else false
-
isMeasData
public boolean isMeasData()- Returns:
- the isMeasData
-
getDescription
- Returns:
- description of this variable
-
getOrder
- Returns:
- order of this variable
-
getDataType
- Returns:
- the dataType
-
getContentType
- Returns:
- the contentType
-
getCategory
-
getModeType
- Returns:
- the modeType
-
getMax
- Returns:
- the max
-
getMin
- Returns:
- the min
-
getValue
Use this method to get value out of the variable by default!- Returns:
- the value
-
getArrayValue
Use this method to get value out of the variable by default!- Parameters:
aIndex
-- Returns:
- the value
-
getMatrixValue
Use this method to get value out of the variable by default!- Parameters:
aXIndex
-aYIndex
-- Returns:
- the value
-
forceDoubleMapValue
- Returns:
- a Tree Map with fixed order derived from a double array
- Throws:
SimFieldTypeException
- if value was NO double array
-
forceBooleanValue
public boolean forceBooleanValue(boolean aDefault) forces a value to be returned as boolean !!! don't use this method for variables type Boolean !!!- Parameters:
aDefault
- - taken if conversion is not successful- Returns:
- the boolean parameter - or the default
-
forceDoubleValue
public double forceDoubleValue()forces a value to be returned as double !!! don't use this method for variables type double !!!- Returns:
- the double parameter
-
forceIntValue
public int forceIntValue()forces a value to be returned as integer !!! don't use this method for variables type integer !!!- Returns:
- the integer parameter
-
forceStringValue
forces a value to be returned as string !!! don't use this method for variables type string !!!- Returns:
- the string parameter
-
setDefaultValue
public void setDefaultValue()replaces the value with the default - even if default is null value -
reset
public void reset()replaces the value with the default - even if default is null value -
setVarMap
- Parameters:
aFwSimvarMap
-
-
setModeType
- Parameters:
aModeType
-
-
setRule
- Parameters:
aRule
-
-
setName
- Parameters:
aNewName
- only used for generator purpose
-
changeDefaultValue
changes default value- Parameters:
aValue
-
-
setNull
sets value to null: - checks for authentication - sets the current date when the value had changed last time - but only if SimModel was registered- Parameters:
aSource
- Component who wants to set this value - for checking purpose- Throws:
SimLinkInvalidException
-
setValue
standard set Value method: - checks for min and max limits - sets the current date when the value had changed last time - but only if SimModel was registered- Parameters:
aValue
- the value to setaSource
- Component who wants to set this value - for checking purpose- Throws:
SimValueOutOfRangeException
- if new value exceeds the limits of Min and Max valueSimLinkInvalidException
-
setValue
public void setValue(FWSimVariable<T> aVariable, FWSimFieldContainer aSource) throws SimValueOutOfRangeException, SimLinkInvalidException standard set Value method: - checks for min and max limits - sets the current date when the value had changed last time - but only if SimModel was registered- Parameters:
aVariable
- the value to setaSource
- Component who wants to set this value - for checking purpose- Throws:
SimValueOutOfRangeException
- if new value exceeds the limits of Min and Max valueSimLinkInvalidException
-
addValue
standard set Value method: - checks for min and max limits - sets the current date when the value had changed last time - but only if SimModel was registered- Parameters:
aValue
- the value to setaSource
- Component who wants to set this value - for checking purpose- Throws:
SimValueOutOfRangeException
- if new value exceeds the limits of Min and Max value
-
addValue
public void addValue(FWSimVariable<T> aVariable, FWSimFieldContainer aSource) throws SimValueOutOfRangeException standard set Value method: - checks for min and max limits - sets the current date when the value had changed last time - but only if SimModel was registered- Parameters:
aVariable
- the value to setaSource
- Component who wants to set this value - for checking purpose- Throws:
SimValueOutOfRangeException
- if new value exceeds the limits of Min and Max value
-
multiplyValue
public void multiplyValue(Number aValue, FWSimFieldContainer aSource) throws SimValueOutOfRangeException standard set Value method: - checks for min and max limits - sets the current date when the value had changed last time - but only if SimModel was registered- Parameters:
aValue
- the value to setaSource
- Component who wants to set this value - for checking purpose- Throws:
SimValueOutOfRangeException
- if new value exceeds the limits of Min and Max value
-
setArrayValue
public void setArrayValue(int aIndex, Number aValue, FWSimFieldContainer aSource) throws SimValueOutOfRangeException, SimFieldTypeException special method for setting values to an array type variable- Parameters:
aIndex
- of the array value should be set toaValue
- the value to setaSource
- Component who wants to set this value - for checking purpose- Throws:
SimValueOutOfRangeException
- if new value exceeds the limits of Min and Max valueSimFieldTypeException
- if variable is NO array
-
setArrayValue
public void setArrayValue(int aIndex, String aValue, FWSimFieldContainer aSource) throws SimValueOutOfRangeException, SimFieldTypeException special method for setting values to an array type variable- Parameters:
aIndex
- of the array value should be set toaValue
- the value to setaSource
- Component who wants to set this value - for checking purpose- Throws:
SimValueOutOfRangeException
- if new value exceeds the limits of Min and Max valueSimFieldTypeException
- if variable is NO array
-
getName
- Returns:
- the name
-
getInternalName
- Returns:
- The Name of the Variable without the component Name
-
getUnit
- Returns:
- the unit
-
getFormat
- Returns:
- the format
-
getFormatter
- Returns:
- the format
-
getStringUnit
- Returns:
- the unit
-
getDefault
- Returns:
- the default
-
getRule
- Returns:
- the rule implemented in the variable
-
calculateValue
- Parameters:
aVarMap
-- Returns:
- the result of the rule implemented in the variable will be set to the value field.
-
evaluate
- Parameters:
aVarMap
-- Returns:
- the result of the rule implemented in the variable
-
evaluate
- Returns:
- the result of the rule implemented in the variable
-
toString
-
getStringValue
- Returns:
- a fromatted string value
- See Also:
-
toShortString
- Returns:
- the name as short string
-
toDebugString
- Returns:
- long debugging string value with all content of the variable
-
toXML
public org.jdom2.Element toXML()- Returns:
- the Element of the variable with all needed values
-
getFieldName
- Returns:
- the short name without container information
-
getCount
- Returns:
- the count of items in the array
-
setCount
- Parameters:
aCount
- count of the params- Returns:
- the count of items in the array
-
setCount
- Parameters:
aArray
- of the counts
-
setFormat
- Parameters:
aFormat
-
-
setValueAndDefault
public static <F> F setValueAndDefault(Object aObject, FWSimVariable<F> aSimVariable, FWSimFieldContainer aSourceComponent) throws SimValueOutOfRangeException, SimLinkInvalidException static factory implementation for setting unknown object type to a given FWSimVariable with type F- Type Parameters:
F
-- Parameters:
aObject
- valueaSimVariable
- to which the value is to be setaSourceComponent
- Component who wants to set this value - for checking purpose- Returns:
- the Value set with correct type
- Throws:
SimValueOutOfRangeException
SimLinkInvalidException
-
setValue
public static <F> F setValue(Object aObject, FWSimVariable<F> aSimVariable, FWSimFieldContainer aSourceComponent) throws SimValueOutOfRangeException, SimLinkInvalidException static factory implementation for setting unknown object type to a given FWSimVariable with type F- Type Parameters:
F
-- Parameters:
aObject
- valueaSimVariable
- to which the value is to be setaSourceComponent
- Component who wants to set this value - for checking purpose- Returns:
- the Value set with correct type
- Throws:
SimValueOutOfRangeException
SimLinkInvalidException
-
transformDataType
public static Object transformDataType(String aObject, FWSimVariable.DATA_TYPE aDataType) throws NumberFormatException static implementation of a data converter if possible use static setValue()-Method instead- Parameters:
aObject
-aDataType
-- Returns:
- the transformed data object
- Throws:
NumberFormatException
-
transformDataType
public static Object transformDataType(String aObject, FWSimVariable<?> aSimVariable) throws NumberFormatException static implementation of a data converter if possible use static setValue()-Method instead- Parameters:
aObject
-aSimVariable
-- Returns:
- the transformed data object
- Throws:
NumberFormatException
-
transformDataTypeToDB
transforms from Database type toFWSimVariable.DATA_TYPE
- Parameters:
aDataType
- used in database- Returns:
- the
FWSimVariable.DATA_TYPE
-
transformDBDataType
transforms from Database type toFWSimVariable.DATA_TYPE
- Parameters:
dataType
- used in database- Returns:
- the
FWSimVariable.DATA_TYPE
-
transformJavaDataType
- Parameters:
aDataType
-- Returns:
- the Java Type Name
-
transformJavaDataType
transforms from written code style type toFWSimVariable.DATA_TYPE
- Parameters:
dataType
- used in java code- Returns:
- the
FWSimVariable.DATA_TYPE
-
transformContentType
- Parameters:
aContentType
-- Returns:
- good toString information
-
getPrefix
- Returns:
- the matching prefix
-
addPrefix
- Parameters:
aFieldName
-- Returns:
- the field name with matching prefix
-
check
checking routine for 2 different SimVariables that are to be linked together- Parameters:
aOutputVar
-- Returns:
- an error string - if string is null everything seems to be perfect!
-
getSource
- Returns:
- the component registered as source component
-
getVarMap
- Returns:
- the VarMap connected to this Variable
-
setSource
changing registered source component for this variable ! use this with care! should not be used by default- Parameters:
aComponent
-
-
addOutputLink
adding a link to the output-part of the link.- Parameters:
aFieldName
-- Throws:
SimLinkInvalidException
- if variable is no output field!
-
addInputLink
adding a link to the output-part of the link.- Parameters:
aFieldName
-- Throws:
SimLinkInvalidException
- if variable is no output field!
-
removeLink
- Parameters:
aName
-
-
isInputLinked
- Returns:
- if is linked to another field as input
- Throws:
SimLinkInvalidException
- if field is no input
-
isOutputLinked
public boolean isOutputLinked()- Returns:
- if is linked to another field as output
-
getRuleComplexity
- Returns:
- the complexRule
-
clone
deep clone of the SimVariable copying all fields to a new variable- Parameters:
aVarMap
-- Returns:
- a new cloned
FWSimVariable
with identical meta data - See Also:
-
deepClone
- Parameters:
aVarMap
-- Returns:
-
setContentType
- Parameters:
aContentType
-
-
createFormFields
public static org.jdom2.Element createFormFields(FWSimVariable<?> aVariable, FWSimVariable.CONTENT_TYPE aComponentContentType, String aDescription, String aFrequence, String aVisible, String aEnabled, boolean aMultipleVarType) - Parameters:
aVariable
-aComponentContentType
-aDescription
-aFrequence
-aVisible
-aEnabled
-aMultipleVarType
-- Returns:
- the FormElement
-
createFormFields
public static org.jdom2.Element createFormFields(String aName, String aDescription, String aContentTypeDefault, String aVisible, String aEnabled, FWSimVariable.CONTENT_TYPE aComponentContentType) - Parameters:
aName
-aDescription
-aContentTypeDefault
-aVisible
-aEnabled
-aComponentContentType
-- Returns:
- the FormElement
-
createMultipleFormElement
public static org.jdom2.Element createMultipleFormElement(FWSimVariable<?> aVariable, String aName, String aDescription, String aVisible, String aEnabled, String aContentType, String tModeType, boolean aModeNeeded, String aFrequence, String tDataType, String tUnit, String tMax, String tMin, String tRule, String tDesc, String tDefault, FWSimVariable.CONTENT_TYPE aComponentContentType) - Parameters:
aVariable
-aName
-aDescription
-aVisible
-aEnabled
-aContentType
-tModeType
-aModeNeeded
-aFrequence
-tDataType
-tUnit
-tMax
-tMin
-tRule
-tDesc
-tDefault
-aComponentContentType
-- Returns:
- the Form Element
-
createFormElement
public static org.jdom2.Element createFormElement(FWSimVariable<?> aVariable, String aName, String aDescription, String aVisible, String aEnabled, String aContentType, String aModeType, boolean aModeNeeded, String tDataType, String tUnit, String tMax, String tMin, String tRule, String tDesc, String tDefault, FWSimVariable.CONTENT_TYPE aComponentContentType) - Parameters:
aVariable
-aName
-aDescription
-aVisible
-aEnabled
-aContentType
-aModeType
-aModeNeeded
-tDataType
-tUnit
-tMax
-tMin
-tRule
-tDesc
-tDefault
-aComponentContentType
-- Returns:
- the Form Element
-
updateFields
public void updateFields(org.jdom2.Element aVarElement) - Parameters:
aVarElement
-
-
updateFields
public static FWSimVariable<?> updateFields(FWSimVariable<?> aVariable, FWObservable aObservable) throws SimLinkInvalidException, SimValueOutOfRangeException - Parameters:
aVariable
-aObservable
-- Returns:
- a new created sim variable
- Throws:
SimValueOutOfRangeException
SimLinkInvalidException
-
getFormComponentXML
public org.jdom2.Element getFormComponentXML()- Returns:
- the generated form xml
-
getDateFormatter
-
equals
-
toHTMLTablestring
- Returns:
- the HTML Table String
-