protected void checkPreconditions(JupiterVectorTime time)
throws TransformationException {
if (!this.ackJupiterActivityList.isEmpty()
&& (time.getRemoteOperationCount() < this.ackJupiterActivityList
.get(0).getLocalOperationCount())) {
throw new TransformationException("Precondition #1 violated.");
} else if (time.getRemoteOperationCount() > this.vectorTime
.getLocalOperationCount()) {
throw new TransformationException(
"precondition #2 violated (Remote vector time is greater than local vector time).");
} else if (time.getLocalOperationCount() != this.vectorTime
.getRemoteOperationCount()) {
throw new TransformationException(
"Precondition #3 violated (Vector time does not match): "
+ time + " , " + this.vectorTime);
}
}