Package hec.model
Class ModelVariable
java.lang.Object
hec.model.ModelVariable
- All Implemented Interfaces:
hec.io.AsciiSerializable,Serializable,Cloneable,Comparable
public class ModelVariable
extends Object
implements Comparable, Cloneable, hec.io.AsciiSerializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModelVariable(int type, String objectType, String name, String nqual, int paramId, int dataId) ModelVariable(int type, String objectType, String name, String nqual, int paramId, int dataId, boolean required) ModelVariable(int type, String objectType, String name, String nqual, int paramId, int dataId, boolean required, String unitStr, String unitTypeStr) ModelVariable(String objectType, String name, int type, int paramId) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanequals(ModelVariable mv) basic equality test.intgetFieldObject(Field fld) getName()intdoubleintintgetType()intbooleanbooleanread(BufferedReader reader) booleansetFieldObject(Field fld, Object fobj) voidsetPriority(double priority) voidsetScaleIndex(int idx) voidvoidvoidsetViewportIndex(int idx) toString()booleanwrite(BufferedWriter writer)
-
Field Details
-
MODEL_VARIABLE_BEGIN
- See Also:
-
-
Constructor Details
-
ModelVariable
public ModelVariable() -
ModelVariable
-
ModelVariable
-
ModelVariable
-
ModelVariable
-
-
Method Details
-
equals
basic equality test.- Parameters:
mv-- Returns:
- true if name, object type, type id, and param id are equal
-
isRequired
public boolean isRequired() -
getNameQualifier
-
getDataSetId
public int getDataSetId() -
getName
-
getType
public int getType() -
getObjectType
-
getParamId
public int getParamId() -
toString
-
getViewportIndex
public int getViewportIndex() -
setViewportIndex
public void setViewportIndex(int idx) -
getScaleIndex
public int getScaleIndex() -
setScaleIndex
public void setScaleIndex(int idx) -
getUnitString
-
setUnitString
-
getUnitTypeString
-
setUnitTypeString
-
write
- Throws:
IOException
-
read
- Throws:
IOException
-
setPriority
public void setPriority(double priority) -
getPriority
public double getPriority() -
compareTo
- Specified by:
compareToin interfaceComparable
-
clone
-
getFieldObject
- Specified by:
getFieldObjectin interfacehec.io.AsciiSerializable
-
setFieldObject
- Specified by:
setFieldObjectin interfacehec.io.AsciiSerializable
-