org.jscience.mathematics.algebraic.categories
Class HomFunctor

java.lang.Object
  extended by org.jscience.mathematics.algebraic.categories.HomFunctor
All Implemented Interfaces:
Bifunctor

public class HomFunctor
extends java.lang.Object
implements Bifunctor

The HomFunctor class encapsulates the hom-bifunctor.


Constructor Summary
HomFunctor(Category c)
          Constructs the hom bifunctor for a category.
 
Method Summary
 Category.Morphism map(Category.Morphism m, Category.Morphism n)
          Maps two morphisms to another.
 java.lang.Object map(java.lang.Object a, java.lang.Object b)
          Maps two objects to another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HomFunctor

public HomFunctor(Category c)
Constructs the hom bifunctor for a category.

Parameters:
c - DOCUMENT ME!
Method Detail

map

public java.lang.Object map(java.lang.Object a,
                            java.lang.Object b)
Maps two objects to another.

Specified by:
map in interface Bifunctor
Parameters:
a - DOCUMENT ME!
b - DOCUMENT ME!
Returns:
DOCUMENT ME!

map

public Category.Morphism map(Category.Morphism m,
                             Category.Morphism n)
Maps two morphisms to another.

Specified by:
map in interface Bifunctor
Parameters:
m - DOCUMENT ME!
n - DOCUMENT ME!
Returns:
DOCUMENT ME!