cmsc433.p2
Class Validate

java.lang.Object
  extended by cmsc433.p2.Validate

public class Validate
extends java.lang.Object

Validates a simulation


Constructor Summary
Validate()
           
 
Method Summary
static boolean validateSimulation(java.util.List<SimulationEvent> events)
          Validates the given list of events is a valid simulation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validate

public Validate()
Method Detail

validateSimulation

public static boolean validateSimulation(java.util.List<SimulationEvent> events)
Validates the given list of events is a valid simulation. Returns true if the simulation is valid, false otherwise.

Parameters:
events - - a list of events generated by the simulation in the order they were generated.
Returns:
whether the simulation was valid or not