com.monad.homerun.model.numeric
Class NumericModel

java.lang.Object
  extended by com.monad.homerun.base.DataObject
      extended by com.monad.homerun.model.numeric.NumericModel
All Implemented Interfaces:
Model, java.io.Serializable

public class NumericModel
extends DataObject
implements Model

NumericModel extends Model and is a light-weight container describing concrete numeric models.

See Also:
Serialized Form

Field Summary
static java.lang.String CNT_DECR
           
static java.lang.String CNT_INCR
           
static java.lang.String CNT_RESET
           
static java.lang.String ITV_EXP
           
static java.lang.String ITV_SET
           
static int OPT_AVERAGE
           
static int OPT_GRAPHICAL
           
static int OPT_LIMIT_ICON
           
static int OPT_LIMIT_NAME
           
static int OPT_LIMITS
           
static int OPT_MODEL_ICON
           
static int OPT_MODEL_NAME
           
static int OPT_NUMBER_TYPE
           
static int OPT_OBJECT_ICON
           
static int OPT_OBJECT_NAME
           
static int OPT_UPDATE_TIME
           
static java.lang.String TMR_RESET
           
static java.lang.String TMR_RESM
           
static java.lang.String TMR_SUSP
           
static java.lang.String VAR_ADD
           
static java.lang.String VAR_DIV
           
static java.lang.String VAR_MULT
           
static java.lang.String VAR_SET
           
static java.lang.String VAR_SUB
           
 
Constructor Summary
NumericModel()
           
NumericModel(java.lang.String modelName, NumericModel model)
           
NumericModel(java.lang.String domain, java.lang.String modelName, java.lang.String iconName)
           
NumericModel(java.lang.String domain, java.lang.String modelName, java.lang.String iconName, java.lang.String typeName)
           
 
Method Summary
 Control getControl()
          Returns a control for the model.
 java.lang.String getDomain()
          Returns the name of the model's domain.
static java.util.Map<java.lang.String,java.lang.Integer> getFormatOptions()
           
 java.lang.String getIconName()
          Returns the icon name for the model.
 java.lang.String[] getIconNames()
           
 Limit[] getLimitDescs()
           
 java.lang.String getModelName()
          Returns the name of model, unique within a domain.
 java.lang.String getModelType()
          Returns the type of the model.
 NumberType getNumberType()
           
static boolean needLimitIcons(int format)
           
static boolean needModelIcon(int format)
           
static boolean needObjectIcons(int format)
           
 void setIconName(java.lang.String name)
           
 void setLimitDescs(Limit[] descs)
           
 void setModelName(java.lang.String modelName)
          Sets the name of the model.
 void setNumberType(NumberType type)
           
 
Methods inherited from class com.monad.homerun.base.DataObject
getCategory, getModificationTime, getName, getNote, setCategory, setModificationTime, setName, setNote
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CNT_INCR

public static final java.lang.String CNT_INCR
See Also:
Constant Field Values

CNT_DECR

public static final java.lang.String CNT_DECR
See Also:
Constant Field Values

CNT_RESET

public static final java.lang.String CNT_RESET
See Also:
Constant Field Values

TMR_RESM

public static final java.lang.String TMR_RESM
See Also:
Constant Field Values

TMR_SUSP

public static final java.lang.String TMR_SUSP
See Also:
Constant Field Values

TMR_RESET

public static final java.lang.String TMR_RESET
See Also:
Constant Field Values

VAR_SET

public static final java.lang.String VAR_SET
See Also:
Constant Field Values

VAR_ADD

public static final java.lang.String VAR_ADD
See Also:
Constant Field Values

VAR_SUB

public static final java.lang.String VAR_SUB
See Also:
Constant Field Values

VAR_MULT

public static final java.lang.String VAR_MULT
See Also:
Constant Field Values

VAR_DIV

public static final java.lang.String VAR_DIV
See Also:
Constant Field Values

ITV_SET

public static final java.lang.String ITV_SET
See Also:
Constant Field Values

ITV_EXP

public static final java.lang.String ITV_EXP
See Also:
Constant Field Values

OPT_GRAPHICAL

public static final int OPT_GRAPHICAL
See Also:
Constant Field Values

OPT_MODEL_NAME

public static final int OPT_MODEL_NAME
See Also:
Constant Field Values

OPT_MODEL_ICON

public static final int OPT_MODEL_ICON
See Also:
Constant Field Values

OPT_OBJECT_NAME

public static final int OPT_OBJECT_NAME
See Also:
Constant Field Values

OPT_OBJECT_ICON

public static final int OPT_OBJECT_ICON
See Also:
Constant Field Values

OPT_LIMITS

public static final int OPT_LIMITS
See Also:
Constant Field Values

OPT_LIMIT_NAME

public static final int OPT_LIMIT_NAME
See Also:
Constant Field Values

OPT_LIMIT_ICON

public static final int OPT_LIMIT_ICON
See Also:
Constant Field Values

OPT_UPDATE_TIME

public static final int OPT_UPDATE_TIME
See Also:
Constant Field Values

OPT_AVERAGE

public static final int OPT_AVERAGE
See Also:
Constant Field Values

OPT_NUMBER_TYPE

public static final int OPT_NUMBER_TYPE
See Also:
Constant Field Values
Constructor Detail

NumericModel

public NumericModel()

NumericModel

public NumericModel(java.lang.String domain,
                    java.lang.String modelName,
                    java.lang.String iconName)

NumericModel

public NumericModel(java.lang.String domain,
                    java.lang.String modelName,
                    java.lang.String iconName,
                    java.lang.String typeName)

NumericModel

public NumericModel(java.lang.String modelName,
                    NumericModel model)
Method Detail

getModelName

public java.lang.String getModelName()
Description copied from interface: Model
Returns the name of model, unique within a domain.

Specified by:
getModelName in interface Model
Returns:
the model name

setModelName

public void setModelName(java.lang.String modelName)
Description copied from interface: Model
Sets the name of the model.

Specified by:
setModelName in interface Model
Parameters:
modelName - the name of the model

getDomain

public java.lang.String getDomain()
Description copied from interface: Model
Returns the name of the model's domain.

Specified by:
getDomain in interface Model
Returns:
the model domain

getModelType

public java.lang.String getModelType()
Description copied from interface: Model
Returns the type of the model.

Specified by:
getModelType in interface Model
Returns:
the model type

getIconName

public java.lang.String getIconName()
Description copied from interface: Model
Returns the icon name for the model.

Specified by:
getIconName in interface Model
Returns:
the model icon name

setIconName

public void setIconName(java.lang.String name)

getNumberType

public NumberType getNumberType()

setNumberType

public void setNumberType(NumberType type)

getControl

public Control getControl()
Description copied from interface: Model
Returns a control for the model.

Specified by:
getControl in interface Model
Returns:
a control, or null if model cannot be controlled

getLimitDescs

public Limit[] getLimitDescs()

setLimitDescs

public void setLimitDescs(Limit[] descs)

getIconNames

public java.lang.String[] getIconNames()

getFormatOptions

public static java.util.Map<java.lang.String,java.lang.Integer> getFormatOptions()

needObjectIcons

public static boolean needObjectIcons(int format)

needModelIcon

public static boolean needModelIcon(int format)

needLimitIcons

public static boolean needLimitIcons(int format)


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.