chordDiagrams
Class OrbitElement

java.lang.Object
  extended by chordDiagrams.OrbitElement

public class OrbitElement
extends java.lang.Object

This class represents an orbit element in an orbit of a diagram under some action. If the element is not in the basis, the relation field contains the relation that relates it to the basis.

Author:
Romwell

Field Summary
 int diagIndex
          Index of the diagram
 boolean isInBasis
          Is the orbit element in the basis or is it a linear combination
 Relation relation
          Relation that shows this diagram as a linear combination of diags in the basis
 
Constructor Summary
OrbitElement(int diagIndex, boolean isInBasis, Relation relation)
          Creates a new orbit element
 
Method Summary
 void drawElement(DiagramDrawer D, java.lang.String fname, java.util.HashMap<java.lang.String,diagram> diags, java.util.ArrayList<java.lang.String> keys)
          Draws this orbit element and saves it to a file
 boolean equals(OrbitElement e)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isInBasis

public boolean isInBasis
Is the orbit element in the basis or is it a linear combination


diagIndex

public int diagIndex
Index of the diagram


relation

public Relation relation
Relation that shows this diagram as a linear combination of diags in the basis

Constructor Detail

OrbitElement

public OrbitElement(int diagIndex,
                    boolean isInBasis,
                    Relation relation)
Creates a new orbit element

Parameters:
diagIndex - index of the diagram
isInBasis - true if the diagram is in the basis
relation - diagram relation if it is not in the basis
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(OrbitElement e)

drawElement

public void drawElement(DiagramDrawer D,
                        java.lang.String fname,
                        java.util.HashMap<java.lang.String,diagram> diags,
                        java.util.ArrayList<java.lang.String> keys)
Draws this orbit element and saves it to a file

Parameters:
D - Diagram Drawer to draw with
fname - filename to save to
diags - data structure with diagrams
keys - keyset for the diagrams