|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--torero.model.Production.ProductionRHS
Class for internal representation of the Right Hand Side (RHS) of the production.
Constructor Summary | |
Production.ProductionRHS(Iterator RHSSymbols)
|
Method Summary | |
boolean |
equals(Object o)
Overridden to define to RHS's equal when they have exactly the same order of the same Symbols. |
void |
flipSymbols(int posA,
int posB)
Changes the places of the symbols on the given positions. |
Iterator |
getSymbols()
Returns an Iterator of the ListElements the RHS is built off (from left to right). |
Enumeration |
getSymbolsEnum()
Returns an Enumeration of the ListElements the RHS is built off (from left to right). |
int |
giveSymbolPosition(Production.ListElement elem)
Returns the position of the given ListElement (if it doesn't contain such a list element - -1 is returned). |
void |
setSymbols(Iterator RHSSymbols)
Set a new configuration of Symbols to this RHS. |
Production.ListElement |
symbolAt(int pos)
Returns the Listelement on the given Position (if there is no ListElement on this pos - null is returned). |
int |
symbolSize()
Returns the number of Symbols that the RHS has. |
String |
toDot(Derivat der,
String offset,
boolean withattribs)
Support for Dot File generation. |
String |
toDotLabels(Derivat der,
String offset)
Support for Dot File generation. |
StringBuffer |
toOx(StringBuffer sb)
Support for Ox File generation. |
String |
toString()
|
String |
toString2()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Production.ProductionRHS(Iterator RHSSymbols)
Method Detail |
public Iterator getSymbols()
public Enumeration getSymbolsEnum()
public StringBuffer toOx(StringBuffer sb)
public void setSymbols(Iterator RHSSymbols)
RHSSymbols
- has to be an Iterator of Symbols.public void flipSymbols(int posA, int posB)
public int symbolSize()
public int giveSymbolPosition(Production.ListElement elem)
public Production.ListElement symbolAt(int pos)
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
public String toString2()
public String toDot(Derivat der, String offset, boolean withattribs)
public String toDotLabels(Derivat der, String offset)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |