edu.usc.cse.desi.model
Class AbstractNodeDataModel

java.lang.Object
  extended byedu.usc.cse.desi.model.AbstractDESIModel
      extended byedu.usc.cse.desi.model.AbstractDataModel
          extended byedu.usc.cse.desi.model.AbstractNodeDataModel
All Implemented Interfaces:
java.util.EventListener, IObjectWithProperties, java.beans.PropertyChangeListener, java.io.Serializable
Direct Known Subclasses:
ComponentDataModel, HostDataModel

public abstract class AbstractNodeDataModel
extends AbstractDataModel

This is the abstract class that hosts and components will subclass. It contains methods common to both of those classes.

Author:
Nels Started Feb 15, 2004
See Also:
Serialized Form

Field Summary
protected  java.util.List myChildren
           
protected  java.util.List myConnections
           
 
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
AbstractNodeDataModel()
           
AbstractNodeDataModel(PropertyInitializer initializer)
           
 
Method Summary
 java.util.List getChildren()
          Returns a List of child components for this node.
 java.util.List getConnections()
          Returns a list of all the connections that are connected to this node.
 void reinitialize()
          Call reinitialize on all your children and connections.
 
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

myChildren

protected java.util.List myChildren

myConnections

protected java.util.List myConnections
Constructor Detail

AbstractNodeDataModel

public AbstractNodeDataModel(PropertyInitializer initializer)

AbstractNodeDataModel

public AbstractNodeDataModel()
Method Detail

getChildren

public java.util.List getChildren()
Returns a List of child components for this node.

Returns:
List

getConnections

public java.util.List getConnections()
Returns a list of all the connections that are connected to this node.

Returns:
List

reinitialize

public void reinitialize()
Call reinitialize on all your children and connections. This will fix all problems with deserialization of listeners.

Overrides:
reinitialize in class AbstractDESIModel