|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DESModel
The interface for all models which IDES will handle.
| Method Summary | |
|---|---|
DESEventSet |
getEventSet()
Obtains the set of events in the model. |
DESModelType |
getModelType()
Returns the model type. |
java.lang.String |
getName()
Returns the display name of the model. |
ParentModel |
getParentModel()
Returns the parent model, if any, of the model. |
void |
metadataChanged()
Notifies the model that some associated metadata has been changed. |
void |
modelSaved()
Notifies the model that it has been saved. |
boolean |
needsSave()
Returns true if the information about the model needs to be
saved; false otherwise. |
void |
setName(java.lang.String name)
Sets the display name of the model. |
void |
setParentModel(ParentModel model)
Sets the parent model of the model. |
| Methods inherited from interface ides.api.core.Annotable |
|---|
getAnnotation, hasAnnotation, removeAnnotation, setAnnotation |
| Methods inherited from interface ides.api.plugin.model.DESModelPublisher |
|---|
addSubscriber, getDESModelSubscribers, removeSubscriber |
| Method Detail |
|---|
void setName(java.lang.String name)
name - new display name for the modeljava.lang.String getName()
DESModelType getModelType()
void metadataChanged()
void modelSaved()
boolean needsSave()
true if the information about the model needs to be
saved; false otherwise. This method should also consider
changes to the associated metadata (see metadataChanged()).
E.g., if the user moves a node of a FSAGraph, this method will
return true since the updated position of the node has to be
saved.
true if the information maintained by the model
needs to be saved; false otherwiseParentModel getParentModel()
The parent model of a model is the model which is responsible for the maintenance of the child model, e.g., keeping track of changes, saving and loading, etc. If a model has a parent model, IDES will treat the child model as a temporary "view" into the parent model (e.g., it will not ask to save the model on closing, it will not allow renaming of the model, etc.)
null if there is no
parentvoid setParentModel(ParentModel model)
model - the parent model for the modelgetParentModel()DESEventSet getEventSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||