public class Instruction extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Instruction.Command
Enum class of allowed command.
|
| Constructor and Description |
|---|
Instruction(Instruction.Command c,
String measure,
String thrs,
int source,
int target,
int result)
Constructor of Instruction class.
|
| Modifier and Type | Method and Description |
|---|---|
Instruction |
clone() |
boolean |
equals(Object other)
Compares the current instruction with another instruction.
|
Instruction.Command |
getCommand()
Returns the command of the instruction.
|
String |
getMainThreshold()
Returns the mainThreshold of the instruction.
|
String |
getMeasureExpression()
Returns the measure expression of the instruction.
|
int |
getResultIndex()
Returns the result index of the instruction.
|
int |
getSourceIndex()
Returns the resource index of the instruction.
|
int |
getTargetIndex()
Returns the target index of the instruction.
|
String |
getThreshold()
Returns the threshold of the instruction.
|
int |
hashCode() |
void |
setCommand(Instruction.Command command)
Sets the command of the instruction.
|
void |
setMainThreshold(String threshold)
Sets the mainThreshold of the instruction.
|
void |
setMeasureExpression(String measureExpression)
Sets the measure expression of the instruction.
|
void |
setResultIndex(int resultIndex)
Sets the result index of the instruction.
|
void |
setSourceIndex(int resourceIndex)
Sets the source index of the instruction.
|
void |
setTargetIndex(int targetIndex)
Sets the target index of the instruction.
|
void |
setThreshold(String threshold)
Sets the threshold of the instruction.
|
String |
toString()
String representation of Instruction.
|
public Instruction(Instruction.Command c, String measure, String thrs, int source, int target, int result)
c - Commandmeasure - Measure expressionthrs - Thresholdsource - Source indextarget - Target indexresult - Result indexpublic int getResultIndex()
public void setResultIndex(int resultIndex)
resultIndex - The resultIndex to setpublic Instruction.Command getCommand()
public void setCommand(Instruction.Command command)
command - The command to setpublic String getMeasureExpression()
public void setMeasureExpression(String measureExpression)
measureExpression - The measure expression to setpublic int getSourceIndex()
public void setSourceIndex(int resourceIndex)
resourceIndex - The resourceIndex to setpublic int getTargetIndex()
public void setTargetIndex(int targetIndex)
targetIndex - The targetIndex to setpublic String getThreshold()
public void setThreshold(String threshold)
threshold - The threshold to setpublic String getMainThreshold()
public void setMainThreshold(String threshold)
threshold - The mainThreshold to setpublic boolean equals(Object other)
public Instruction clone()
Copyright © 2018. All rights reserved.