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

Package class diagram package DLPConstant
java.lang.Object
  extended by edu.udo.cs.ie.cowbots.elpParser.dlp.DLPConstant
All Implemented Interfaces:
DLPTerm

public class DLPConstant
extends java.lang.Object
implements DLPTerm

constant element of a term.


Field Summary
private  java.lang.String name
           
 
Constructor Summary
DLPConstant(java.lang.String name)
          Default constructor
 
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

DLPConstant

public DLPConstant(java.lang.String name)
Default constructor

Parameters:
name - a char which predefine in javaCC String
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: