|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.data.properties.PropertyMoMLHandler
public class PropertyMoMLHandler
This is an attribute used by the PropertySolver to issue MoML requests and make changes to the model. These changes include addition, update, or deletion of property annotations and display of the property results. This is designed to be contained by an instance of PropertySolver or a subclass of PropertySolver. It contains parameters that allow users to configure the display of the property annotation results.
| Red (mankit) |
| Red (mankit) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
|---|
NamedObj.ContainedObjectsIterator |
| Field Summary | |
|---|---|
Parameter |
highlight
Indicate whether the _highlightColor attributes will be set. |
Parameter |
showText
Indicate whether the _showInfo attributes will be set. |
| Fields inherited from class ptolemy.kernel.util.NamedObj |
|---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| Constructor Summary | |
|---|---|
PropertyMoMLHandler(NamedObj container,
java.lang.String name)
Construct a PropertyMoMLHandler with the specified container and name. |
|
| Method Summary | |
|---|---|
private java.lang.String |
_completeHierarchyInMoML(NamedObj namedObj,
java.lang.String request)
Wrap the given MoML request string with extra enclosing tags according to the relation of the specified namedObj to the toplevel context. |
private java.lang.String |
_getMoMLHighlightString(NamedObj propertyable,
Property property)
Return a MoML request string that create or update the _highlightColor attribute of the given property-able object, according to the given property value. |
private java.lang.String |
_getMoMLShowInfoString(NamedObj propertyable,
Property property)
Return a MoML request string that creates or updates the _showInfo attribute of the given property-able object, according to the given property value. |
private void |
_requestChange(java.lang.String moml)
Create and request an undo-able MoMLChangeRequest for the given MoML string. |
void |
clearAnnotations()
Clear every manual annotated constraints associated with the solver use-case. |
void |
clearDisplay()
Remove the highlighting and visible annotations for all property-able objects. |
void |
clearProperties()
Clear the property annotations of associated with the container solver. |
void |
highlightProperties()
Highlight all property-able objects with the specified colors for their property values, if the highlight parameter value is true. |
void |
showProperties()
If the value of the showText parameter is set to true, show all property values visually. |
| Methods inherited from class ptolemy.kernel.util.Attribute |
|---|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Parameter showText
public Parameter highlight
| Constructor Detail |
|---|
public PropertyMoMLHandler(NamedObj container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
container - The container.name - The name of the PropertyMoMLHandler.
IllegalActionException - If the PropertyMoMLHandler is not of an
acceptable attribute for the container.
NameDuplicationException - If the name coincides with
an attribute already in the container.| Method Detail |
|---|
public void clearAnnotations()
throws IllegalActionException
IllegalActionException - Thrown if an error occurs
when removing the annotation attributes.public void clearDisplay()
public void clearProperties()
public void highlightProperties()
public void showProperties()
private java.lang.String _completeHierarchyInMoML(NamedObj namedObj,
java.lang.String request)
namedObj - The specified namedObj.request - The given MoML request.
private java.lang.String _getMoMLHighlightString(NamedObj propertyable,
Property property)
propertyable - The given property-able object.property - The given property.
private java.lang.String _getMoMLShowInfoString(NamedObj propertyable,
Property property)
propertyable - The given property-able object.property - The given property.private void _requestChange(java.lang.String moml)
moml - The given moml string that contains the change request.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||