Example #1
0
 public void finalize() throws Throwable {
   try {
     super.terminate();
     super.finalize();
   } catch (Exception exception) {
     System.err.println("AITMatrixImpl01.finalize: " + exception);
     throw exception;
   }
 }
Example #2
0
  public boolean restore_state(InputObjectState objectState, int objectType) {
    super.restore_state(objectState, objectType);
    try {
      for (int x = 0; x < _width; x++) {
        for (int y = 0; y < _height; y++) {
          _values[x][y] = objectState.unpackInt();
        }
      }

      return true;
    } catch (Exception exception) {
      System.err.println("AITMatrixImpl01.restore_state: " + exception);
      return false;
    }
  }