shh.gl4
Class MatChar

Object
  extended byMatChar

public class MatChar
extends Object

Holds a 4 × 4 matrix of ints, which is a member of some matrix group G, and also holds the int value of a character on G.

Author:
Mark McConnell

Constructor Summary
MatChar(String colSexp, int charV)
          Converts Lisp format to its own format.
 
Method Summary
 Integer getCharVal()
           
 String toString()
          Returns ((a e i m) (b f j n) (c g k o) (d h l p)) as in the constructor.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatChar

public MatChar(String colSexp,
               int charV)
Converts Lisp format to its own format.

Parameters:
colSexp - A String with the syntax
((a e i m) (b f j n) (c g k o) (d h l p))
representing the matrix
a b c d
e f g h
i j k l
m n o p

charV - The value of some character on the underlying matrix group G. Probably 1 or -1.
Throws:
IllegalArgumentException - If the input syntax is wrong.
NumberFormatException - If the a, b, etc., don't represent ints.
Method Detail

getCharVal

public Integer getCharVal()

toString

public String toString()
Returns ((a e i m) (b f j n) (c g k o) (d h l p)) as in the constructor.