|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--matroide.Chirotop
Diese Klasse repräsentiert ein Chirotop. Die Vorzeichen zu Punktmengen der Größe dim+1 sind in den ChirotopElementen gespeichert.
Constructor Summary | |
Chirotop(int dim,
int anzahl,
ChirotopElement[] elem)
erzeugt ein chirotop zur gegebenen Dimension, anzahlH und mit den gegebenen Chirotopelementen. |
|
Chirotop(int dimension,
int anzahlH,
int vorzeichen)
liefert ein Chirotop zur gegebenen dimension, anzahlH und dem binaer codierten vorzeichen. |
|
Chirotop(int dim,
int anzahlH,
java.lang.String chiro)
Liefert ein Chirotop der Dimension dim zu der gegebenen Anzahl von Punkten und dem Vorzeichen-String. es muessen (anzahlH über dim) viele Vorzeichen sein, sonst gibt's null zurueck. z.B. berechneChirotop(4, ++--). |
|
Chirotop(int dim,
int anzahl,
java.util.Vector elem)
erzeugt ein Chirotop zur gegebenen dimension, anzahlH und mit den im Vector enthaltenen Chirotopelementen. |
Method Summary | |
Chirotop |
copy()
erzeugt eine Kopie des Chirotops. |
boolean |
dummesEquals(Chirotop chiro)
Vergleicht zwei ChirotopElemente auf Äquivalenz. |
boolean |
equals(Chirotop chiro)
Die Methode equals vergleicht diesen Chirotop mit dem Parameter-Chirotop. |
boolean |
equals(java.lang.Object o)
Überschreibt die von Object geerbte Methode equals. |
static java.util.Vector |
generiereChiros(int dimension,
int anzahlH)
Liefert Vector mit allen Chirotopen der angegebenen Dimension und Anzahl der Hyperebenen, wobei äquivalente Chirotope nur einmal betrachtet werden. |
CoKreisMatroid |
getCoKreisMatroid(boolean normiert)
|
KantenMatroid |
getKantenMatroid()
Erzeugt das zugehörige Kantenmatroid zum Chirotop. |
protected boolean |
gleicherVector(Chirotop chi)
Vergleicht die Vectoren der beiden Chirotope. |
protected boolean |
istVertauscht(int[] punkte)
|
protected java.util.Vector |
kippeDreiecke()
|
protected java.util.Vector |
normiereChirotop()
Kippt alle Bits, bei denen die ersten beiden Punkte 0 und 1 sind, das Vorzeichen aber nicht 1. |
void |
print()
|
protected static void |
printIntArray(java.lang.String name,
int[] array)
|
protected static void |
printIntArray(java.lang.String name,
java.lang.Object[] array)
|
protected static int[] |
rotiere0nachVorne(int[] punkte)
|
protected void |
sortiereErsteKantenMatroidGerade()
Sortiert die erste Gerade des zugehörigen Kantenmatorides so, dass die Hyperebenen, die die Gerade schneiden in sortierter Reihenfolge auftreten. |
protected void |
tauscheHyperEbenen(int g1,
int g2)
tauscht die geraden g1 und g2 in diesem chirotop. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Chirotop(int dim, int anzahl, ChirotopElement[] elem) throws matroide.IsNoLegalChirotopException
public Chirotop(int dim, int anzahl, java.util.Vector elem) throws matroide.IsNoLegalChirotopException
public Chirotop(int dim, int anzahlH, java.lang.String chiro) throws matroide.IsNoLegalChirotopException
public Chirotop(int dimension, int anzahlH, int vorzeichen)
Method Detail |
public static java.util.Vector generiereChiros(int dimension, int anzahlH)
dimension
- Die DimensionanzahlH
- Die Anzahl der Hyperebenenprotected java.util.Vector kippeDreiecke()
public Chirotop copy()
protected boolean istVertauscht(int[] punkte)
punkte
- protected java.util.Vector normiereChirotop()
public CoKreisMatroid getCoKreisMatroid(boolean normiert)
normiert
- gibt an, ob das Chirotop vorher normiert werden sollpublic KantenMatroid getKantenMatroid()
protected void tauscheHyperEbenen(int g1, int g2)
g1
- erste Geradeg2
- zweite Geradepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- public boolean dummesEquals(Chirotop chiro)
chiro
- Chirotop, das mit this verglichen werden soll.protected boolean gleicherVector(Chirotop chi)
chi
- Chirotop, dessen Vector mit dem Vector von this verglichen werden soll.public boolean equals(Chirotop chiro)
chiro
- Chirotop, mit dem this verglichen wird.protected void sortiereErsteKantenMatroidGerade()
public java.lang.String toString()
toString
in class java.lang.Object
public void print()
protected static void printIntArray(java.lang.String name, int[] array)
protected static void printIntArray(java.lang.String name, java.lang.Object[] array)
protected static int[] rotiere0nachVorne(int[] punkte)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |