001/* 002 * Copyright 2020 Anyware Services 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017 018package org.ametys.plugins.odfpilotage.cost.entity; 019 020/** 021 * This class store the cost data values of the coursePart 022 */ 023public class CoursePartCostData 024{ 025 private Long _calculatedGroups; 026 private Long _groupsToOpen; 027 private NormDetails _norm; 028 029 /** 030 * Get norm details 031 * @return norm details 032 */ 033 public NormDetails getNormDetails() 034 { 035 return _norm; 036 } 037 038 /** 039 * Set norm details 040 * @param norm norm details 041 */ 042 public void setNormDetails(NormDetails norm) 043 { 044 _norm = norm; 045 } 046 047 /** 048 * Get the maximum effective 049 * @return the maximum effective 050 */ 051 public Long getEffectiveMax() 052 { 053 return _norm.getEffectiveMax(); 054 } 055 056 /** 057 * Get the MinSup effective 058 * @return the MinSup effective 059 */ 060 public Long getEffectiveMinSup() 061 { 062 return _norm.getEffectiveMinSup(); 063 } 064 065 /** 066 * Get the norm label 067 * @return the norm label 068 */ 069 public String getNormLabel() 070 { 071 return _norm.getNormLabel(); 072 } 073 074 /** 075 * Get the calculated groups 076 * @return the calculated groups 077 */ 078 public Long getCalculatedGroups() 079 { 080 return _calculatedGroups; 081 } 082 083 /** 084 * Set the calculated groups 085 * @param calculatedGroups the computed groups 086 */ 087 public void setComputedGroups(Long calculatedGroups) 088 { 089 this._calculatedGroups = calculatedGroups; 090 } 091 092 /** 093 * Get groups to open 094 * @return the groups to open 095 */ 096 public Long getGroupsToOpen() 097 { 098 return _groupsToOpen; 099 } 100 101 /** 102 * Set groups to open 103 * @param groupsToOpen the groups open 104 */ 105 public void setGroupsToOpen(Long groupsToOpen) 106 { 107 this._groupsToOpen = groupsToOpen; 108 } 109}