@@ -52,6 +52,18 @@ class RankCache
52
52
#[ORM \Column(options: ['comment ' => 'Total runtime in milliseconds (public) ' , 'default ' => 0 ])]
53
53
private int $ totalruntime_public = 0 ;
54
54
55
+ #[ORM \Column(options: ['comment ' => 'Total max optscore (restricted audience) ' , 'default ' => 0 ])]
56
+ private float $ totaloptscore_max_restricted = 0 ;
57
+
58
+ #[ORM \Column(options: ['comment ' => 'Max optscore (public audience) ' , 'default ' => 0 ])]
59
+ private float $ optscore_max_public = 0 ;
60
+
61
+ #[ORM \Column(options: ['comment ' => 'Min optscore (restricted audience) ' , 'default ' => 0 ])]
62
+ private float $ optscore_min_restricted = 0 ;
63
+
64
+ #[ORM \Column(options: ['comment ' => 'Min optscore (public audience) ' , 'default ' => 0 ])]
65
+ private float $ optscore_min_public = 0 ;
66
+
55
67
#[ORM \Id]
56
68
#[ORM \ManyToOne]
57
69
#[ORM \JoinColumn(name: 'cid ' , referencedColumnName: 'cid ' , onDelete: 'CASCADE ' )]
@@ -128,6 +140,50 @@ public function getTotalruntimePublic(): int
128
140
return $ this ->totalruntime_public ;
129
141
}
130
142
143
+ public function setTotaloptscoreMaxRestricted (float $ totaloptscoreMaxRestricted ): RankCache
144
+ {
145
+ $ this ->totaloptscore_max_restricted = $ totaloptscoreMaxRestricted ;
146
+ return $ this ;
147
+ }
148
+
149
+ public function getTotaloptscoreMaxRestricted (): float
150
+ {
151
+ return $ this ->totaloptscore_max_restricted ;
152
+ }
153
+
154
+ public function setOptscoreMaxPublic (float $ optscoreMaxPublic ): RankCache
155
+ {
156
+ $ this ->optscore_max_public = $ optscoreMaxPublic ;
157
+ return $ this ;
158
+ }
159
+
160
+ public function getOptscoreMaxPublic (): float
161
+ {
162
+ return $ this ->optscore_max_public ;
163
+ }
164
+
165
+ public function setOptscoreMinRestricted (float $ optscoreMinRestricted ): RankCache
166
+ {
167
+ $ this ->optscore_min_restricted = $ optscoreMinRestricted ;
168
+ return $ this ;
169
+ }
170
+
171
+ public function getOptscoreMinRestricted (): float
172
+ {
173
+ return $ this ->optscore_min_restricted ;
174
+ }
175
+
176
+ public function setOptscoreMinPublic (float $ optscoreMinPublic ): RankCache
177
+ {
178
+ $ this ->optscore_min_public = $ optscoreMinPublic ;
179
+ return $ this ;
180
+ }
181
+
182
+ public function getOptscoreMinPublic (): float
183
+ {
184
+ return $ this ->optscore_min_public ;
185
+ }
186
+
131
187
public function setContest (?Contest $ contest = null ): RankCache
132
188
{
133
189
$ this ->contest = $ contest ;
0 commit comments