|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.usc.cse.desi.model.AbstractDESIModel
edu.usc.cse.desi.model.AbstractDataModel
edu.usc.cse.desi.model.DESIDataModel
This highest-level class is a starting point that could be used to access every other object in one system. It contains the hosts in a system, and these can be accessed to in turn get the components or links. One instance of this class is one system, more or less.
| Field Summary | |
private java.util.List |
myHosts
|
| Fields inherited from class edu.usc.cse.desi.model.AbstractDataModel |
myPropertyHolder, myPropetyInitializer |
| Fields inherited from class edu.usc.cse.desi.model.AbstractDESIModel |
listeners |
| Constructor Summary | |
DESIDataModel()
|
|
DESIDataModel(PropertyInitializer initializer)
|
|
| Method Summary | |
void |
addHost(HostDataModel host)
Adds new host and then updates all listeners. |
java.lang.String |
debugOutput()
This method will output a string that you can use to see the structure of the view model. |
java.util.List |
getHosts()
Returns list of hosts. |
void |
reinitialize()
Must call reinitialize on all host data models. |
void |
removeAllHosts()
This method will simply remove all the hosts that are in the systen It's the equivalent of calling DESIDataModel.removeHost() for every host. |
void |
removeHost(HostDataModel host)
Removes the given host and updates all listeners. |
| Methods inherited from class edu.usc.cse.desi.model.AbstractDataModel |
getMyPropertyInitializer, getProperties, getPropertyDisplayName, getPropertyValue, hasProperty, setPropertyValue |
| Methods inherited from class edu.usc.cse.desi.model.AbstractDESIModel |
addPropertyChangeListener, firePropertyChange, propertyChange, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.List myHosts
| Constructor Detail |
public DESIDataModel()
public DESIDataModel(PropertyInitializer initializer)
initializer - | Method Detail |
public java.util.List getHosts()
public void reinitialize()
reinitialize in class AbstractDESIModelpublic void addHost(HostDataModel host)
host - HostDataModelpublic void removeHost(HostDataModel host)
host - HostDataModelpublic void removeAllHosts()
public java.lang.String debugOutput()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||