Class InfiniteConceptRepresentative

    • Constructor Detail

    • Method Detail

      • clone

        public java.lang.Object clone​(Workspace workspace)
                               throws java.lang.CloneNotSupportedException
        Clone the InfiniteConceptRepresentative into the specified workspace. The result is a new InfiniteConceptRepresentative that is cloned normally with the superclass ComponentEntity clone() method with the exception that its private set of instantiated infinite concepts is not copied to the new object. This is necessary to prevent the cloned InfiniteConceptRepresentative from having references to the original representative's set of instantiated infinite concepts.
        Overrides:
        clone in class ComponentEntity
        Parameters:
        workspace - The workspace for the cloned object.
        Returns:
        A new instance of InfiniteConceptRepresentative.
        Throws:
        java.lang.CloneNotSupportedException - If one of the attributes cannot be cloned.
        See Also:
        NamedObj.exportMoML(Writer, int, String), NamedObj.setDeferringChangeRequests(boolean)
      • getInfiniteConceptByString

        public InfiniteConcept getInfiniteConceptByString​(java.lang.String infiniteConceptString)
                                                   throws IllegalActionException
        Return the InfiniteConcept that is represented by the given string. If the infinite concept has already been instantiated, return it. If not, instantiate a new infinite concept for the given string and return it.
        Parameters:
        infiniteConceptString - The specified string from which to return an infinite concept for this representative.
        Returns:
        The InfiniteConcept that is represented by the given string.
        Throws:
        IllegalActionException - Thrown if there is an error finding or creating the infinite concept from the given string.
      • getInstantiatedInfiniteConcepts

        public java.util.Set<InfiniteConcept> getInstantiatedInfiniteConcepts()
        Return the set of instantiated infinite concepts that are represented by this concept.
        Returns:
        The set of instantiated infinite concepts that are represented by this concept.
      • containsThisInfiniteConceptString

        public abstract boolean containsThisInfiniteConceptString​(java.lang.String infiniteConceptString)
        Return true if the string can represent an infinite concept for this representative, false otherwise. Derived classes must implement this method based on how they generate their infinite concepts.
        Parameters:
        infiniteConceptString - The string that represents the infinite concept.
        Returns:
        true if the string can represent an infinite concept for this representative, false otherwise.
      • _clearInstantiatedInfiniteConcepts

        protected void _clearInstantiatedInfiniteConcepts()
                                                   throws IllegalActionException
        Clear the set of instantiated infinite concepts for this representative.
        Throws:
        IllegalActionException - Thrown if there is a problem setting the containers of the infinite concepts to null.
      • _createInfiniteConceptInstance

        protected abstract InfiniteConcept _createInfiniteConceptInstance​(java.lang.String infiniteConceptString)
                                                                   throws IllegalActionException
        Create a new infinite concept for the given infinite concept string. Derived classes must implement this method to enable new infinite concepts to be generated from their representatives.
        Parameters:
        infiniteConceptString - The specified concept string that represents the infinite concept to be created.
        Returns:
        The newly created InfiniteConcept object.
        Throws:
        IllegalActionException - Thrown if the infinite concept cannot be created.