E
- Defines the object generated by the interpretation. This is the same
type as the objects over which the algebra for this interpretation is defined.public class Interpretation<E> extends Object implements Serializable
Constructor and Description |
---|
Interpretation(Algebra<E> algebra,
Homomorphism hom)
Constructs new instance with the given algebra and homomorphism.
|
Modifier and Type | Method and Description |
---|---|
TreeAutomaton |
basicNonDelInvHom(TreeAutomaton auto)
This returns an inverse homomorphism automaton with the added assumption
that the underlying homomorphism is non-deleting.
|
boolean |
equals(Object obj)
Equality holds if obj is also an interpretation, which has the same
class of algebra and an homomorphism that is equals to the homomorphism
for this interpretation.
|
Algebra<E> |
getAlgebra()
Obtains the algebra used by the interpretation.
|
Homomorphism |
getHomomorphism()
Obtains the homomorphism used by the interpretation.
|
E |
interpret(Tree<String> t)
Applies the homomorphism to the derivation tree "t" and evaluates it in
the algebra.
|
Intersectable |
invhom(TreeAutomaton auto)
Returns the image under inverse homomorphism of the given automaton.
|
Intersectable |
parse(E object)
This method takes the given object and attempts to compute its inverse
homomorphism automaton.
|
CondensedTreeAutomaton |
parseToCondensed(E object)
This method takes the given object and attempts to compute its inverse
homomorphism automaton in the form of an condensed automaton.
|
void |
setPmLogName(String name)
This method allows the user to set the name under which feedback from
the pattern matching factory is logged.
|
String |
toString()
Returns a string containing the algebra class and homomorphism used
by this interpretation.
|
public Interpretation(Algebra<E> algebra, Homomorphism hom)
algebra
- hom
- public E interpret(Tree<String> t)
t
- public Homomorphism getHomomorphism()
public Intersectable invhom(TreeAutomaton auto)
auto
- public TreeAutomaton basicNonDelInvHom(TreeAutomaton auto)
auto
- public Intersectable parse(E object)
object
- public CondensedTreeAutomaton parseToCondensed(E object)
object
- public String toString()
public boolean equals(Object obj)
public void setPmLogName(String name)
name
- Copyright © 2017. All rights reserved.