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

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

public class DLPOperator
extends java.lang.Object
implements DLPTerm

Operators which in used by list of terms

See Also:
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

actualOp

private java.lang.String actualOp

arith

private java.util.HashSet<java.lang.String> arith

comp

private java.util.HashSet<java.lang.String> comp

isCompOP

private boolean isCompOP

isArithOP

private boolean isArithOP
Constructor Detail

DLPOperator

public DLPOperator()

DLPOperator

public DLPOperator(java.lang.String n)
Method Detail

getOperator

public java.lang.String getOperator(java.lang.String name)
get actual operator from alternative operator list back

Parameters:
name - the name of operator String
Returns:
actualOp

isArithOP

public void isArithOP(boolean b)
switch to identify whether that operator is arithmetic or not

Parameters:
b - identifier Boolean

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 void isCompOP(boolean b)
switch to identify whether that operator is comparative or not

Parameters:
b - identifier Boolean

isCompOP

public boolean isCompOP()
Description copied from interface: DLPTerm
if this is comparative operator or not

Specified by:
isCompOP in interface DLPTerm
Returns:

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: