org.uacalc.alg.op
Class OperationSymbol

java.lang.Object
  extended by org.uacalc.alg.op.OperationSymbol

public class OperationSymbol
extends java.lang.Object

An oration symbol. It has both a String for it printed name and and arity.


Field Summary
static OperationSymbol IDENTITY
           
static OperationSymbol INVERSE
           
static OperationSymbol JOIN
           
static OperationSymbol MEET
           
static OperationSymbol PRODUCT
           
 
Constructor Summary
OperationSymbol(java.lang.String name, int arity)
           
 
Method Summary
 int arity()
          This gives the arity of this operation.
 boolean equals(java.lang.Object obj)
           
static OperationSymbol getOperationSymbol(int arity)
          Get an OperationSymbol in a uniform manner so that algebras that can be similar will be.
 int hashCode()
           
 java.lang.String name()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

JOIN

public static final OperationSymbol JOIN

MEET

public static final OperationSymbol MEET

PRODUCT

public static final OperationSymbol PRODUCT

INVERSE

public static final OperationSymbol INVERSE

IDENTITY

public static final OperationSymbol IDENTITY
Constructor Detail

OperationSymbol

public OperationSymbol(java.lang.String name,
                       int arity)
Method Detail

arity

public int arity()
This gives the arity of this operation.


name

public java.lang.String name()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getOperationSymbol

public static OperationSymbol getOperationSymbol(int arity)
Get an OperationSymbol in a uniform manner so that algebras that can be similar will be.

Parameters:
HashMap - map a map from Integer's to int[1]'s, the value will be modified.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright 2003 Ralph Freese. All Rights Reserved.