package operteam.limitoptimization; /** * This class was automatically generated by the data modeler tool. */ @org.optaplanner.core.api.domain.entity.PlanningEntity(difficultyComparatorClass = customer.DifficultyComparator.class) public class customer implements java.io.Serializable { static final long serialVersionUID = 1L; @org.kie.api.definition.type.Label("카드한도") private java.math.BigDecimal limit; @org.kie.api.definition.type.Label("기대수익") private java.math.BigDecimal exptRevenue; @org.kie.api.definition.type.Label("예상손실") private java.math.BigDecimal exptLoss; @org.kie.api.definition.type.Label("기대수익 반응률") private java.math.BigDecimal revenueRespRate; @org.kie.api.definition.type.Label("예상손실 반응률") private java.math.BigDecimal lossRespRate; @org.kie.api.definition.type.Label("한도조정률") @org.optaplanner.core.api.domain.variable.PlanningVariable(valueRangeProviderRefs = {"LimitAdjRateRange"}) private operteam.limitoptimization.limitAdjRate limitAdjRateInfo; public customer() { } public java.math.BigDecimal getLimit() { return this.limit; } public void setLimit(java.math.BigDecimal limit) { this.limit = limit; } public java.math.BigDecimal getExptRevenue() { return this.exptRevenue; } public void setExptRevenue(java.math.BigDecimal exptRevenue) { this.exptRevenue = exptRevenue; } public java.math.BigDecimal getExptLoss() { return this.exptLoss; } public void setExptLoss(java.math.BigDecimal exptLoss) { this.exptLoss = exptLoss; } public java.math.BigDecimal getRevenueRespRate() { return this.revenueRespRate; } public void setRevenueRespRate(java.math.BigDecimal revenueRespRate) { this.revenueRespRate = revenueRespRate; } public java.math.BigDecimal getLossRespRate() { return this.lossRespRate; } public void setLossRespRate(java.math.BigDecimal lossRespRate) { this.lossRespRate = lossRespRate; } public operteam.limitoptimization.limitAdjRate getLimitAdjRateInfo() { return this.limitAdjRateInfo; } public void setLimitAdjRateInfo( operteam.limitoptimization.limitAdjRate limitAdjRateInfo) { this.limitAdjRateInfo = limitAdjRateInfo; } public customer(java.math.BigDecimal limit, java.math.BigDecimal exptRevenue, java.math.BigDecimal exptLoss, java.math.BigDecimal revenueRespRate, java.math.BigDecimal lossRespRate, operteam.limitoptimization.limitAdjRate limitAdjRateInfo) { this.limit = limit; this.exptRevenue = exptRevenue; this.exptLoss = exptLoss; this.revenueRespRate = revenueRespRate; this.lossRespRate = lossRespRate; this.limitAdjRateInfo = limitAdjRateInfo; } @javax.annotation.Generated(value = {"org.optaplanner.workbench.screens.domaineditor.service.ComparatorDefinitionService"}) @org.optaplanner.workbench.screens.domaineditor.model.ComparatorDefinition(objectPropertyPaths = { @org.optaplanner.workbench.screens.domaineditor.model.ComparatorObjectPropertyPath(ascending = true, objectProperties = {@org.optaplanner.workbench.screens.domaineditor.model.ComparatorObjectProperty(name = "limit", type = java.math.BigDecimal.class)}), @org.optaplanner.workbench.screens.domaineditor.model.ComparatorObjectPropertyPath(ascending = true, objectProperties = {@org.optaplanner.workbench.screens.domaineditor.model.ComparatorObjectProperty(name = "revenueRespRate", type = java.math.BigDecimal.class)})}) public static class DifficultyComparator implements java.io.Serializable, java.util.Comparator { static final long serialVersionUID = 1L; @javax.annotation.Generated(value = {"org.optaplanner.workbench.screens.domaineditor.service.ComparatorDefinitionService"}) public int compare(operteam.limitoptimization.customer o1, operteam.limitoptimization.customer o2) { return java.util.Comparator .comparing( (operteam.limitoptimization.customer o) -> { Object tempResult = o; tempResult = tempResult == null ? null : ((operteam.limitoptimization.customer) tempResult) .getLimit(); return (java.math.BigDecimal) tempResult; }) .thenComparing( (operteam.limitoptimization.customer o) -> { Object tempResult = o; tempResult = tempResult == null ? null : ((operteam.limitoptimization.customer) tempResult) .getRevenueRespRate(); return (java.math.BigDecimal) tempResult; }).compare(o1, o2); } } }