com.bigdata.relation.rule
Interface IVariableOrConstant<E>

All Superinterfaces:
Serializable
All Known Subinterfaces:
IConstant<E>, IVariable<E>
All Known Implementing Classes:
Constant, Var

public interface IVariableOrConstant<E>
extends Serializable

Abstraction models either a constant or an unbound variable.

Version:
$Id: IVariableOrConstant.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Method Summary
 boolean equals(IVariableOrConstant<E> o)
          Return true if this is the same variable or if both values are Constant whose values are the same.
 E get()
          Return the bound value.
 String getName()
          Return the name of a variable.
 boolean isConstant()
          Return true iff this is a constant.
 boolean isVar()
          Return true iff this is a variable.
 

Method Detail

isVar

boolean isVar()
Return true iff this is a variable.


isConstant

boolean isConstant()
Return true iff this is a constant.


equals

boolean equals(IVariableOrConstant<E> o)
Return true if this is the same variable or if both values are Constant whose values are the same.


get

E get()
Return the bound value.

Throws:
UnsupportedOperationException - if this is a variable.

getName

String getName()
Return the name of a variable.

Throws:
UnsupportedOperationException - if this is not a variable.


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.