Interface TestIdentityAction

    • Method Detail

      • setFirst

        void setFirst​(InputPin value)
        Sets the value of the 'First' containment reference.
        Parameters:
        value - the new value of the 'First' containment reference.
        See Also:
        getFirst()
      • createFirst

        InputPin createFirst​(String name,
                             Type type,
                             org.eclipse.emf.ecore.EClass eClass)
        Creates a new InputPin, with the specified 'Name', and 'Type', and sets the 'First' containment reference.
        Parameters:
        name - The 'Name' for the new InputPin, or null.
        type - The 'Type' for the new InputPin, or null.
        eClass - The Ecore class of the InputPin to create.
        Returns:
        The new InputPin.
        See Also:
        getFirst()
      • createFirst

        InputPin createFirst​(String name,
                             Type type)
        Creates a new InputPin,with the specified 'Name', and 'Type', and sets the 'First' containment reference.
        Parameters:
        name - The 'Name' for the new InputPin, or null.
        type - The 'Type' for the new InputPin, or null.
        Returns:
        The new InputPin.
        See Also:
        getFirst()
      • setSecond

        void setSecond​(InputPin value)
        Sets the value of the 'Second' containment reference.
        Parameters:
        value - the new value of the 'Second' containment reference.
        See Also:
        getSecond()
      • createSecond

        InputPin createSecond​(String name,
                              Type type,
                              org.eclipse.emf.ecore.EClass eClass)
        Creates a new InputPin, with the specified 'Name', and 'Type', and sets the 'Second' containment reference.
        Parameters:
        name - The 'Name' for the new InputPin, or null.
        type - The 'Type' for the new InputPin, or null.
        eClass - The Ecore class of the InputPin to create.
        Returns:
        The new InputPin.
        See Also:
        getSecond()
      • createSecond

        InputPin createSecond​(String name,
                              Type type)
        Creates a new InputPin,with the specified 'Name', and 'Type', and sets the 'Second' containment reference.
        Parameters:
        name - The 'Name' for the new InputPin, or null.
        type - The 'Type' for the new InputPin, or null.
        Returns:
        The new InputPin.
        See Also:
        getSecond()
      • setResult

        void setResult​(OutputPin value)
        Sets the value of the 'Result' containment reference.
        Parameters:
        value - the new value of the 'Result' containment reference.
        See Also:
        getResult()
      • createResult

        OutputPin createResult​(String name,
                               Type type)
        Creates a new OutputPin,with the specified 'Name', and 'Type', and sets the 'Result' containment reference.
        Parameters:
        name - The 'Name' for the new OutputPin, or null.
        type - The 'Type' for the new OutputPin, or null.
        Returns:
        The new OutputPin.
        See Also:
        getResult()
      • validateNoType

        boolean validateNoType​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                               Map context)
        The input pins have no type. self.first.type->size() = 0 and self.second.type->size() = 0
      • validateMultiplicity

        boolean validateMultiplicity​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                     Map context)
        The multiplicity of the input pins is 1..1. self.first.multiplicity.is(1,1) and self.second.multiplicity.is(1,1)
      • validateResultIsBoolean

        boolean validateResultIsBoolean​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                        Map context)
        The type of the result is Boolean. self.result.type.oclIsTypeOf(Boolean)