ibspan.tss.test
Class RandomEventGenerator

java.lang.Object
  extended by ibspan.tss.test.RandomGenerator
      extended by ibspan.tss.test.RandomEventGenerator

public class RandomEventGenerator
extends RandomGenerator

Author:
maciek

Field Summary
 
Fields inherited from class ibspan.tss.test.RandomGenerator
generator
 
Constructor Summary
RandomEventGenerator(OntModel umModel, OntModel restaurants, OntModel domain, int uidsSize, int sidsSize)
           
 
Method Summary
 Event createClickOrRateEvent(Integer uid, Integer sid, String targetURI, OntModel umModel, OntModel history, boolean rate)
           
 Event createEvent(OntModel history)
           
 Event createQueryEvent(Integer uid, Integer sid, Map<String,String> mappedContext, OntModel umModel, OntModel history)
           
protected  Object getRandomObject(List l)
           
 
Methods inherited from class ibspan.tss.test.RandomGenerator
getRandomDouble
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomEventGenerator

public RandomEventGenerator(OntModel umModel,
                            OntModel restaurants,
                            OntModel domain,
                            int uidsSize,
                            int sidsSize)
                     throws com.ibm.adtech.jastor.JastorException
Throws:
com.ibm.adtech.jastor.JastorException
Method Detail

createClickOrRateEvent

public Event createClickOrRateEvent(Integer uid,
                                    Integer sid,
                                    String targetURI,
                                    OntModel umModel,
                                    OntModel history,
                                    boolean rate)
                             throws com.ibm.adtech.jastor.JastorException
Throws:
com.ibm.adtech.jastor.JastorException

createQueryEvent

public Event createQueryEvent(Integer uid,
                              Integer sid,
                              Map<String,String> mappedContext,
                              OntModel umModel,
                              OntModel history)
                       throws com.ibm.adtech.jastor.JastorException
Throws:
com.ibm.adtech.jastor.JastorException

getRandomObject

protected Object getRandomObject(List l)
Overrides:
getRandomObject in class RandomGenerator

createEvent

public Event createEvent(OntModel history)
                  throws com.ibm.adtech.jastor.JastorException
Throws:
com.ibm.adtech.jastor.JastorException