[all packages] [package ] [class hierarchy] [index]

public abstract class Shuffle

(source file: Shuffle.java)
java.lang.Object
   |
   +----Printable
           |
           +----Shuffle

The pure class interface.
public abstract class Shuffle
  extends Printable

A shuffle is a morphism built from tensor, composition, identity, symmetry, terminal and diagonal. A shuffle can be represented as a function from integers (the size of the target) to integers (the size of the source). A partial shuffle can be represented by a partial function.

The operations on a partial shuffle are:

Author:
Alan Jeffrey
Version: v1.0 1998/06/02

Constuctor Index

O Shuffle()

Variables Index

O source
The size of the source object.
O target
The size of the target object.

Methods

O comediate(Shuffle)
The comediation of two partial shuffles.
O comp(Shuffle)
The composition of two (partial) shuffles.
O identity(Obj)
An identity shuffle.
O initial(Obj)
A initial shuffle.
O mediate(Shuffle)
The mediation of two (partial) shuffles.
O morphism()
Build a morphism from a shuffle.
O print(Printer)
Print the shuffle (useful for debugging).
O shuffle(int)
The (partial) shuffle viewed as a (partial) function on integers.
O tensor(Shuffle)
The tensor fo two (partial) shuffles.
O terminal(Obj)
A terminal shuffle.
O zero(Obj, Obj)
An empty partial shuffle.

Constructors

O Shuffle
public Shuffle();

Variables

O source
public Obj source;
The size of the source object.

O target

public Obj target;
The size of the target object.

Methods

O shuffle
public abstract int shuffle(int i);
The (partial) shuffle viewed as a (partial) function on integers.

Parameters:
i - the index ranging 1..target.size.
Returns:
the result ranging 1..source.size (0 if undefined).

O identity

public static Shuffle identity(Obj X);
An identity shuffle.

Parameters:
X - the object.
Returns:
the identity morphism.

O zero

public static Shuffle zero(Obj X,
                           Obj Y);
An empty partial shuffle.

Parameters:
X - the source object.
Y - the target object.
Returns:
the empty partial shuffle.

O terminal

public static Shuffle terminal(Obj X);
A terminal shuffle.

Parameters:
X - the object.
Returns:
the terminal morphism.

O initial

public static Shuffle initial(Obj X);
A initial shuffle.

Parameters:
X - the object.
Returns:
the initial morphism.

O comediate

public Shuffle comediate(Shuffle f);
The comediation of two partial shuffles.

Parameters:
f - the other partial suffle.
Returns:
the comediation.

O mediate

public Shuffle mediate(Shuffle f);
The mediation of two (partial) shuffles.

Parameters:
f - the other (partial) shuffle.
Returns:
the mediation.

O comp

public Shuffle comp(Shuffle f);
The composition of two (partial) shuffles.

Parameters:
f - the other (partial) shuffle.
Returns:
the composition.

O tensor

public Shuffle tensor(Shuffle f);
The tensor fo two (partial) shuffles.

Parameters:
f - the other (partial) shuffle.
Returns:
the tensor.

O morphism

public Mor morphism();
Build a morphism from a shuffle.

Returns:
this shuffle as a morphism.

O print

public void print(Printer p);
Print the shuffle (useful for debugging).

Parameters:
p - where to print to.
Overrides:
print in class Printable


[all packages] [package ] [class hierarchy] [index]
Shuffle.html