/**
* Used only for test.
*/
public static boolean test(String fileName) {
Log writer = new Log(fileName);
Exponential e = new Exponential();
ExponentialPar p = null;
try {
p = new ExponentialPar(1.0);
} catch (IncorrectDistributionParameterException e1) {
e1.printStackTrace();
}
for (int i = 0; i < 5; i++) {
try {
writer.write(e.nextRand(p));
} catch (IncorrectDistributionParameterException e1) {
e1.printStackTrace();
}
}
writer.close();
ReplayerPar reader = new ReplayerPar(fileName);
for (int i = 0; i < 15; i++) {
System.out.println(reader.getNext());
}
return false;