com.monad.homerun.model.scalar
Class ScalarModel

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

public class ScalarModel
extends DataObject
implements Model

ScalarModel extends Model to describe scalar models.

See Also:
Serialized Form

Field Summary
static int OPT_GRAPHICAL
           
static int OPT_MODEL_ICON
           
static int OPT_MODEL_NAME
           
static int OPT_OBJECT_ICON
           
static int OPT_OBJECT_NAME
           
static int OPT_RANGE_ICON
           
static int OPT_RANGE_NAME
           
static int OPT_RANGES
           
static int OPT_RIGHT_JUST
           
static int OPT_TYPE_ICON
           
static int OPT_TYPE_NAME
           
static int OPT_UPDATE_TIME
           
 
Constructor Summary
ScalarModel()
           
ScalarModel(java.lang.String modelName, ScalarModel model)
           
ScalarModel(java.lang.String domain, java.lang.String modelName, java.lang.String iconName)
           
ScalarModel(java.lang.String domain, java.lang.String modelName, java.lang.String iconName, java.lang.String valueType)
           
 
Method Summary
 Control getControl()
          Returns a control for the model.
 java.lang.String getDomain()
          Returns the name of the model's domain.
 Emitter[] getEventSets(boolean single)
           
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 getModelName()
          Returns the name of model, unique within a domain.
 java.lang.String getModelType()
          Returns the type of the model.
 Range[] getRanges()
           
 java.lang.String getValueType()
           
static boolean needModelIcon(int format)
           
static boolean needObjectIcons(int format)
           
static boolean needRangeIcons(int format)
           
static boolean needTypeIcon(int format)
           
 void setIconName(java.lang.String name)
           
 void setModelName(java.lang.String modelName)
          Sets the name of the model.
 void setRanges(Range[] descs)
           
 void setValueType(java.lang.String valueType)
           
 
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

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_RANGES

public static final int OPT_RANGES
See Also:
Constant Field Values

OPT_RANGE_NAME

public static final int OPT_RANGE_NAME
See Also:
Constant Field Values

OPT_RANGE_ICON

public static final int OPT_RANGE_ICON
See Also:
Constant Field Values

OPT_UPDATE_TIME

public static final int OPT_UPDATE_TIME
See Also:
Constant Field Values

OPT_TYPE_NAME

public static final int OPT_TYPE_NAME
See Also:
Constant Field Values

OPT_TYPE_ICON

public static final int OPT_TYPE_ICON
See Also:
Constant Field Values

OPT_RIGHT_JUST

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

ScalarModel

public ScalarModel()

ScalarModel

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

ScalarModel

public ScalarModel(java.lang.String domain,
                   java.lang.String modelName,
                   java.lang.String iconName,
                   java.lang.String valueType)

ScalarModel

public ScalarModel(java.lang.String modelName,
                   ScalarModel 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)

getValueType

public java.lang.String getValueType()

setValueType

public void setValueType(java.lang.String valueType)

getRanges

public Range[] getRanges()

setRanges

public void setRanges(Range[] descs)

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

getEventSets

public Emitter[] getEventSets(boolean single)

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)

needTypeIcon

public static boolean needTypeIcon(int format)

needRangeIcons

public static boolean needRangeIcons(int format)


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