Package net.simplace.sim.util
Klasse FWSimVariable<T>
java.lang.Object
net.simplace.sim.util.FWSimVariable<T>
- Typparameter:
T-
- Bekannte direkte Unterklassen:
FWSimCalibrationVariable
- Autor:
- Andreas Enders
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumDifferent variables have different identifies to be able to divide them within within the debugging phase of the software developing process.static enumVariables can have the following value typesstatic classstatic enumMode is used for Output Variables to define the way they are generalized if Frequence is no daily step.static enumDifferent variables have different identifies to be able to divide them within a list of variables. -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedFWSimVariable(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) protectedFWSimVariable(FWSimVariable<T>.net.simplace.sim.util.FWSimVariable.MetaData<T> aMetaData, T aValue, FWSimVarMap aVarMap) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddInputLink(String aFieldName) adding a link to the output-part of the link.voidaddOutputLink(String aFieldName) adding a link to the output-part of the link.voidaddValue(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 registeredvoidaddValue(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) voidchangeDefaultValue(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.ElementcreateFormElement(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.ElementcreateFormFields(String aName, String aDescription, String aContentTypeDefault, String aVisible, String aEnabled, FWSimVariable.CONTENT_TYPE aComponentContentType) static org.jdom2.ElementcreateFormFields(FWSimVariable<?> aVariable, FWSimVariable.CONTENT_TYPE aComponentContentType, String aDescription, String aFrequence, String aVisible, String aEnabled, boolean aMultipleVarType) static org.jdom2.ElementcreateMultipleFormElement(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_TYPEout 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_TYPEout use method abovestatic FWSimVariable<?> createSimVariable(org.jdom2.Element aVarElement, FWSimFieldContainer aFWSimFieldContainer) factory method to create a FWSimVariable (Typed)deepClone(FWSimVarMap aVarMap) booleanevaluate()evaluate(FWSimVarMap aVarMap) voidfillMetaDataFromSource(FWSimVarMap aVarMap) booleanforceBooleanValue(boolean aDefault) forces a value to be returned as boolean !!!doubleforces a value to be returned as double !!!intforces 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.ElementgetMatrixValue(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!booleanhasRule()booleanisArray()booleanbooleanisDate()booleanisDouble()booleanbooleanbooleanisInt()booleanbooleanisNumber()booleanbooleanbooleanisString()voidmultiplyValue(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 registeredvoidremoveLink(String aName) voidreset()replaces the value with the default - even if default is null valuevoidsetArrayValue(int aIndex, Number aValue, FWSimFieldContainer aSource) special method for setting values to an array type variablevoidsetArrayValue(int aIndex, String aValue, FWSimFieldContainer aSource) special method for setting values to an array type variablevoidsetContentType(FWSimVariable.CONTENT_TYPE aContentType) Integer[]setCount(int aCount) voidvoidreplaces the value with the default - even if default is null valuevoidvoidsetModeType(FWSimVariable.MODE_TYPE aModeType) voidvoidsetNull(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 registeredvoidvoidsetSource(FWSimFieldContainer aComponent) changing registered source component for this variable !static <F> FsetValue(Object aObject, FWSimVariable<F> aSimVariable, FWSimFieldContainer aSourceComponent) static factory implementation for setting unknown object type to a given FWSimVariable with type FvoidsetValue(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 registeredvoidsetValue(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> FsetValueAndDefault(Object aObject, FWSimVariable<F> aSimVariable, FWSimFieldContainer aSourceComponent) static factory implementation for setting unknown object type to a given FWSimVariable with type FvoidsetVarMap(FWSimVarMap aFwSimvarMap) org.jdom2.ElementtoCalVarXML(String aCommaSeperatedList) org.jdom2.ElementtoCalVarXML(String aMinVal, String aMaxVal, Integer aCount) org.jdom2.ElementtoOutVarXML(String aMode) toString()org.jdom2.ElementtoXML()static StringtransformContentType(FWSimVariable.CONTENT_TYPE aContentType) static ObjecttransformDataType(String aObject, FWSimVariable.DATA_TYPE aDataType) static implementation of a data converter if possible use static setValue()-Method insteadstatic ObjecttransformDataType(String aObject, FWSimVariable<?> aSimVariable) static implementation of a data converter if possible use static setValue()-Method insteadstatic StringtransformDataTypeToDB(FWSimVariable.DATA_TYPE aDataType) transforms from Database type toFWSimVariable.DATA_TYPEstatic FWSimVariable.DATA_TYPEtransformDBDataType(String dataType) transforms from Database type toFWSimVariable.DATA_TYPEstatic FWSimVariable.DATA_TYPEtransformJavaDataType(String dataType) transforms from written code style type toFWSimVariable.DATA_TYPEstatic StringtransformJavaDataType(FWSimVariable.DATA_TYPE aDataType) static FWSimVariable<?> updateFields(FWSimVariable<?> aVariable, FWObservable aObservable) voidupdateFields(org.jdom2.Element aVarElement)
-
Konstruktordetails
-
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) - Parameter:
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) - Parameter:
aMetaData-aValue-aVarMap-
-
-
Methodendetails
-
createSimVariable
public static FWSimVariable<?> createSimVariable(org.jdom2.Element aVarElement, FWSimFieldContainer aFWSimFieldContainer) factory method to create a FWSimVariable (Typed)- Parameter:
aVarElement-aFWSimFieldContainer-- Gibt zurück:
- 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_TYPEout use method above- Parameter:
aName-aDesc-aDataType-aContentType-aUnit-aMin-aMax-aDefault-aSourceSimComponent-- Gibt zurück:
- 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_TYPEout use method above.- Parameter:
aName-aDesc-aRule-aDataType-aUnit-aOutputFormat-aDefault-aModeType-aTarget-- Gibt zurück:
- 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.- Parameter:
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- Gibt zurück:
-
fillMetaDataFromSource
- Parameter:
aVarMap-
-
isNumber
public boolean isNumber()- Gibt zurück:
- if Variable is a Number (int or double)
-
hasRule
public boolean hasRule()- Gibt zurück:
- true if has a rule implemented
-
isDouble
public boolean isDouble()- Gibt zurück:
- true if variable is double or array of double
-
isInt
public boolean isInt()- Gibt zurück:
- true if variable contains int or array of int
-
isBoolean
public boolean isBoolean()- Gibt zurück:
- true if variable is boolean
-
isString
public boolean isString()- Gibt zurück:
- true if variable is char type
-
isDate
public boolean isDate()- Gibt zurück:
- true if variable is of date type
-
isArray
public boolean isArray()- Gibt zurück:
- true if variable is an array (int or double)
-
isOutputContent
public boolean isOutputContent()- Gibt zurück:
- false if this is of type Input field: input or constant, else true
-
isInputContent
public boolean isInputContent()- Gibt zurück:
- true if this is of type Input field: input or constant, else false
-
isMeasData
public boolean isMeasData()- Gibt zurück:
- the isMeasData
-
getDescription
- Gibt zurück:
- description of this variable
-
getOrder
- Gibt zurück:
- order of this variable
-
getDataType
- Gibt zurück:
- the dataType
-
getContentType
- Gibt zurück:
- the contentType
-
getCategory
-
getModeType
- Gibt zurück:
- the modeType
-
getMax
- Gibt zurück:
- the max
-
getMin
- Gibt zurück:
- the min
-
getValue
Use this method to get value out of the variable by default!- Gibt zurück:
- the value
-
getArrayValue
Use this method to get value out of the variable by default!- Parameter:
aIndex-- Gibt zurück:
- the value
-
getMatrixValue
Use this method to get value out of the variable by default!- Parameter:
aXIndex-aYIndex-- Gibt zurück:
- the value
-
forceDoubleMapValue
- Gibt zurück:
- a Tree Map with fixed order derived from a double array
- Löst aus:
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 !!!- Parameter:
aDefault- - taken if conversion is not successful- Gibt zurück:
- 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 !!!- Gibt zurück:
- the double parameter
-
forceIntValue
public int forceIntValue()forces a value to be returned as integer !!! don't use this method for variables type integer !!!- Gibt zurück:
- the integer parameter
-
forceStringValue
forces a value to be returned as string !!! don't use this method for variables type string !!!- Gibt zurück:
- 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
- Parameter:
aFwSimvarMap-
-
setModeType
- Parameter:
aModeType-
-
setRule
- Parameter:
aRule-
-
setName
- Parameter:
aNewName- only used for generator purpose
-
changeDefaultValue
changes default value- Parameter:
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- Parameter:
aSource- Component who wants to set this value - for checking purpose- Löst aus:
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- Parameter:
aValue- the value to setaSource- Component who wants to set this value - for checking purpose- Löst aus:
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- Parameter:
aVariable- the value to setaSource- Component who wants to set this value - for checking purpose- Löst aus:
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- Parameter:
aValue- the value to setaSource- Component who wants to set this value - for checking purpose- Löst aus:
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- Parameter:
aVariable- the value to setaSource- Component who wants to set this value - for checking purpose- Löst aus:
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- Parameter:
aValue- the value to setaSource- Component who wants to set this value - for checking purpose- Löst aus:
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- Parameter:
aIndex- of the array value should be set toaValue- the value to setaSource- Component who wants to set this value - for checking purpose- Löst aus:
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- Parameter:
aIndex- of the array value should be set toaValue- the value to setaSource- Component who wants to set this value - for checking purpose- Löst aus:
SimValueOutOfRangeException- if new value exceeds the limits of Min and Max valueSimFieldTypeException- if variable is NO array
-
getName
- Gibt zurück:
- the name
-
getInternalName
- Gibt zurück:
- The Name of the Variable without the component Name
-
getUnit
- Gibt zurück:
- the unit
-
getFormat
- Gibt zurück:
- the format
-
getFormatter
- Gibt zurück:
- the format
-
getStringUnit
- Gibt zurück:
- the unit
-
getDefault
- Gibt zurück:
- the default
-
getRule
- Gibt zurück:
- the rule implemented in the variable
-
calculateValue
- Parameter:
aVarMap-- Gibt zurück:
- the result of the rule implemented in the variable will be set to the value field.
-
evaluate
- Parameter:
aVarMap-- Gibt zurück:
- the result of the rule implemented in the variable
-
evaluate
- Gibt zurück:
- the result of the rule implemented in the variable
-
toString
-
getStringValue
- Gibt zurück:
- a fromatted string value
- Siehe auch:
-
toShortString
- Gibt zurück:
- the name as short string
-
toDebugString
- Gibt zurück:
- long debugging string value with all content of the variable
-
toXML
public org.jdom2.Element toXML()- Gibt zurück:
- the Element of the variable with all needed values
-
toCalVarXML
- Gibt zurück:
- the Element of the variable with all needed values
1000 2000 21
-
toCalVarXML
- Gibt zurück:
- the Element of the variable with all needed values
1000 2000 21
-
toOutVarXML
- Gibt zurück:
- the Element of the variable with all needed values
-
getFieldName
- Gibt zurück:
- the short name without container information
-
getCount
- Gibt zurück:
- the count of items in the array
-
setCount
- Parameter:
aCount- count of the params- Gibt zurück:
- the count of items in the array
-
setCount
- Parameter:
aArray- of the counts
-
setFormat
- Parameter:
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- Typparameter:
F-- Parameter:
aObject- valueaSimVariable- to which the value is to be setaSourceComponent- Component who wants to set this value - for checking purpose- Gibt zurück:
- the Value set with correct type
- Löst aus:
SimValueOutOfRangeExceptionSimLinkInvalidException
-
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- Typparameter:
F-- Parameter:
aObject- valueaSimVariable- to which the value is to be setaSourceComponent- Component who wants to set this value - for checking purpose- Gibt zurück:
- the Value set with correct type
- Löst aus:
SimValueOutOfRangeExceptionSimLinkInvalidException
-
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- Parameter:
aObject-aDataType-- Gibt zurück:
- the transformed data object
- Löst aus:
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- Parameter:
aObject-aSimVariable-- Gibt zurück:
- the transformed data object
- Löst aus:
NumberFormatException
-
transformDataTypeToDB
transforms from Database type toFWSimVariable.DATA_TYPE- Parameter:
aDataType- used in database- Gibt zurück:
- the
FWSimVariable.DATA_TYPE
-
transformDBDataType
transforms from Database type toFWSimVariable.DATA_TYPE- Parameter:
dataType- used in database- Gibt zurück:
- the
FWSimVariable.DATA_TYPE
-
transformJavaDataType
- Parameter:
aDataType-- Gibt zurück:
- the Java Type Name
-
transformJavaDataType
transforms from written code style type toFWSimVariable.DATA_TYPE- Parameter:
dataType- used in java code- Gibt zurück:
- the
FWSimVariable.DATA_TYPE
-
transformContentType
- Parameter:
aContentType-- Gibt zurück:
- good toString information
-
getPrefix
- Gibt zurück:
- the matching prefix
-
addPrefix
- Parameter:
aFieldName-- Gibt zurück:
- the field name with matching prefix
-
check
checking routine for 2 different SimVariables that are to be linked together- Parameter:
aOutputVar-- Gibt zurück:
- an error string - if string is null everything seems to be perfect!
-
getSource
- Gibt zurück:
- the component registered as source component
-
getVarMap
- Gibt zurück:
- the VarMap connected to this Variable
-
setSource
changing registered source component for this variable ! use this with care! should not be used by default- Parameter:
aComponent-
-
addOutputLink
adding a link to the output-part of the link.- Parameter:
aFieldName-- Löst aus:
SimLinkInvalidException- if variable is no output field!
-
addInputLink
adding a link to the output-part of the link.- Parameter:
aFieldName-- Löst aus:
SimLinkInvalidException- if variable is no output field!
-
removeLink
- Parameter:
aName-
-
isInputLinked
- Gibt zurück:
- if is linked to another field as input
- Löst aus:
SimLinkInvalidException- if field is no input
-
isOutputLinked
public boolean isOutputLinked()- Gibt zurück:
- if is linked to another field as output
-
getRuleComplexity
- Gibt zurück:
- the complexRule
-
clone
deep clone of the SimVariable copying all fields to a new variable- Parameter:
aVarMap-- Gibt zurück:
- a new cloned
FWSimVariablewith identical meta data - Siehe auch:
-
deepClone
- Parameter:
aVarMap-- Gibt zurück:
-
setContentType
- Parameter:
aContentType-
-
createFormFields
public static org.jdom2.Element createFormFields(FWSimVariable<?> aVariable, FWSimVariable.CONTENT_TYPE aComponentContentType, String aDescription, String aFrequence, String aVisible, String aEnabled, boolean aMultipleVarType) - Parameter:
aVariable-aComponentContentType-aDescription-aFrequence-aVisible-aEnabled-aMultipleVarType-- Gibt zurück:
- the FormElement
-
createFormFields
public static org.jdom2.Element createFormFields(String aName, String aDescription, String aContentTypeDefault, String aVisible, String aEnabled, FWSimVariable.CONTENT_TYPE aComponentContentType) - Parameter:
aName-aDescription-aContentTypeDefault-aVisible-aEnabled-aComponentContentType-- Gibt zurück:
- 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) - Parameter:
aVariable-aName-aDescription-aVisible-aEnabled-aContentType-tModeType-aModeNeeded-aFrequence-tDataType-tUnit-tMax-tMin-tRule-tDesc-tDefault-aComponentContentType-- Gibt zurück:
- 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) - Parameter:
aVariable-aName-aDescription-aVisible-aEnabled-aContentType-aModeType-aModeNeeded-tDataType-tUnit-tMax-tMin-tRule-tDesc-tDefault-aComponentContentType-- Gibt zurück:
- the Form Element
-
updateFields
public void updateFields(org.jdom2.Element aVarElement) - Parameter:
aVarElement-
-
updateFields
public static FWSimVariable<?> updateFields(FWSimVariable<?> aVariable, FWObservable aObservable) throws SimLinkInvalidException, SimValueOutOfRangeException - Parameter:
aVariable-aObservable-- Gibt zurück:
- a new created sim variable
- Löst aus:
SimValueOutOfRangeExceptionSimLinkInvalidException
-
getFormComponentXML
public org.jdom2.Element getFormComponentXML()- Gibt zurück:
- the generated form xml
-
getDateFormatter
-
equals
-
toHTMLTablestring
- Gibt zurück:
- the HTML Table String
-