Class Assign

    • Constructor Detail

      • Assign

        public Assign​(ModelElement parent)
        Parameters:
        parent -
      • Assign

        public Assign​(ModelElement parent,
                      java.lang.String name)
        Parameters:
        parent -
        name -
    • Method Detail

      • execute

        public void execute()
        Description copied from class: ProcessCommand
        The execute method is responsible for executing the command
        Specified by:
        execute in class ProcessCommand
      • addAssignment

        public void addAssignment​(SetValueIfc leftSide,
                                  GetValueIfc rightSide)
        Adds an assignment to the assign command
        Parameters:
        leftSide - , the thing being assigned to
        rightSide - the thing being used to determine the assigned value
      • addAssignment

        public void addAssignment​(java.lang.String attributeName,
                                  GetValueIfc rightSide)
        Adds an attribute assignment to the assign command Note: The attribute name should have been added to the entity
        Parameters:
        attributeName - the name of the attribute to be assigned
        rightSide - the thing being used to determine the assigned value