public class HomomorphismSymbol extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
HomomorphismSymbol.Type |
Modifier and Type | Method and Description |
---|---|
static HomomorphismSymbol |
createConstant(int symbolId)
Creates a constant HomomorphismSymbol for the given symbol ID.
|
static HomomorphismSymbol |
createConstant(String name,
Signature signature,
int arity)
Creates a constant HomomorphismSymbol for the given symbol.
|
static HomomorphismSymbol |
createVariable(int variableId) |
static HomomorphismSymbol |
createVariable(String varname) |
boolean |
equals(Object obj) |
static ToIntFunction<HomomorphismSymbol> |
getHomSymbolToIntFunction() |
int |
getIndex()
Deprecated.
|
static ToIntFunction<HomomorphismSymbol> |
getRemappingSymbolToIntFunction(SignatureMapper mapper)
This is for running an automaton on the RHS of a homomorphism.
|
HomomorphismSymbol.Type |
getType() |
int |
getValue() |
static int |
getVariableIndex(String varname) |
int |
hashCode() |
boolean |
isConstant() |
boolean |
isVariable() |
static boolean |
isVariableSymbol(String sym) |
String |
toString() |
static Tree<String> |
toStringTree(Tree<HomomorphismSymbol> tree,
Signature signature)
Converts a tree of HomomorphismSymbols into a tree of string labels.
|
static Tree<HomomorphismSymbol> |
treeFromNames(Tree<String> tree,
Signature signature)
Converts a tree of string labels into a tree of HomomorphismSymbols.
|
public HomomorphismSymbol.Type getType()
public int getValue()
public static HomomorphismSymbol createVariable(String varname)
public static HomomorphismSymbol createVariable(int variableId)
public static HomomorphismSymbol createConstant(String name, Signature signature, int arity)
name
- signature
- arity
- public static HomomorphismSymbol createConstant(int symbolId)
symbolId
- public static boolean isVariableSymbol(String sym)
public static Tree<HomomorphismSymbol> treeFromNames(Tree<String> tree, Signature signature)
tree
- signature
- public static Tree<String> toStringTree(Tree<HomomorphismSymbol> tree, Signature signature)
tree
- signature
- public boolean isConstant()
public boolean isVariable()
@Deprecated public int getIndex()
public static int getVariableIndex(String varname)
public static ToIntFunction<HomomorphismSymbol> getHomSymbolToIntFunction()
public static ToIntFunction<HomomorphismSymbol> getRemappingSymbolToIntFunction(SignatureMapper mapper)
Copyright © 2017. All rights reserved.