cayleytable
Class groupRelation

java.lang.Object
  extended by cayleytable.groupRelation

public class groupRelation
extends java.lang.Object

Class used to store the relationships between generators of groups being created in the groupCreator.createDefineRelationGroup method.

Author:
Jeffrey Barr

Field Summary
(package private)  java.lang.String left
          String Object that stores the LHS of the relationship equation
(package private)  java.lang.String right
          String Object that stores the RHS of the relationship equation
 
Constructor Summary
groupRelation(int generator, int genSize)
          Creates a new instance of groupRelation containing a generator raised to some power being equal to the identity element or an empty RHS.
groupRelation(int gen1, int gen2, java.lang.String rgt, java.util.ArrayList generatorList)
          Creates a new instance of groupRelation containing a "pseudo" commutative defined relationship of the group.
groupRelation(java.lang.String relationship, java.util.ArrayList generatorList)
          Creates a new instance of groupRelation containing a relationship defined completely by the user through the user interface.
 
Method Summary
 java.lang.String getLeft()
          Returns LHS of the groupRelation.
 java.lang.String getRight()
          Returns RHS of the groupRelation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

left

java.lang.String left
String Object that stores the LHS of the relationship equation


right

java.lang.String right
String Object that stores the RHS of the relationship equation

Constructor Detail

groupRelation

public groupRelation(int generator,
                     int genSize)
Creates a new instance of groupRelation containing a generator raised to some power being equal to the identity element or an empty RHS.

Parameters:
generator - Generator for which the groupRelation is being created
genSize - Order of generator for which relation is being generated.

groupRelation

public groupRelation(java.lang.String relationship,
                     java.util.ArrayList generatorList)
Creates a new instance of groupRelation containing a relationship defined completely by the user through the user interface.

Parameters:
relationship - String object that represents the relationship being created.
generatorList - ArrayList of String objects that are the order of each of the generators of the group for use in determining the inverse of a generator.

groupRelation

public groupRelation(int gen1,
                     int gen2,
                     java.lang.String rgt,
                     java.util.ArrayList generatorList)
Creates a new instance of groupRelation containing a "pseudo" commutative defined relationship of the group.

Parameters:
gen1 - Integer representing the first generator in the "pseudo" commutative defined relationship
gen2 - Integer representing the second generator in the "pseudo" commutative defined relationship
rgt - String object containing the RHS of the "pseudo" commutative defined relationship
generatorList - ArrayList of String objects that are the order of each of the generators of the group for use in determining the inverse of a generator.
Method Detail

getLeft

public java.lang.String getLeft()
Returns LHS of the groupRelation.

Returns:
String object containing LHS of relation equation.

getRight

public java.lang.String getRight()
Returns RHS of the groupRelation.

Returns:
String object containing RHS of relation equation.