edu.ucla.belief.rc2.caching
Class RC2CachingScheme_Collection

Object
  extended by RC2CachingScheme_Collection
All Implemented Interfaces:
RC2.CachingScheme

public final class RC2CachingScheme_Collection
extends Object
implements RC2.CachingScheme

This class generates caching schemes from Collections for RC2 Objects.


Field Summary
 String name
           
 
Constructor Summary
RC2CachingScheme_Collection(String name, Collection nodesToCache)
          This constructor saves the collection nodesToCache and uses it directly, it does not make a copy of it or ever modify it.
 
Method Summary
 Collection getCachingScheme(RC2 rc)
           
 String toString()
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final String name
Constructor Detail

RC2CachingScheme_Collection

public RC2CachingScheme_Collection(String name,
                                   Collection nodesToCache)
This constructor saves the collection nodesToCache and uses it directly, it does not make a copy of it or ever modify it.

Method Detail

toString

public String toString()
Specified by:
toString in interface RC2.CachingScheme
Overrides:
toString in class Object

getCachingScheme

public Collection getCachingScheme(RC2 rc)
Specified by:
getCachingScheme in interface RC2.CachingScheme


Copyright 2010 UCLA Automated Reasoning Group