edu.udo.cs.ie.cowbots.elpParser.dlp
Class DLPVariable
java.lang.Object
edu.udo.cs.ie.cowbots.elpParser.dlp.DLPVariable
- All Implemented Interfaces:
- DLPTerm
public class DLPVariable
- extends java.lang.Object
- implements DLPTerm
Field Summary |
private java.lang.String |
name
|
Method Summary |
java.lang.String |
getName()
get variable or constant or operator back |
boolean |
isArithOP()
if this is arithmetic operator or not |
boolean |
isCompOP()
if this is comparative operator 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 |
name
private java.lang.String name
DLPVariable
public DLPVariable(java.lang.String name)
getName
public java.lang.String getName()
- Description copied from interface:
DLPTerm
- get variable or constant or operator back
- Specified by:
getName
in interface DLPTerm
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isOperator
public boolean isOperator()
- Description copied from interface:
DLPTerm
- if this is operator or not
- Specified by:
isOperator
in interface DLPTerm
- Returns:
isArithOP
public boolean isArithOP()
- Description copied from interface:
DLPTerm
- if this is arithmetic operator or not
- Specified by:
isArithOP
in interface DLPTerm
- Returns:
isCompOP
public boolean isCompOP()
- Description copied from interface:
DLPTerm
- if this is comparative operator or not
- Specified by:
isCompOP
in interface DLPTerm
- Returns: