|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScienceObjectModel
Defines the basic functionality required for a class to interact within the "Science" framework. This framework was design initially for the Scientist's Expert Assistant (SEA) and provide a common superclass for a set of science- oriented constructs to work together.
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 |
NAME_PROPERTY
Property name affiliated with the Name property of a ScienceObjectModel. |
static java.lang.String |
PENDING_PROPERTY
Property names used by subclasses to indicate a change in a subclass' Validity status. |
static java.lang.String |
VALID_PROPERTY
Deprecated. - not being used |
Method Summary | |
---|---|
void |
addPropertyChangeListener(ReplaceablePropertyChangeListener listener)
Adds a listener to receive PropertyChangeNotifications and Replacement events. |
void |
clearAllListeners()
Removes all listeners. |
java.lang.Object |
clone()
Define a clone() without throwing an exception. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Covering method to fire a property change notification to listeners. |
java.lang.Exception |
getException()
For validity purposes, a ScienceObjectNode will be "valid" if it has no exceptions assigned to it. |
java.lang.String |
getLabel()
Returns a Label property - may be same as Name or same as toString() or provide a different implementation |
java.lang.String |
getName()
Returns the Name property, should NOT return a null |
ScienceObjectNodeModel |
getParent()
Returns the parent, if any. |
boolean |
isHolding()
Return the internal "held" state of the object. |
boolean |
isTracing()
Returns true if this object should have its property change events traced. |
boolean |
isValid()
Returns a boolean indicating whether the internal state of the object is in a valid state and its information scientifically sound. |
void |
removePropertyChangeListener(ReplaceablePropertyChangeListener listener)
Removes a listener for receiving PropertyChangeNotifications and Replacement events. |
void |
setException(java.lang.Exception e)
Sets an exception on the object, presumably making it "invalid" |
void |
setHolding(boolean hold)
Sets the hold state for an object. |
void |
setName(java.lang.String name)
Sets the Name property |
void |
setParent(ScienceObjectNodeModel model)
Sets the parent of this object. |
void |
setTracing(boolean trace)
Sets the tracing level for this object. |
Methods inherited from interface jsky.util.ReplaceablePropertyChangeListener |
---|
replaceObject |
Methods inherited from interface java.beans.PropertyChangeListener |
---|
propertyChange |
Field Detail |
---|
static final java.lang.String NAME_PROPERTY
static final java.lang.String VALID_PROPERTY
static final java.lang.String PENDING_PROPERTY
Method Detail |
---|
ScienceObjectNodeModel getParent()
void setParent(ScienceObjectNodeModel model)
java.lang.Object clone()
boolean isHolding()
Internally, when holding is set to true a ScienceObjectModel should not perform the update process, but should track whether or not updates are needed.
See AbstractScienceObjectNode for an implementation example.
void setHolding(boolean hold)
boolean isTracing()
void setTracing(boolean trace)
isTracing()
void addPropertyChangeListener(ReplaceablePropertyChangeListener listener)
void removePropertyChangeListener(ReplaceablePropertyChangeListener listener)
void clearAllListeners()
void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
java.lang.String getName()
void setName(java.lang.String name)
java.lang.String getLabel()
java.lang.Exception getException()
void setException(java.lang.Exception e)
boolean isValid()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |