logic
Class LogicalOr

java.lang.Object
  extended by logic.Formula
      extended by logic.LogicalOr

public class LogicalOr
extends Formula

Logical Or

Represents the logical operator OR. Typically returns the union of two expressions result.

Copyright(c) 2005 Université Laval, LSFM research group.

Version:
1.0
Author:
Nicolas Richard

Field Summary
static java.lang.String TYPE
          A constant repersenting the logical operator OR
 
Fields inherited from class logic.Formula
subFormula
 
Constructor Summary
LogicalOr(Formula subFormula1, Formula subFormula2)
          Default constructor using the base class constructor.
 
Method Summary
 java.lang.String getType()
          Returns the type of the logical operator OR
 
Methods inherited from class logic.Formula
depth, equals, getSubFormula, setSubFormula, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
A constant repersenting the logical operator OR

Constructor Detail

LogicalOr

public LogicalOr(Formula subFormula1,
                 Formula subFormula2)
Default constructor using the base class constructor.

Parameters:
subFormula1 - the first expression
subFormula2 - the second expression
Method Detail

getType

public java.lang.String getType()
Returns the type of the logical operator OR

Specified by:
getType in class Formula
Returns:
a string representing the logical operator OR.