success method

bool success()

Implementation

bool success() {
  return currentState.equals(finalState);
}