Java Randomness Test Suite

JRandTest at SourceForge

com.fasteasytrade.JRandTest.Tests
Class CmdLine

java.lang.Object
  extended bycom.fasteasytrade.JRandTest.Tests.CmdLine

public class CmdLine
extends Object

Commnad line class to read from console / end-user the filename / algorithmname and testname to be executed.

Generally, we will try to keep similar functions and options as in Gui class.

Author:
Zur Aougav

Field Summary
(package private)  String[] algoClassNames
           
(package private)  String[] algoNames
           
(package private)  String[] cardNames
           
(package private)  String[] classNames
           
(package private)  Run r1
           
(package private)  MinimumDistance r10
           
(package private)  CountThe1s r11
           
(package private)  CountThe1sSpecificBytes r12
           
(package private)  BirthdaySpacings r13
           
(package private)  BinaryRankTestFor6x8Matrices r14
           
(package private)  BinaryRankTestFor31x31Matrices r15
           
(package private)  BinaryRankTestFor32x32Matrices r16
           
(package private)  Overlapping20TuplesBitstream r17
           
(package private)  OverlappingPairsSparseOccupancy r18
           
(package private)  OverlappingQuadruplesSparseOccupancy r19
           
(package private)  Count1Bit r2
           
(package private)  DNA r20
           
(package private)  Count2Bits r3
           
(package private)  Count3Bits r4
           
(package private)  Count4Bits r5
           
(package private)  Count8Bits r6
           
(package private)  Count16Bits r7
           
(package private)  MonteCarlo r8
           
(package private)  Squeeze r9
           
 
Constructor Summary
CmdLine()
           
 
Method Summary
private  Vector loadPropFile(String fn)
          read list of tests from property file named alltests.txt.
static void main(String[] args)
           
static void printCopyrights()
          print copyrights to console.
 void runCmd(String[] args)
          Simple session:
1. get input filename/algorithm for all tests (or "exit")
2. repeat till "exit"
2.1 display list of tests
2.2 get requested test number
2.3 run the test on the input file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cardNames

String[] cardNames

classNames

String[] classNames

algoNames

String[] algoNames

algoClassNames

String[] algoClassNames

r1

Run r1

r2

Count1Bit r2

r3

Count2Bits r3

r4

Count3Bits r4

r5

Count4Bits r5

r6

Count8Bits r6

r7

Count16Bits r7

r8

MonteCarlo r8

r9

Squeeze r9

r10

MinimumDistance r10

r11

CountThe1s r11

r12

CountThe1sSpecificBytes r12

r13

BirthdaySpacings r13

r14

BinaryRankTestFor6x8Matrices r14

r15

BinaryRankTestFor31x31Matrices r15

r16

BinaryRankTestFor32x32Matrices r16

r17

Overlapping20TuplesBitstream r17

r18

OverlappingPairsSparseOccupancy r18

r19

OverlappingQuadruplesSparseOccupancy r19

r20

DNA r20
Constructor Detail

CmdLine

public CmdLine()
Method Detail

printCopyrights

public static void printCopyrights()
print copyrights to console.


loadPropFile

private Vector loadPropFile(String fn)
read list of tests from property file named alltests.txt.

Property file contains:

shortname=classname

where shortname will be displayed toend user in GUI window.

classname is the real class name of the test to be laoded dynamically and run (as Base interface).


runCmd

public void runCmd(String[] args)
            throws Exception
Simple session:
1. get input filename/algorithm for all tests (or "exit")
2. repeat till "exit"
2.1 display list of tests
2.2 get requested test number
2.3 run the test on the input file

Parameters:
args - not used.
Throws:
Exception - generally are grabbed, but some I/O Exceptions are thrown.

main

public static void main(String[] args)

Java Randomness Test Suite

JRandTest at SourceForge

JRandTest at SourceForge
Copyright © 2005 Zur Aougav. All Rights Reserved.