| java.lang.Object org.cougaar.core.qos.frame.Frame org.cougaar.core.qos.frame.DataFrame
All known Subclasses: org.cougaar.core.qos.frame.topology.Thing, org.cougaar.core.qos.frame.RelationFrame, org.cougaar.core.qos.frame.scale.Thing,
DataFrame | abstract public class DataFrame extends Frame implements PropertyChangeListener(Code) | | This extension to
Frame is the basic representation of a frame
representing data (cf
PrototypeFrame ). Classes generated from
prototype xml extend this one, either directly or indirectly.
|
Inner Class :public class ReadLock extends Object | |
Method Summary | |
void | addPathDependent(DataFrame dependent, String slot) Informs this frame that the given data frame depends on it (ie, if
this frame changes, a dependent slot will change because the path
will be different). | public void | addPropertyChangeListener(PropertyChangeListener pcl) | void | addRelationDependency(RelationFrame rframe, String slot) Informs this frame that the path-derived value of the given slot
depends on the given relationship (ie, if the relationship changes,
the value of the slot will change because the path will be
different). | void | addRelationSlotDependency(DataFrame frame, String my_slot, String owner_slot) Informs this frame that the path-derived value of the my_slot depends
on the value of owner_slot in the given frame (ie if the owner_slot
changes in frame, my_slot will change). | void | addToFrameSet(FrameSet frameSet) | void | clearRelationDependencies(String slot) Clear all inverse path dependencies for the given slot. | protected void | collectContainerSlotValues(Properties props) | protected void | collectSlotDescriptions(Map<String, SlotDescription> map) | protected void | collectSlotNames(Set<String> slots) | protected void | collectSlotValues(Properties props) | void | containerChange(DataFrame old_container, DataFrame new_container) | public DataFrame | containerFrame() | public int | countRelations(String role, String relation) | protected String | displayString() | public DataFrame | findFirstRelation(String role, String relation) Parameters: role - FrameSet.PARENT or FrameSet.CHILD Parameters: relation - The name of a relationship prototype Some frame to which this one is related and in which this oneplays the given role. | protected static FrameMaker | findFrameMaker(String pkg, String proto) | public Set<DataFrame> | findRelations(String role, String relation) | public Map<RelationFrame, DataFrame> | findRelationshipFrames(String role, String relation) | protected void | fireChange(String property, Object old_value, Object new_value) | protected void | fireContainerChanges(DataFrame old_frame, DataFrame new_frame) | protected void | fireContainerChanges(DataFrame new_frame) | protected Boolean | force_Boolean(Object x) | protected Double | force_Double(Object x) | protected Float | force_Float(Object x) | protected Integer | force_Integer(Object x) | protected Long | force_Long(Object x) | protected Metric | force_Metric(Object x) | protected String | force_String(Object x) | protected boolean | force_boolean(Object x) | protected double | force_double(Object x) | protected float | force_float(Object x) | protected int | force_int(Object x) | protected long | force_long(Object x) | public Properties | getAllSlots() | public String | getContainerKind() | protected Object | getInheritedValue(Frame origin, String slot) | public Properties | getLocalSlots() name/value pairs of the local slots. | abstract protected Object | getLocalValue(String slot) | protected static Logger | getLogger() | protected synchronized Object | getProperty(String slot) | Object | getValue(Frame origin, String slot) | Object | get_rlock() | abstract protected void | initializeLocalValue(String slot, Object value) | public void | initializeValues(Properties values) | public boolean | isa(String kind) | public static DataFrame | newFrame(FrameSet frameSet, String proto, UID uid, Properties initial_values) | public static DataFrame | newFrame(String pkg, FrameSet frameSet, String proto, UID uid, Properties values) | void | notifyAllPathDependents() | void | notifyPathDependents(String owner_slot) | void | pathDependencyChange(String slot) | protected void | postInitialize() | public void | propertyChange(PropertyChangeEvent event) | protected static void | registerFrameMaker(String pkg, String proto, FrameMaker maker) | void | removePathDependent(DataFrame dependent, String slot) Informs this frame that the given data frame no longer depends on it. | protected synchronized void | removeProperty(String slot) | public void | removePropertyChangeListener(PropertyChangeListener pcl) | void | removeRelationDependency(RelationFrame rframe, String slot) Informs this frame that the path-derived value of the given slot no
longer depends on the given relationship. | abstract protected void | setLocalValue(String slot, Object value) | protected synchronized void | setProperty(String slot, Object value) | public void | setValue(String slot, Object value) Updates the given slot value. | public Map<String, SlotDescription> | slotDescriptions() | protected void | slotInitialized(String slot, Object value) | protected void | slotModified(String slot, Object old_value, Object new_value, boolean notify_listeners, boolean notify_blackboard) | public String | toString() | void | write(PrintWriter writer, int indentation, int offset, boolean allSlots) | void | writeSlots(PrintWriter writer, Map slots, int indentation, int offset) |
addPathDependent | void addPathDependent(DataFrame dependent, String slot)(Code) | | Informs this frame that the given data frame depends on it (ie, if
this frame changes, a dependent slot will change because the path
will be different). If this frame is a relation, the slot arg is the
dependent slot, since any change at all to a relations frame triggers
a dependency change. If this frame is the final data frame in a path,
the slot arg is that frame's slot: only changes to that slot are
relevant.
|
addRelationDependency | void addRelationDependency(RelationFrame rframe, String slot)(Code) | | Informs this frame that the path-derived value of the given slot
depends on the given relationship (ie, if the relationship changes,
the value of the slot will change because the path will be
different). Caller should lock rlock.
|
addRelationSlotDependency | void addRelationSlotDependency(DataFrame frame, String my_slot, String owner_slot)(Code) | | Informs this frame that the path-derived value of the my_slot depends
on the value of owner_slot in the given frame (ie if the owner_slot
changes in frame, my_slot will change).
|
clearRelationDependencies | void clearRelationDependencies(String slot)(Code) | | Clear all inverse path dependencies for the given slot. Caller should
lock rlock
|
collectContainerSlotValues | protected void collectContainerSlotValues(Properties props)(Code) | | |
containerFrame | public DataFrame containerFrame()(Code) | | the container frame, if any, where 'containment' is definedby the frame's frameset. |
countRelations | public int countRelations(String role, String relation)(Code) | | Parameters: role - FrameSet.PARENT or FrameSet.CHILD Parameters: relation - The name of a relationship prototype the number of RelationFrames that match the given prototypeand in which this frame plays the given role. |
findFirstRelation | public DataFrame findFirstRelation(String role, String relation)(Code) | | Parameters: role - FrameSet.PARENT or FrameSet.CHILD Parameters: relation - The name of a relationship prototype Some frame to which this one is related and in which this oneplays the given role. If more than one such frame exists in the frameset, an arbitrary one is selected. |
fireContainerChanges | protected void fireContainerChanges(DataFrame new_frame)(Code) | | |
force_boolean | protected boolean force_boolean(Object x)(Code) | | |
getContainerKind | public String getContainerKind()(Code) | | the name of the container prototype, if any, where'containment' is defined by the frame's frameset. |
getLocalSlots | public Properties getLocalSlots()(Code) | | name/value pairs of the local slots. In this context "local"means: include slots the prototype tree but not from thecontainer tree. |
initializeLocalValue | abstract protected void initializeLocalValue(String slot, Object value)(Code) | | |
isa | public boolean isa(String kind)(Code) | | true iff this frame matches the given prototype |
notifyAllPathDependents | void notifyAllPathDependents()(Code) | | |
notifyPathDependents | void notifyPathDependents(String owner_slot)(Code) | | |
pathDependencyChange | void pathDependencyChange(String slot)(Code) | | |
postInitialize | protected void postInitialize()(Code) | | |
removePathDependent | void removePathDependent(DataFrame dependent, String slot)(Code) | | Informs this frame that the given data frame no longer depends on it.
|
removeProperty | protected synchronized void removeProperty(String slot)(Code) | | |
removeRelationDependency | void removeRelationDependency(RelationFrame rframe, String slot)(Code) | | Informs this frame that the path-derived value of the given slot no
longer depends on the given relationship. Caller should lock rlock.
|
setValue | public void setValue(String slot, Object value)(Code) | | Updates the given slot value.
|
slotModified | protected void slotModified(String slot, Object old_value, Object new_value, boolean notify_listeners, boolean notify_blackboard)(Code) | | |
write | void write(PrintWriter writer, int indentation, int offset, boolean allSlots)(Code) | | |
|
|