|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcayleytable.groupCreator
public class groupCreator
Class used to create and store a group
in groupMatrix
object.
Field Summary | |
---|---|
private groupMatrix |
group
groupMatrix object that is created and stored by this
class. |
Constructor Summary | |
---|---|
groupCreator()
Constructor that creates a new instance of groupCreator with an empty
group groupMatrix object. |
|
groupCreator(int size)
Constructor that creates a new instance of groupCreator with
a group groupMatrix object of specific order. |
Method Summary | |
---|---|
boolean |
createCyclicGroup(int size)
Method to update group groupMatrix object with a
new cyclic group of given order. |
boolean |
createDefineRelationGroup(java.util.ArrayList<java.lang.String> generatorList,
java.util.ArrayList<groupRelation> relationships)
Method to update group groupMatrix object with a
new defined relationship group that is defined by relationships and generators
that are passed to the method. |
boolean |
createEmptyGroup(int size)
Method to update group groupMatrix object with a new empty group of
given order. |
private java.util.ArrayList |
createFinalElementList(java.util.ArrayList<java.lang.String> generatorList)
Method to determine all the elements of a group given the orders of a list of generators of the group being created in createDefineRelationGroup |
groupMatrix |
createInnerAutFromElement(int element)
Method to calculate the inner automorphism of a single element of the group groupMatrix object. |
groupMatrix |
createInnerAutFromTwoElements(int elmtA,
int elmtB)
Method to calculate the inner automorphism of for two elements of the group groupMatrix object. |
boolean |
createInnerAutGroup()
Method to calculate and store the inner automorphism of the group
groupMatrix object. |
boolean |
createXProdGroup(groupMatrix g1,
groupMatrix g2)
Method to update group groupMatrix object with a
new cross product group that is a combination of two groups that are passed
to the method. |
private java.util.ArrayList<java.lang.String> |
fillList(java.util.ArrayList<java.lang.String> finalElements,
java.util.ArrayList<java.util.ArrayList<java.lang.String>> elementMatrix,
java.util.ArrayList<java.lang.String> generatorList,
java.lang.String nextElement,
int count)
Recursive method used by createFinalElementList to determine
the final list of elements that are to be |
groupMatrix |
getGroup()
Returns group groupMatrix object created by groupCreator . |
boolean |
resetGroup(groupMatrix newGroup)
Resets the group groupMatrix object in the class groupCreator
with a new groupMatrix object passed to the method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private groupMatrix group
groupMatrix
object that is created and stored by this
class.
Constructor Detail |
---|
public groupCreator()
groupCreator
with an empty
group
groupMatrix
object.
public groupCreator(int size)
groupCreator
with
a group
groupMatrix
object of specific order.
size
- Order of empty groupMatrix
object to createMethod Detail |
---|
public groupMatrix getGroup()
group
groupMatrix
object created by groupCreator
.
group
groupMatrix
object created and stored in the class.public boolean resetGroup(groupMatrix newGroup)
group
groupMatrix
object in the class groupCreator
with a new groupMatrix
object passed to the method.
newGroup
- groupMatrix
object that is to replace the group
groupMatrix
object.
group
groupMatrix
object.public boolean createEmptyGroup(int size)
group
groupMatrix
object with a new empty group of
given order.
size
- Order of empty group
groupMatrix
object to create and store.
group
groupMatrix
object.public boolean createCyclicGroup(int size)
group
groupMatrix
object with a
new cyclic group of given order.
size
- Order of cyclic group
groupMatrix
object to create and store.
group
groupMatrix
object.public boolean createXProdGroup(groupMatrix g1, groupMatrix g2)
group
groupMatrix
object with a
new cross product group that is a combination of two groups that are passed
to the method.
g1
- First groupMatrix
object passed to the method for cross product calculation.g2
- Second groupMatrix
object passed to the method for cross product calculation.
group
groupMatrix
object.public boolean createDefineRelationGroup(java.util.ArrayList<java.lang.String> generatorList, java.util.ArrayList<groupRelation> relationships)
group
groupMatrix
object with a
new defined relationship group that is defined by relationships and generators
that are passed to the method.
generatorList
- ArrayList of String objects that are the order of each of the generators of the group.relationships
- ArrayList of groupRelation
objects that contain the relationships between the generators.
group
groupMatrix
object.private java.util.ArrayList createFinalElementList(java.util.ArrayList<java.lang.String> generatorList)
createDefineRelationGroup
generatorList
- ArrayList of String objects that are the order of each of the generators of the group.
createDefineRelationGroup
private java.util.ArrayList<java.lang.String> fillList(java.util.ArrayList<java.lang.String> finalElements, java.util.ArrayList<java.util.ArrayList<java.lang.String>> elementMatrix, java.util.ArrayList<java.lang.String> generatorList, java.lang.String nextElement, int count)
createFinalElementList
to determine
the final list of elements that are to be
finalElements
- Current list of all elements that have thus far been derived for the group.elementMatrix
- ArrayList of ArrayList of String objects where
each String is one of the possible elements derived from one generator
each ArrayList of Strings is the list of all possible elements derived from one generator
and each ArrayList of ArrayList of Strings is the list of all possible elements derived from one generator for all the generatorsgeneratorList
- ArrayList of String objects that are the order of each of the generators of the group.nextElement
- Current element being built recursively for the final element listcount
- Number of recursive steps that has been run of fillList
createDefineRelationGroup
public boolean createInnerAutGroup()
group
groupMatrix
object.
group
groupMatrix
object.public groupMatrix createInnerAutFromTwoElements(int elmtA, int elmtB)
group
groupMatrix
object. Each cell
in the group now equals the value of xygy^-1x^-1 where x and y are
the elements and g is current element in the cell of the group for
which the inner automorphism is calculated.
elmtA
- First integer representing element in group for which the inner automorphism is calculatedelmtB
- Second integer representing element in group for which the inner automorphism is calculated
groupMatrix
object that holds the inner automorphism for the group
groupMatrix
object.public groupMatrix createInnerAutFromElement(int element)
group
groupMatrix
object. Each cell
in the group now equals the value of xgx^-1 where x is the single
element and g is current element in the cell of the group for which
the inner automorphism is calculated.
element
- Integer representing element in group for which the inner automorphism is calculated
groupMatrix
object that holds the inner automorphism group for an element.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |