public class CondensedRule extends Object
Constructor and Description |
---|
CondensedRule(int parent,
int labelSetID,
int[] children,
double weight) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares two rules for equality.
|
int |
getArity() |
int[] |
getChildren() |
Object |
getExtra()
Retrieves the auxiliary information from this rule.
|
IntSet |
getLabels(CondensedTreeAutomaton auto) |
int |
getLabelSetID() |
Collection<String> |
getLabelStrings(CondensedTreeAutomaton auto)
Returns a Set of Strings for the labels of this rule.
|
int |
getParent() |
double |
getWeight() |
int |
hashCode() |
boolean |
isLoop() |
void |
setExtra(Object extra)
Stores auxiliary information within this rule.
|
void |
setWeight(double weight) |
String |
toString() |
String |
toString(CondensedTreeAutomaton auto) |
String |
toString(CondensedTreeAutomaton auto,
boolean parentIsFinal,
Predicate<String> symbolFilter) |
String |
toString(CondensedTreeAutomaton auto,
Predicate<String> symbolFilter) |
public CondensedRule(int parent, int labelSetID, int[] children, double weight)
public int[] getChildren()
public int getLabelSetID()
public IntSet getLabels(CondensedTreeAutomaton auto)
public Collection<String> getLabelStrings(CondensedTreeAutomaton auto)
auto
- public int getParent()
public double getWeight()
public void setWeight(double weight)
public Object getExtra()
setExtra(java.lang.Object)
public void setExtra(Object extra)
extra
- public int getArity()
public String toString(CondensedTreeAutomaton auto)
public String toString(CondensedTreeAutomaton auto, Predicate<String> symbolFilter)
public String toString(CondensedTreeAutomaton auto, boolean parentIsFinal, Predicate<String> symbolFilter)
public boolean equals(Object obj)
public boolean isLoop()
Copyright © 2017. All rights reserved.