com.monad.homerun.model
Interface Model

All Known Implementing Classes:
DateModel, NumericModel, ScalarModel, SetModel, StateModel, TimeModel

public interface Model

Interface for model descriptions. Model behavior depends on the implementation.


Method Summary
 Control getControl()
          Returns a control for the model.
 java.lang.String getDomain()
          Returns the name of the model's domain.
 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.
 void setModelName(java.lang.String modelName)
          Sets the name of the model.
 

Method Detail

getModelName

java.lang.String getModelName()
Returns the name of model, unique within a domain.

Returns:
the model name

setModelName

void setModelName(java.lang.String modelName)
Sets the name of the model.

Parameters:
modelName - the name of the model

getDomain

java.lang.String getDomain()
Returns the name of the model's domain.

Returns:
the model domain

getModelType

java.lang.String getModelType()
Returns the type of the model.

Returns:
the model type

getIconName

java.lang.String getIconName()
Returns the icon name for the model.

Returns:
the model icon name

getControl

Control getControl()
Returns a control for the model.

Returns:
a control, or null if model cannot be controlled


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