|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.ie.cowbots.elpParser.dlp.DLPOperator
public class DLPOperator
Operators which in used by list of terms
and {@link DLPTerm}
Field Summary | |
---|---|
private java.lang.String |
actualOp
|
private java.util.HashSet<java.lang.String> |
arith
|
private java.util.HashSet<java.lang.String> |
comp
|
private boolean |
isArithOP
|
private boolean |
isCompOP
|
Constructor Summary | |
---|---|
DLPOperator()
|
|
DLPOperator(java.lang.String n)
|
Method Summary | |
---|---|
java.lang.String |
getName()
get variable or constant or operator back |
java.lang.String |
getOperator(java.lang.String name)
get actual operator from alternative operator list back |
boolean |
isArithOP()
if this is arithmetic operator or not |
void |
isArithOP(boolean b)
switch to identify whether that operator is arithmetic or not |
boolean |
isCompOP()
if this is comparative operator or not |
void |
isCompOP(boolean b)
switch to identify whether that operator is comparative or not |
boolean |
isOperator()
if this is operator or not |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String actualOp
private java.util.HashSet<java.lang.String> arith
private java.util.HashSet<java.lang.String> comp
private boolean isCompOP
private boolean isArithOP
Constructor Detail |
---|
public DLPOperator()
public DLPOperator(java.lang.String n)
Method Detail |
---|
public java.lang.String getOperator(java.lang.String name)
name
- the name of operator String
actualOp
public void isArithOP(boolean b)
b
- identifier Boolean
public boolean isArithOP()
DLPTerm
isArithOP
in interface DLPTerm
public void isCompOP(boolean b)
b
- identifier Boolean
public boolean isCompOP()
DLPTerm
isCompOP
in interface DLPTerm
public java.lang.String getName()
DLPTerm
getName
in interface DLPTerm
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isOperator()
DLPTerm
isOperator
in interface DLPTerm
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |