edu.udo.cs.ie.cowbots.elpParser.dlp
Class DLPVariable

Package class diagram package DLPVariable
java.lang.Object
  extended by 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
           
 
Constructor Summary
DLPVariable(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
 

Field Detail

name

private java.lang.String name
Constructor Detail

DLPVariable

public DLPVariable(java.lang.String name)
Method Detail

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: