public class InstructionAddNode extends Instruction
Instruction.Type
COST_UNIT, COST_ZERO
Constructor and Description |
---|
InstructionAddNode(java.lang.String newLabel,
int siblingsCount)
Creates a new instance of an add node instruction.
|
Modifier and Type | Method and Description |
---|---|
EditAddNode |
generateEditOperation()
Translates the given repairng instruction into the edit operation.
|
int |
getInstructionCost()
Returns the cost of the particular repairing instruction.
|
Instruction.Type |
getInstructionType()
Returns the type of the repairing instruction.
|
java.lang.String |
getNewLabel()
Returns the associated new label.
|
int |
getSiblingsCount()
Returns the associated number of sibling nodes.
|
java.lang.String |
getTitleString()
Returns the readable title of the given repairing instruction.
|
public InstructionAddNode(java.lang.String newLabel, int siblingsCount)
newLabel
- New label value.siblingsCount
- Number of sibling nodes to be pushed lower.public java.lang.String getNewLabel()
public int getSiblingsCount()
public Instruction.Type getInstructionType()
Instruction
getInstructionType
in class Instruction
public int getInstructionCost()
Instruction
getInstructionCost
in class Instruction
public java.lang.String getTitleString()
Instruction
getTitleString
in class Instruction
public EditAddNode generateEditOperation()
Instruction
generateEditOperation
in class Instruction