|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScienceObjectNodeModel
Extends the basic ScienceObjectModel (SOM) interface to handle some slightly more
complex capabilities not needed for many "SOM's".
The two main additional features that implementers of this interface must support is:
a) support for a data source containing a full set of data of which the science
object instance has only a slice.
b) support for having additional ScienceObjectModels as "children".
This code was originally developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project for Next Generation Space Telescope (NGST).
Field Summary | |
---|---|
static java.lang.String |
DATA_SOURCE_PROPERTY
Bound property name - should fired when setDataSource() is run |
static java.lang.String |
MORE_DATA_PROPERTY
Bound property name - should fired when setMoreDataAvailable() is run |
Fields inherited from interface jsky.science.ScienceObjectModel |
---|
NAME_PROPERTY, PENDING_PROPERTY, VALID_PROPERTY |
Method Summary | |
---|---|
void |
addChild(ScienceObjectModel so)
Adds a ScienceObject as a "child" of the current object. |
java.util.List |
getChildren()
returns a List of the children of this node |
ScienceObjectNodeModel |
getDataSource()
Returns an object that describes the source of the ScienceObjectModel's data. |
boolean |
isMoreDataAvailable()
Returns true if more data is available for this science object from its ScienceObjectNodeModel. |
boolean |
isPending()
Returns true when the object is in the process of performing an update. |
void |
removeAllChildren()
Removes all children from the ScienceObjectModel. |
ScienceObjectModel |
removeChild(ScienceObjectModel so)
Removes all occurrences of a ScienceObjectModel as a "child" of the current object automatically will handle removing listening |
ScienceObjectModel |
replaceChild(ScienceObjectModel so1,
ScienceObjectModel so2)
Replaces all occurrence of the "old" child with the new child in the propertychange listings. |
void |
requestMoreData()
Requests that the science object retrieve any extra data that it has available from its data source. |
void |
retrieveMoreData(ScienceObjectNodeModel forObject)
Attempts to retrieve more information for the specified ScienceObjectModel and populate the ScienceObjectModel with that extra data. |
void |
setDataSource(ScienceObjectNodeModel s)
Sets the source of the ScienceObjectModel's data. |
void |
setMoreDataAvailable(boolean more)
Sets whether or not more data is available for this science object from its DataSource. |
Methods inherited from interface jsky.science.ScienceObjectModel |
---|
addPropertyChangeListener, clearAllListeners, clone, firePropertyChange, getException, getLabel, getName, getParent, isHolding, isTracing, isValid, removePropertyChangeListener, setException, setHolding, setName, setParent, setTracing |
Methods inherited from interface jsky.util.ReplaceablePropertyChangeListener |
---|
replaceObject |
Methods inherited from interface java.beans.PropertyChangeListener |
---|
propertyChange |
Field Detail |
---|
static final java.lang.String MORE_DATA_PROPERTY
static final java.lang.String DATA_SOURCE_PROPERTY
Method Detail |
---|
void requestMoreData()
boolean isMoreDataAvailable()
ScienceObjectNodeModel getDataSource()
void setDataSource(ScienceObjectNodeModel s)
void setMoreDataAvailable(boolean more)
void retrieveMoreData(ScienceObjectNodeModel forObject)
forObject
- retrieve more data for this science objectjava.util.List getChildren()
ScienceObjectModel removeChild(ScienceObjectModel so)
so
- ScienceObjectModel to be added
ScienceObjectModel replaceChild(ScienceObjectModel so1, ScienceObjectModel so2)
so1
- ScienceObjectModel to be replacedso2
- new ScienceObjectModel to be "added"
void addChild(ScienceObjectModel so)
so
- ScienceObjectModel to be addedvoid removeAllChildren()
boolean isPending()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |