public abstract class OntologySolver extends OntologySolverBase implements Testable
| Red (mankit) |
| Red (mankit) |
NamedObj.ContainedObjectsIterator| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
_eol
The system-specific end-of-line character.
|
protected OntologyMoMLHandler |
_momlHandler
The handler that issues MoML requests and makes model changes.
|
_adapterStore, _nonSettables, _ontologySolverUtilities, _resolvedProperties, ontologySolverUtilitiesWrapper_model, modelURL_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS| Constructor and Description |
|---|
OntologySolver(NamedObj container,
java.lang.String name)
Construct an OntologySolver with the specified container and name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkErrors()
Check whether there are any regression testing errors after resolving
properties.
|
void |
checkResolutionErrors()
Check whether there are any OntologySolver resolution errors after resolving
properties.
|
java.lang.Object |
clone(Workspace workspace)
Clone the object into the specified workspace.
|
void |
configure(java.net.URL base,
java.lang.String source,
java.lang.String text)
Construct and configure the contained model with the specified source and
text.
|
void |
displayConcepts()
If the value of the highlight parameter is set to true, highlight the
given property-able object with the specified color associated with the
given property, if there exists any.
|
OntologyMoMLHandler |
getMoMLHandler()
Return the PropertyMoMLHandler for this OntologySolver.
|
void |
invokeSolver()
Invoke the solver directly, and display any concepts resolved by this
solver.
|
void |
invokeSolver(boolean displayProperties)
Invoke the solver directly, with a choice as to whether or not this
solver should display its resolved concepts.
|
boolean |
isSettable(java.lang.Object object)
Return true if the specified property-able object is settable; otherwise
false which means that its concept has been set by
OntologyAdapter.setEquals().
|
void |
reset()
Reset the solver.
|
_getAdapter, _getPackageName, _toplevel, cleanConstants, clearResolvedConcept, getAdapter, getAllAdapters, getAllConceptableNamedObjs, getAllContainedOntologies, getAllPropertyables, getAllSolvers, getAttribute, getConcept, getOntology, getOntologySolverUtilities, getParser, getParseTree, initialize, markAsNonSettable, resetAll, resolveConcepts, setConcept, setOntologySolverUtilities_exportMoMLContents, attributeChanged, getConfigureSource, getConfigureText, getContainedModel_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspaceprotected OntologyMoMLHandler _momlHandler
protected static final java.lang.String _eol
public OntologySolver(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container - The specified container.name - The specified name.IllegalActionException - If the PropertySolver is not of an
acceptable attribute for the container.NameDuplicationException - If the name coincides with an
attribute already in the container.public void checkErrors()
throws OntologyResolutionException
OntologyResolutionException - Thrown if there are any
errors from running the OntologySolver in the regression test.public void checkResolutionErrors()
throws IllegalActionException
IllegalActionException - If an exception is thrown by calling checkErrors()public java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
clone in class OntologySolverBaseworkspace - The workspace for the new object.java.lang.CloneNotSupportedException - If any of the attributes
cannot be cloned.NamedObj.exportMoML(Writer, int, String),
NamedObj.setDeferringChangeRequests(boolean)public void configure(java.net.URL base,
java.lang.String source,
java.lang.String text)
throws java.lang.Exception
configure in interface Configurableconfigure in class MoMLModelAttributebase - The base URL for relative references, or null if not known.source - The URI of a document providing source, which is ignored in this class.text - The MoML description.java.lang.Exception - If the parsing fails.public void displayConcepts()
throws IllegalActionException
IllegalActionException - Thrown if an error occurs when creating
or setting the value for the _showInfo parameter in the property-able
object. Thrown if an error occurs when creating or setting the value for
the highlightColor attribute in the property-able object.public OntologyMoMLHandler getMoMLHandler()
public void invokeSolver()
throws IllegalActionException
IllegalActionException - If there is no ontology.public void invokeSolver(boolean displayProperties)
throws IllegalActionException
displayProperties - True if the solver should display its
properties; false otherwise (for example, if it is called
from another solver)IllegalActionException - If there is no ontology.public boolean isSettable(java.lang.Object object)
object - The specified property-able object.public void reset()
reset in class OntologySolverBase