- protected static long[] cArrayUnwrap(Action[] arrayWrapper) {
- long[] cArray = new long[arrayWrapper.length];
- for (int i=0; i<arrayWrapper.length; i++)
- cArray[i] = Action.getCPtr(arrayWrapper[i]);
- return cArray;
- }
-
- protected static Action[] cArrayWrap(long[] cArray, boolean cMemoryOwn) {
- Action[] arrayWrapper = new Action[cArray.length];
- for (int i=0; i<cArray.length; i++)
- arrayWrapper[i] = new Action(cArray[i], cMemoryOwn);
- return arrayWrapper;
- }
-
-
- /**
- * Action constructor
- * @param model The model associated
- * @param cost The cost of the action (e.g., flops, bytes)
- * @param failed If the action has failed
- */