CFEngine API

org.recommender.test
Class RandomRateThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.recommender.test.TesterThread
              |
              +--org.recommender.test.RandomRateThread
All Implemented Interfaces:
java.lang.Runnable

public class RandomRateThread
extends TesterThread

Created by User: herlock Date: May 10, 2003 Time: 7:31:51 PM


Field Summary
 
Fields inherited from class org.recommender.test.TesterThread
cfengine, count, maxUserid, minUserid, threadName
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
(package private) RandomRateThread(CFEngine cfengine, java.lang.String threadName, int minUserid, int maxUserid, int minItemid, int maxItemid, int count)
           
 
Method Summary
 void run()
          Main method for this thread.
 
Methods inherited from class org.recommender.test.TesterThread
fatalError
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RandomRateThread

RandomRateThread(CFEngine cfengine,
                 java.lang.String threadName,
                 int minUserid,
                 int maxUserid,
                 int minItemid,
                 int maxItemid,
                 int count)
Method Detail

run

public void run()
Main method for this thread. This will grab count recommendations for users between minUserid and maxUserid, picking a random userid each time.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

CFEngine API

Copyright © 2003 - Oregon State University www.orst.edu