import java.util.ArrayList; public class ActionList { private ArrayList actions; private SerialCom serialCom; public ActionList(SerialCom serialCom) { this.serialCom = serialCom; actions = new ArrayList<>(); actions.add(new Action()); } public ActionList(int[] leftDeltaArray, int[] rightDeltaArray, long[] leftDelaiArray, long[] rightDelaiArray) { if(leftDelaiArray.length != rightDelaiArray.length || leftDelaiArray.length != leftDelaiArray.length || leftDelaiArray.length != rightDelaiArray.length) throw new InvalidActionListArrays(); actions = new ArrayList<>(); for(int i=0; i