Class AtomicActorMatcher

    • Method Detail

      • getCriteriaAttribute

        public GTIngredientsAttribute getCriteriaAttribute()
        Return the attribute that stores all the criteria for this matcher.
        Specified by:
        getCriteriaAttribute in interface GTEntity
        Returns:
        The attribute that stores all the criteria.
      • getDefaultIconDescription

        public java.lang.String getDefaultIconDescription()
        Return a string that contains the SVG icon description ("<svg>...</svg>") for this matcher. This icon description is the default icon for the matcher, which may be changed by the criteria.
        Specified by:
        getDefaultIconDescription in interface GTEntity
        Returns:
        The icon description.
      • getOperationsAttribute

        public GTIngredientsAttribute getOperationsAttribute()
        Return the attribute that stores all the operations for this matcher.
        Specified by:
        getOperationsAttribute in interface GTEntity
        Returns:
        The attribute that stores all the operations.
      • getPatternObjectAttribute

        public PatternObjectAttribute getPatternObjectAttribute()
        Return the attribute that stores the name of the corresponding entity in the pattern of the same TransformationRule, if this entity is in the replacement, or null otherwise.
        Specified by:
        getPatternObjectAttribute in interface GTEntity
        Returns:
        The attribute that stores the name of the corresponding entity.
        See Also:
        labelSet()
      • labelSet

        public java.util.Set<java.lang.String> labelSet()
        Return the set of names of ingredients contained in this entity that can be resolved.
        Specified by:
        labelSet in interface GTEntity
        Returns:
        The set of names.
      • match

        public boolean match​(NamedObj object)
        Test whether this AtomicActorMatcher can match the given object. The matching is shallow in the sense that objects contained by this matcher need not match the corresponding objects in the given object for the return result to be true. The return result is true if and only if the given object is an instance of ComponentEntity.
        Specified by:
        match in interface GTEntity
        Parameters:
        object - The NamedObj.
        Returns:
        Whether this AtomicActorMatcher can match the given object.
      • _exportMoMLContents

        protected void _exportMoMLContents​(java.io.Writer output,
                                           int depth)
                                    throws java.io.IOException
        Write a MoML description of the contents of this object, which in this class are the attributes plus the ports. This method is called by exportMoML(). Each description is indented according to the specified depth and terminated with a newline character.
        Overrides:
        _exportMoMLContents in class Entity<TypedIOPort>
        Parameters:
        output - The output to write to.
        depth - The depth in the hierarchy, to determine indenting.
        Throws:
        java.io.IOException - If an I/O error occurs.
        See Also:
        NamedObj.exportMoML(Writer, int)