KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > maths > groups > FiniteGroup


1 package JSci.maths.groups;
2
3 /**
4 * Superclass for finite groups.
5 * @version 1.0
6 * @author Mark Hale
7 */

8 public abstract class FiniteGroup implements Group {
9         protected final int order;
10
11         /**
12         * Constructs a finite group.
13         * @param n the order of the group
14         */

15         public FiniteGroup(int n) {
16                 order = n;
17         }
18         /**
19         * Returns the elements of this group.
20         */

21         public abstract Group.Member[] getElements();
22         /**
23         * Returns the order (the number of group elements) of this group.
24         * @jsci.planetmath OrderGroup
25         */

26         public final int order() {
27                 return order;
28         }
29 }
30
31
Popular Tags