#239 closed defect (fixed)
Embedded TimeSet functions causes TOL to die
Reported by: | ptejedor | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | TimeSetAlgebra | Version: | 1.1.2 |
Severity: | normal | Keywords: | |
Cc: |
Description
If you want to calculate timesets as "the monday nearest Corpus Christi", by
calculating first Corpus Christi (Succ(Easter,60) and then calling a function to
calculate a transformation over it, like in the example below, TOL enters in a
state in which it asks for 100% CPU, and it eventually dies. Here is a snippet
of code to demonstrate it:
TimeSet LC(TimeSet t){
LC: lunes cercanos: transfiere los dias pertenecientes
a t entre semana al lunes mas cercano. Si el dia es
sabado, domingo o lunes, no lo toca
/
TimeSet TsSDL = WD(1) + WD(6) + WD(7); Sabado, Domingo y Lunes
TimeSet TsMXJ = WD(2) + WD(3) + WD(4); Martes, Miercoles y Jueves
TimeSet TsV = WD(5);
TimeSet final= t*TsSDL + Succ(t*TsMXJ,-1,Semanal) + Succ(t*TsV,+1,Semanal)
};
TimeSet SD=WD(6)+WD(7); Sabados y Domingos
TimeSet CC=Succ(Easter,60); Corpus Christi
TimeSet LCCC=LC(CC); Lunes previo al Corpus Christi
TimeSet festivos= SD + LCCC;
If you, after compiling this code try to look at the resulting timese, TOL dies
abruptly.
Change History (6)
comment:1 Changed 19 years ago by
Owner: | changed from danirus to Víctor de Buen Remiro |
---|
comment:2 Changed 19 years ago by
Status: | new → assigned |
---|
comment:3 Changed 19 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Bug has been fixed.
More information in
http://cvs.tol-project.org/viewcvs.cgi/toldoc/Time/TD-diseño.pdf
comment:4 Changed 18 years ago by
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000239 |
---|
Pardon to have forgotten this bug.
We are working about it
Thanks to report it