public class SimilarityType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static SimilarityType |
GROUP_SIMILARITY_TYPE |
static SimilarityType |
LATTICE_SIMILARITY_TYPE |
Constructor and Description |
---|
SimilarityType(java.util.List<OperationSymbol> opSyms) |
SimilarityType(java.util.List<OperationSymbol> opSyms,
boolean sort) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
aritiesString() |
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getAritiesMap()
A map from the arity to the number of ops of that arity.
|
int |
getMaxArity() |
java.util.List<OperationSymbol> |
getOperationSymbols() |
java.util.List<OperationSymbol> |
getSortedOperationSymbols()
The sorting is by lowest arity first then by alphabetical
on the name.
|
int |
hashCode() |
int |
inputSize(int algSize)
This calculates the (computer) input size.
|
java.lang.String |
toString() |
public static final SimilarityType LATTICE_SIMILARITY_TYPE
public static final SimilarityType GROUP_SIMILARITY_TYPE
public SimilarityType(java.util.List<OperationSymbol> opSyms)
public SimilarityType(java.util.List<OperationSymbol> opSyms, boolean sort)
public java.util.List<OperationSymbol> getOperationSymbols()
public java.util.List<OperationSymbol> getSortedOperationSymbols()
public int inputSize(int algSize)
algSize
- the algebra sizepublic java.util.Map<java.lang.Integer,java.lang.Integer> getAritiesMap()
public int getMaxArity()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String aritiesString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright 2003 Ralph Freese. All Rights Reserved.