Examples of EGenRandom


Examples of edu.brown.benchmark.tpce.util.EGenRandom

    public CustomerAccountsGenerator(Table catalog_tbl, TPCEGenerator generator) {
        super(catalog_tbl, generator);
       
        // do not need the Table for this. Nasty, though. Have to use type casting since we need specific functions
        customerGenerator = (CustomerGenerator)generator.getTableGen(TPCEConstants.TABLENAME_CUSTOMER, null);
        rnd = new EGenRandom(EGenRandom.RNG_SEED_TABLE_DEFAULT);
       
        taxableNames = generator.getInputFile(InputFile.TAXACC);
        nonTaxableNames = generator.getInputFile(InputFile.NONTAXACC);
        person = new PersonHandler(generator.getInputFile(InputFile.LNAME), generator.getInputFile(InputFile.FEMFNAME),
                generator.getInputFile(InputFile.MALEFNAME));
View Full Code Here

Examples of edu.brown.benchmark.tpce.util.EGenRandom

        super(catalog_tbl, generator);
       
        customersNum = generator.getCustomersNum();
        customersStart = generator.getStartCustomer();
       
        rnd = new EGenRandom(EGenRandom.RNG_SEED_TABLE_DEFAULT);
       
        exchangeCount = generator.getInputFile(InputFile.EXCHANGE).getRecordsNum();
        companyCount = generator.getCompanyCount(generator.getTotalCustomers());
       
        streetFile = generator.getInputFile(InputFile.STNAME);
View Full Code Here

Examples of edu.brown.benchmark.tpce.util.EGenRandom

        this.sut = sut ;
        this.priceBoard = priceBoard;
        this.tickerTape = tickerTape;
        this.baseTime = baseTime;
        this.currentTime = currentTime;
        rnd =  new EGenRandom(EGenRandom.RNG_SEED_BASE_MEE_TRADING_FLOOR );
        orderProcessingDelayMean = 1.0;
        Method SendTradeResult = null;
            try{
                SendTradeResult = MEETradingFloor.class.getMethod("sendTradeResult", TTradeRequest.class);
            }catch(Exception e){
View Full Code Here

Examples of edu.brown.benchmark.tpce.util.EGenRandom

         this.sut = sut ;
         this.priceBoard = priceBoard;
         this.tickerTape = tickerTape;
         this.baseTime = baseTime;
         this.currentTime = currentTime;
         rnd =  new EGenRandom(RNGSeed );
         orderProcessingDelayMean = 1.0;
     }
View Full Code Here

Examples of edu.brown.benchmark.tpce.util.EGenRandom

    private final CustomerAccountsGenerator custAccGen;
    private final long secCount;
    private long[] secIds = new long[MAX_SECURITIES_PER_ACCOUNT];
   
    public HoldingsAndTrades(TPCEGenerator generator) {
        rnd = new EGenRandom(EGenRandom.RNG_SEED_TABLE_DEFAULT);
        custAccGen = (CustomerAccountsGenerator)generator.getTableGen(TPCEConstants.TABLENAME_CUSTOMER_ACCOUNT, null);
        secCount = SecurityHandler.getSecurityNum(generator.getTotalCustomers());
    }
View Full Code Here

Examples of edu.brown.benchmark.tpce.util.EGenRandom

    private int tradingTimeSoFar;
    private Date baseTime, currTime;
    private double meanInTheMoneySubmissionDelay;
   
    public MEESecurity() {
        rnd = new EGenRandom(EGenRandom.RNG_SEED_BASE_MEE_SECURITY);
       
        rangeLow = new EGenMoney(TPCEConstants.minSecPrice);
        rangeHigh = new EGenMoney(TPCEConstants.maxSecPrice);
        range = new EGenMoney(TPCEConstants.maxSecPrice - TPCEConstants.minSecPrice);
        period = SEC_PRICE_PERIOD;      // time to get to the same price (in seconds)
View Full Code Here

Examples of edu.brown.benchmark.tpce.util.EGenRandom

    public PersonHandler(InputFileHandler lastNames, InputFileHandler femFirstNames, InputFileHandler maleFirstNames) {
        this.lastNames = lastNames;
        this.femFirstNames = femFirstNames;
        this.maleFirstNames = maleFirstNames;
       
        this.rnd = new EGenRandom();
    }
View Full Code Here

Examples of edu.brown.benchmark.tpce.util.EGenRandom

    public AccountPermsGenerator(Table catalog_tbl, TPCEGenerator generator) {
        super(catalog_tbl, generator);
       
        accsGenerator = (CustomerAccountsGenerator)generator.getTableGen(TPCEConstants.TABLENAME_CUSTOMER_ACCOUNT, null); // just for generating ids
       
        rnd = new EGenRandom(EGenRandom.RNG_SEED_TABLE_DEFAULT);
       
        person = new PersonHandler(generator.getInputFile(InputFile.LNAME), generator.getInputFile(InputFile.FEMFNAME),
                generator.getInputFile(InputFile.MALEFNAME));
    }
View Full Code Here

Examples of edu.brown.benchmark.tpce.util.EGenRandom

        super(catalog_tbl, generator);
       
        customersNum = generator.getCustomersNum();
        startCustomerId = generator.getStartCustomer();
       
        rnd = new EGenRandom(EGenRandom.RNG_SEED_TABLE_DEFAULT);
        person = new PersonHandler(generator.getInputFile(InputFile.LNAME), generator.getInputFile(InputFile.FEMFNAME),
                generator.getInputFile(InputFile.MALEFNAME));
        statusType = generator.getInputFile(InputFile.STATUS);
        areaCodes = generator.getInputFile(InputFile.AREA);
       
View Full Code Here

Examples of edu.brown.benchmark.tpce.util.EGenRandom

import edu.brown.benchmark.tpce.util.EGenRandom;

public class CETxnMixGenerator {
    public CETxnMixGenerator( TDriverCETxnSettings driverCETxnSettings, BaseLogger logger ){
        this.driverCETxnSettings =  driverCETxnSettings;
        rnd = new EGenRandom(EGenRandom.RNG_SEED_BASE_TXN_MIX_GENERATOR );
        this.logger = logger;
        txnArrayCurrentIndex = 0;
        txnArray = null;
     }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.