org.jscience.mathematics.algebraic.fields
Interface Semiring

All Known Subinterfaces:
KleeneAlgebra

public interface Semiring

This interface defines a semiring (similar to a ring but without additive inverses).


Nested Class Summary
static interface Semiring.Member
          This interface defines a member of a semiring.
 
Method Summary
 boolean isOne(Semiring.Member r)
          Returns true if the member is the unit element.
 boolean isZero(Semiring.Member g)
          Returns true if the member is the identity element of this group.
 Semiring.Member one()
          Returns the unit element.
 Semiring.Member zero()
          Returns the identity element.
 

Method Detail

zero

Semiring.Member zero()
Returns the identity element.

Returns:
DOCUMENT ME!

isZero

boolean isZero(Semiring.Member g)
Returns true if the member is the identity element of this group.

Parameters:
g - a group member
Returns:
DOCUMENT ME!

one

Semiring.Member one()
Returns the unit element.

Returns:
DOCUMENT ME!

isOne

boolean isOne(Semiring.Member r)
Returns true if the member is the unit element.

Parameters:
r - DOCUMENT ME!
Returns:
DOCUMENT ME!