uk.ac.bbk.dcs.automed.qproc.reformulate
Class ViewKey

java.lang.Object
  extended by uk.ac.bbk.dcs.automed.qproc.reformulate.ViewKey

public class ViewKey
extends java.lang.Object

Implements the key functionality for the atomic and composite views. The key for all the maps is the repository object id. Although this class wraps a SchemeInfo object for convenience in further processing, but the key is the repository object id. The method equals() has been redefined to take care of this functionality.

Author:
Sandeep Mittal, Lucas Zamboulis

Constructor Summary
ViewKey(SchemeInfo si)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 SchemeInfo getKey()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViewKey

public ViewKey(SchemeInfo si)
Method Detail

getKey

public SchemeInfo getKey()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object