JSci.maths.categories
Class FinSet.FunctionSet

java.lang.Object
  extended byJSci.maths.categories.FinSet.FunctionSet
All Implemented Interfaces:
Category.HomSet, MathSet
Enclosing class:
FinSet

public class FinSet.FunctionSet
extends java.lang.Object
implements MathSet, Category.HomSet


Constructor Summary
FinSet.FunctionSet(MathSet a, MathSet b)
           
 
Method Summary
 int cardinality()
          Returns the cardinality.
 FinSet.Function getElement(java.lang.Object[] in, java.lang.Object[] out)
          Returns an element of this hom-set.
 MathSet intersect(MathSet set)
          Performs the intersection of this set with another.
 MathSet union(MathSet set)
          Performs the union of this set with another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinSet.FunctionSet

public FinSet.FunctionSet(MathSet a,
                          MathSet b)
Method Detail

getElement

public FinSet.Function getElement(java.lang.Object[] in,
                                  java.lang.Object[] out)
Returns an element of this hom-set.


cardinality

public int cardinality()
Description copied from interface: MathSet
Returns the cardinality.

Specified by:
cardinality in interface MathSet

union

public MathSet union(MathSet set)
Description copied from interface: MathSet
Performs the union of this set with another.

Specified by:
union in interface MathSet
Parameters:
set - a set.
Returns:
the union of the two sets.

intersect

public MathSet intersect(MathSet set)
Description copied from interface: MathSet
Performs the intersection of this set with another.

Specified by:
intersect in interface MathSet
Parameters:
set - a set.
Returns:
the intersection of the two sets.