package br.ufrgs.inf.prosoft.shopizer;

public class Client {

    //times in seconds
    private double minSessionTime = 0.5;
    private double maxSessionTime = 60 * 60; // 60 minutes
    private double sdSessionTime = 15 * 60;
    private double meanSessionTime = 15 * 60; // 15 minutes

    private double minThinkingTime = 1; //seconds
    private double maxThinkingTime = 70; //seconds
    private double sdThinkingTime = 7;
    private double meanThinkingTime = 7;

    private double sessionTime;

    public Client() {
        sessionTime = WorkloadUtils.randGaussian(meanSessionTime, sdSessionTime, minSessionTime, maxSessionTime);
    }

    public double getSessionTimeInSeconds() {
        return sessionTime;
    }

    public double getThinkingTimeInSeconds() {
        return WorkloadUtils.randGaussian(meanThinkingTime, sdThinkingTime, minThinkingTime, maxThinkingTime);
//        return WorkloadUtils.randInt(minThinkingTime, maxThinkingTime);
    }

}
