Package ptolemy.data.ontologies.lattice
Class ConceptTermManager
- java.lang.Object
 - 
- ptolemy.data.ontologies.lattice.ConceptTermManager
 
 
- 
- All Implemented Interfaces:
 ConceptTermFactory
public class ConceptTermManager extends java.lang.Object implements ConceptTermFactory
A class representing a property term manager.- Since:
 - Ptolemy II 10.0
 - Version:
 - $Id$
 - Author:
 - Man-Kit Leung
 - Pt.AcceptedRating:
 - Red (mankit)
 - Pt.ProposedRating:
 - Red (mankit)
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description classConceptTermManager.InequalityTermAn InequalityTerm class that is used for ontology analysis and contains a reference to the associated object for the InequalityTerm. 
- 
Field Summary
Fields Modifier and Type Field Description protected LatticeOntologySolver_solverThe LatticeOntologySolver that contains this PropertyTermManager. 
- 
Constructor Summary
Constructors Constructor Description ConceptTermManager(LatticeOntologySolver solver)Construct a new ptolemy.graph.InequalityTerm factory. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<InequalityTerm>getAffectedTerms(InequalityTerm updateTerm)Get the list of affected InequalityTerms from the PropertyTermManager.InequalityTermgetConceptTerm(java.lang.Object object)Return the property term for the given object.java.util.List<InequalityTerm>terms()Return a list of all the inequality terms contained in the PropertyTermManager. 
 - 
 
- 
- 
Field Detail
- 
_solver
protected LatticeOntologySolver _solver
The LatticeOntologySolver that contains this PropertyTermManager. 
 - 
 
- 
Constructor Detail
- 
ConceptTermManager
public ConceptTermManager(LatticeOntologySolver solver)
Construct a new ptolemy.graph.InequalityTerm factory.- Parameters:
 solver- the LatticeOntologySolver that contains this PropertyTermManager
 
 - 
 
- 
Method Detail
- 
terms
public java.util.List<InequalityTerm> terms()
Return a list of all the inequality terms contained in the PropertyTermManager.- Returns:
 - The list of inequality terms for all objects in the model
 
 
- 
getConceptTerm
public InequalityTerm getConceptTerm(java.lang.Object object)
Return the property term for the given object. If the given object is null or a property term itself, it returns the given object. Otherwise, it checks its cache if a term object was created previously. Returns the property term if it is found; otherwise, it creates and caches a new property term before returning it.- Specified by:
 getConceptTermin interfaceConceptTermFactory- Parameters:
 object- The given object.- Returns:
 - The property term.
 
 
- 
getAffectedTerms
public java.util.List<InequalityTerm> getAffectedTerms(InequalityTerm updateTerm) throws IllegalActionException
Get the list of affected InequalityTerms from the PropertyTermManager. FIXME: Not really sure what this method is used for. It appears to always return an empty ArrayList.- Parameters:
 updateTerm- This parameter doesn't appear to be used- Returns:
 - The list of inequality terms that are affected by the OntologySolver
 - Throws:
 IllegalActionException- If an exception is thrown
 
 - 
 
 -