simulations.xml
Class DataChecker

java.lang.Object
  extended by simulations.xml.DataChecker

public class DataChecker
extends java.lang.Object

This class describes a check that will check the data return from the parser


Constructor Summary
DataChecker()
          Creates a new instance of DataChecker
 
Method Summary
 boolean checkName(java.util.ArrayList l)
          Return false is there is two times the same name in the player list l
 boolean checkName(java.util.ArrayList l, java.lang.String s)
          return false if the name s is already in the player's list l
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataChecker

public DataChecker()
Creates a new instance of DataChecker

Method Detail

checkName

public boolean checkName(java.util.ArrayList l,
                         java.lang.String s)
return false if the name s is already in the player's list l

Parameters:
l - The player's list
s - The name
Returns:
return false if the name s is already in the player's list l, true otherwise

checkName

public boolean checkName(java.util.ArrayList l)
Return false is there is two times the same name in the player list l

Parameters:
l - The player's list
Returns:
Return false is there is two times the same name in the player list l, true otherwise