uk.ac.man.cs.rainbow.simulator.rasm
Class Lt

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.simulator.Instruction
        |
        +--uk.ac.man.cs.rainbow.simulator.RASM.Comparison
              |
              +--uk.ac.man.cs.rainbow.simulator.rasm.Lt
All Implemented Interfaces:
Serializable

public class Lt
extends RASM.Comparison

Less than.

x y x<y

See Also:
Data.Comparable, Serialized Form

Inner classes inherited from class uk.ac.man.cs.rainbow.simulator.Instruction
Instruction.MACRO
 
Constructor Summary
Lt()
           
Lt(RASMCode code)
           
 
Method Summary
protected  boolean compare(int compareResult)
          Determine the meaning of the result of a comparison between values.
 String toString()
           
 
Methods inherited from class uk.ac.man.cs.rainbow.simulator.RASM.Comparison
execute
 
Methods inherited from class uk.ac.man.cs.rainbow.simulator.Instruction
addClass, getInstruction, getInstruction, getInstruction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Lt

public Lt()

Lt

public Lt(RASMCode code)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

compare

protected boolean compare(int compareResult)
Description copied from class: RASM.Comparison
Determine the meaning of the result of a comparison between values.
Overrides:
compare in class RASM.Comparison
Following copied from class: uk.ac.man.cs.rainbow.simulator.RASM.Comparison
Parameters:
executeResults - Negative if the first argument is less than the second, positive if the first argument is greater than the second, and zero otherwise.
Returns:
The boolean to push onto the stack.