Class ProductLatticeConcept

    • Constructor Detail

      • ProductLatticeConcept

        public ProductLatticeConcept​(CompositeEntity ontology,
                                     java.lang.String name)
                              throws NameDuplicationException,
                                     IllegalActionException
        Create a new product lattice concept with the specified name and the specified product lattice ontology.
        Parameters:
        ontology - The specified product lattice ontology where this concept resides.
        name - The specified name for the concept.
        Throws:
        NameDuplicationException - If the ontology already contains a concept with the specified name.
        IllegalActionException - If the base class throws it.
      • ProductLatticeConcept

        public ProductLatticeConcept​(ProductLatticeOntology ontology,
                                     java.lang.String name,
                                     java.util.List<Concept> conceptTuple)
                              throws NameDuplicationException,
                                     IllegalActionException
        Create a new product lattice concept with the specified name and the specified product lattice ontology.
        Parameters:
        ontology - The specified product lattice ontology where this concept resides.
        name - The specified name for the concept.
        conceptTuple - The list of concepts that compose this product lattice concept.
        Throws:
        NameDuplicationException - If the ontology already contains a concept with the specified name.
        IllegalActionException - If the base class throws it.
    • Method Detail

      • getColor

        public ColorAttribute getColor()
                                throws IllegalActionException
        Return the color attribute associated with this ProductLatticeConcept. This depends on the component color ontology that is set by the container ProductLatticeOntology.setColorOntology(Ontology). The color of the concept will be derived from the color of the concept in the tuple from the specified component color ontology.
        Overrides:
        getColor in class Concept
        Returns:
        The current color attribute for this product lattice concept.
        Throws:
        IllegalActionException - Thrown if there is an error getting the color from the component concept value.
      • getComponentConceptValue

        public Concept getComponentConceptValue​(Ontology ontology)
                                         throws IllegalActionException
        Return the first concept that is a component of this product lattice ontology concept tuple and belongs to the given ontology.
        Parameters:
        ontology - The specified ontology from which to get the component concept. This should be one of the component ontologies from the product lattice ontology for this concept.
        Returns:
        The concept from the concept.
        Throws:
        IllegalActionException - If the specified ontology is not a component of the product lattice ontology to which this concept belongs.
      • getConceptTuple

        public java.util.List<Concept> getConceptTuple()
        Return the list of concepts that compose this product lattice concept.
        Returns:
        The list of concepts that compose this product lattice concept.
      • getOntology

        public Ontology getOntology()
        Return the product lattice ontology that contains this concept.
        Overrides:
        getOntology in class Concept
        Returns:
        The containing product lattice ontology.
      • toString

        public java.lang.String toString()
        Return the string that represents this concept, its name.
        Overrides:
        toString in class FiniteConcept
        Returns:
        The string name that represents this concept.