Class ConcreteCall


  • public final class ConcreteCall
    extends java.lang.Object
    The ConcreteCall class describes an instruction call with fixed arguments which can be simulated. It also can hold objects are used by processing logic to do some housekeeping job.
    • Method Detail

      • newText

        public static ConcreteCall newText​(java.lang.String text)
      • newComment

        public static ConcreteCall newComment​(java.lang.String comment)
      • isExecutable

        public boolean isExecutable()
      • isInstruction

        public boolean isInstruction()
        Checks whether the instruction call corresponds to a printable instruction (executable instruction or pseudo instruction). This method is used to calculate statistics on instruction number.
        Returns:
        true if the call corresponds to a printable instruction or false if it is used to housekeeping purposes.
      • execute

        public java.lang.String execute​(ProcessingElement processingElement)
        Executes the instruction call on the specified processing element.
        Parameters:
        processingElement - Processing element instance to be used for execution.
        Returns:
        exception name if was interrupted.
      • getExecutionCount

        public int getExecutionCount()
      • resetExecutionCount

        public void resetExecutionCount()
      • getText

        public java.lang.String getText()
      • getImage

        public java.lang.String getImage()
      • getDirectives

        public java.util.List<Directive> getDirectives()
      • getLabels

        public java.util.List<Label> getLabels()
      • getLabelReferences

        public java.util.List<LabelReference> getLabelReferences()
      • getOutputs

        public java.util.List<Output> getOutputs()
      • getByteSize

        public int getByteSize()
      • getAddress

        public java.math.BigInteger getAddress()
      • setAddress

        public void setAddress​(java.math.BigInteger address)