public SimulationAttributeSet(final Double min, final Double max, final Double mean, final String timeUnit, final Double standardDeviation, final String distributionType) { this.min = new Min(min); this.max = new Max(max); this.mean = new Mean(mean); this.timeUnit = new TimeUnit(timeUnit); this.standardDeviation = new StandardDeviation(standardDeviation); this.distributionType = new DistributionType(distributionType); }
@Override public boolean equals(Object o) { if (o instanceof SimulationAttributeSet) { SimulationAttributeSet other = (SimulationAttributeSet) o; return min.equals(other.min) && max.equals(other.max) && mean.equals(other.mean) && timeUnit.equals(other.timeUnit) && standardDeviation.equals(other.standardDeviation) && distributionType.equals(other.distributionType); } return false; } }
@Override public int hashCode() { return HashUtil.combineHashCodes(min.hashCode(), max.hashCode(), mean.hashCode(), timeUnit.hashCode(), standardDeviation.hashCode(), distributionType.hashCode()); }
public SimulationAttributeSet() { this(new Min(), new Max(), new Mean(), new TimeUnit(), new StandardDeviation(), new DistributionType()); }
@Override public int hashCode() { return HashUtil.combineHashCodes(min.hashCode(), max.hashCode(), mean.hashCode(), timeUnit.hashCode(), standardDeviation.hashCode(), distributionType.hashCode(), quantity.hashCode(), workingHours.hashCode(), unitCost.hashCode(), currency.hashCode()); }
@Override public boolean equals(Object o) { if (o instanceof SimulationSet) { SimulationSet other = (SimulationSet) o; return min.equals(other.min) && max.equals(other.max) && mean.equals(other.mean) && timeUnit.equals(other.timeUnit) && standardDeviation.equals(other.standardDeviation) && distributionType.equals(other.distributionType) && quantity.equals(other.quantity) && workingHours.equals(other.workingHours) && unitCost.equals(other.unitCost) && currency.equals(other.currency); } return false; } }
public SimulationSet() { this(new Min(), new Max(), new Mean(), new TimeUnit(), new StandardDeviation(), new DistributionType(), new Quantity(), new WorkingHours(), new UnitCost(), new Currency()); }