cayleytable
Class groupIdentify.factorType

java.lang.Object
  extended by cayleytable.groupIdentify.factorType
Enclosing class:
groupIdentify

private class groupIdentify.factorType
extends java.lang.Object

Class to store a prime and number used of a prime factorization


Field Summary
private  int numOfPrimes
          Number of primes used in the prime factorization
private  int prime
          Prime from the prime factorization
 
Constructor Summary
groupIdentify.factorType(int p, int num)
          Constructor for the class that saves a prime and number of values of that prime used in the prime factorization
 
Method Summary
 int getNumOfPrimes()
          Returns the number of times the prime is used in the prime factorization
 int getPrime()
          Returns the prime
 void incrementNumOfPrimes()
          Increments the value of numOfPrimes by 1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prime

private int prime
Prime from the prime factorization


numOfPrimes

private int numOfPrimes
Number of primes used in the prime factorization

Constructor Detail

groupIdentify.factorType

public groupIdentify.factorType(int p,
                                int num)
Constructor for the class that saves a prime and number of values of that prime used in the prime factorization

Parameters:
p - integer value of the prime
num - integer value of the number of primes in the factorization
Method Detail

getPrime

public int getPrime()
Returns the prime

Returns:
integer value of the prime

getNumOfPrimes

public int getNumOfPrimes()
Returns the number of times the prime is used in the prime factorization

Returns:
integer value of the number of times the prime is used

incrementNumOfPrimes

public void incrementNumOfPrimes()
Increments the value of numOfPrimes by 1