package jcliffford

jclifford
Class BladeTreeSet

java.lang.Object
  extended by jclifford.BladeTreeSet
All Implemented Interfaces:
java.lang.Comparable

public class BladeTreeSet
extends java.lang.Object
implements java.lang.Comparable

This class represents a TreeSet implementation of a blade (wedge product of generic basis versors).

It is an utility class for the CliffordTreeSet class.

Version:

0.9

Author:

Realized by Giorgio Vassallo, Pietro Brignola, November 2002.

See Also:
Blade, BladeBitSet

Field Summary
private  java.util.TreeSet treeset
          Tree set of the versors present in this blade.
 
Constructor Summary
BladeTreeSet()
          Creates and returns an new empty blade representing a scalar.
 
Method Summary
 java.lang.Object clone()
          Creates and returns an new Object deeply cloning this Object.
 int compareTo(java.lang.Object object)
          Compare this object with another comparing versors.
(package private)  BladeTreeSet geometricProduct(BladeTreeSet bld)
          Computes the geometric product with the specified blade.
 int getGrade()
          Returns the grade of this blade.
(package private)  boolean getSign(BladeTreeSet bld)
          Computes the sign of the product with the specified blade.
(package private)  BladeTreeSet leftContraction(BladeTreeSet bld)
          Computes the left contraction with the specified blade.
 void put(int versor)
          Puts specified versor in this blade if it is not already present.
(package private)  BladeTreeSet rigthContraction(BladeTreeSet bld)
          Computes the rignt contraction with the specified blade.
 java.lang.String toString()
          Returns a string representation of this blade.
(package private)  BladeTreeSet wedgeProduct(BladeTreeSet bld)
          Computes the wedge product with the specified blade.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

treeset

private java.util.TreeSet treeset
Tree set of the versors present in this blade. Empty blade represents a scalar.

Constructor Detail

BladeTreeSet

public BladeTreeSet()
Creates and returns an new empty blade representing a scalar.

Method Detail

clone

public java.lang.Object clone()
Creates and returns an new Object deeply cloning this Object.

Overrides:
clone in class java.lang.Object

put

public void put(int versor)
Puts specified versor in this blade if it is not already present.

Parameters:
versor - the specified versor to be put to the blade.

compareTo

public int compareTo(java.lang.Object object)
Compare this object with another comparing versors.

Specified by:
compareTo in interface java.lang.Comparable

getGrade

public int getGrade()
Returns the grade of this blade.

Returns:
the grade of the blade.

getSign

boolean getSign(BladeTreeSet bld)
Computes the sign of the product with the specified blade.

Parameters:
bld - the second blade of the product.
Returns:
true if the sign of the product with the specified blade is negative, false otherwise.

geometricProduct

BladeTreeSet geometricProduct(BladeTreeSet bld)
Computes the geometric product with the specified blade.

Parameters:
bld - the second blade of the geometric product.
Returns:
new blade from the geometric product with the specified blade.

wedgeProduct

BladeTreeSet wedgeProduct(BladeTreeSet bld)
Computes the wedge product with the specified blade.

Parameters:
bld - the second blade of the wedge product.
Returns:
null if blades have common versors or a new blade from the wedge product with the specified blade.

leftContraction

BladeTreeSet leftContraction(BladeTreeSet bld)
Computes the left contraction with the specified blade.

Parameters:
bld - the second blade of the left contraction.
Returns:
null if versors are not a subset of the specified blade, or a new blade from the left contraction with the specified blade.

rigthContraction

BladeTreeSet rigthContraction(BladeTreeSet bld)
Computes the rignt contraction with the specified blade.

Parameters:
bld - the second blade of the right contraction.
Returns:
null if versors of the specified blade are not a subset of this blade, or a new blade from the left contraction with the specified blade.

toString

public java.lang.String toString()
Returns a string representation of this blade.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of this blade.

package jclifford

package jclifford API Specification