Jampack
Class Parameters

java.lang.Object
  extended by Jampack.Parameters

public class Parameters
extends java.lang.Object

Parameter is a class containing global parameters for Jampack.

Version:
Pre-alpha
Author:
G. W. Stewart

Constructor Summary
Parameters()
           
 
Method Summary
static void adjustBaseIndex(Zdiagmat A)
          Adjust the base index of a Zdiagmat to make it conform to the default.
static void adjustBaseIndex(Zmat A)
          Adjust the base index of a Zmat to make it conform to the default.
static int getBaseIndex()
          Returns the base index
static void setBaseIndex(int bx)
          Resets the default base index.
static void setHistory()
          Sets the history flag.
static void setOutputParams(int width, int frac, int pagewidth)
          Changes the output parameters.
static void unsetHistory()
          Unsets the history flag.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameters

public Parameters()
Method Detail

getBaseIndex

public static int getBaseIndex()
Returns the base index


setBaseIndex

public static void setBaseIndex(int bx)
                         throws JampackException
Resets the default base index.

Parameters:
xb - The new base index
Throws:
JampackException - Thrown when the base indices are not changable.

adjustBaseIndex

public static void adjustBaseIndex(Zmat A)
Adjust the base index of a Zmat to make it conform to the default.


adjustBaseIndex

public static void adjustBaseIndex(Zdiagmat A)
Adjust the base index of a Zdiagmat to make it conform to the default.


setHistory

public static void setHistory()
Sets the history flag.


unsetHistory

public static void unsetHistory()
Unsets the history flag.


setOutputParams

public static void setOutputParams(int width,
                                   int frac,
                                   int pagewidth)
Changes the output parameters. Nonpositive parameters are ignored.

Parameters:
width - The new field width
frac - The new number of places to the right of the decimal
pagewidth - The new page width