tests whether the current state is a end state
public bool hasEnded();
whether the job has ended
public