vsp
Class CommandLine

java.lang.Object
  extended by vsp.CommandLine

public class CommandLine
extends Object

Keeps and parse command line arguments

Author:
Jan Tichava

Field Summary
private  String fileName
          No default file name
private  boolean gauss
          Default is exponential
private  int steps
          Default steps value
 
Constructor Summary
CommandLine()
           
 
Method Summary
 String getFileName()
           
 boolean getGauss()
           
 int getSteps()
           
 void setFileName(String fileName)
          Store file name
 void setGauss(String arg)
          Parse EXP or GAUSS
 void setSteps(String steps)
          Parse count of steps
 String toString()
          String output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

steps

private int steps
Default steps value


gauss

private boolean gauss
Default is exponential


fileName

private String fileName
No default file name

Constructor Detail

CommandLine

public CommandLine()
Method Detail

getSteps

public int getSteps()
Returns:
the steps

setSteps

public void setSteps(String steps)
              throws NumberFormatException
Parse count of steps

Parameters:
steps - the steps to set
Throws:
NumberFormatException

getGauss

public boolean getGauss()
Returns:
the gauss

setGauss

public void setGauss(String arg)
              throws Exception
Parse EXP or GAUSS

Parameters:
gauss - the gauss to set
Throws:
Exception

getFileName

public String getFileName()
Returns:
the fileName

setFileName

public void setFileName(String fileName)
Store file name

Parameters:
fileName - the fileName to set

toString

public String toString()
String output

Overrides:
toString in class Object