class StandardMicroInstruction implements MicroInstruction
{
+ private final Runnable updateCallback;
private MicroInstructionParameter[] parameters;
- StandardMicroInstruction(MicroInstructionParameter... parameters)
+ StandardMicroInstruction(Runnable updateCallback, MicroInstructionParameter... parameters)
{
+ this.updateCallback = updateCallback;
this.parameters = parameters;
}
-
+
/**
* @throws IndexOutOfBoundsException
*/
public void setParameter(int index, MicroInstructionParameter param)
{
parameters[index] = param;
+ updateCallback.run();
}
}