Generalise the expression evaluation infrastructure - no visible change but there may expression evaluation side effects.
Add eq, ne, lt, gt, lte, gte functions to those available in expressions, for example eq(x,y) evaluates to 1 if x = y. Useful in scoring systems when there is an exception for place N.
Does that mean I can do something with no of competitors in the race eq 1 score as DNC? My scenario is a handicap and fleet race where the fleets are also part of the handicap race. So lets assume we have 1 tazar, 5 toppers, 1 oppi, 1 Mirror take part in race 1. Our SIs say a race is only a race if more than 1 boat takes part. So there are two races in my example: 5 toppers who are also aliased as handicap fleet who have all the others in too so 8 boats in handicap. But the Mirrors are also a fleet in their own right - just not for that race. So I need to be able to force sailwave not to score the mirror? In race 2 if 2 mirrors turn up they get a fleet result or that race as well as a handicap result. Would I just enter something in the custom low points... if so what? (we use standard low points)
gt(s,1)*p -- would work for when more than 1 boat races, but evaluates to 0 if 1 boat races? How do I convert that zero into 'DNC'? Even if I allocated the score equivalent to DNC rather than a DNC that might work... so thats c+1 But how do I tell it that? i.e.
gt(s,1)*p ELSE c+1 [ or gt(s,1)*p ELSE 'DNC' ]
BUT also - its not a real race so it shouldn't count in the discards... or if everyone gets a DNC would that not matter?
Calum
Calum,
The expression is for the calculation of points
from a place result. The result is always points, it cannot be used to
change the result to a code. Sailwave relies on the user to supply the
finish result: place, time or code and then operates on that.
Scripting would help but it not complete yet…
You can do ELSE constructions functionally by
using N expressions, only one of which will evaliuate to 1 in any
context. Using your example:-
“gt(s,1)*p ELSE c+1”
is the same as:-
gt(s,1)p + lte(s,1)(c+1)
1 and s <= 1 are mutually exclusive so
only one will evaluate to 1 - the remaining condition evaluating to 0.
In general you can use the inrange() function -
e.g. operating on place § say:-
inrange(p,1,i) * expression +
inrange(p,i+1,j) * expression + inrange(p,j+1,k) * expression
CJ
Calum Polwart wrote:
···
http://www.yachtsandyachting.com/http://www.sailing.org/http://www.sailwave.com/http://www.abyc.org/upload/Sailwave_ABYC_User_Guide.pdfsailwave-digest@yahoogroups.comsailwave-unsubscribe@yahoogroups.comhttp://groups.yahoo.com/group/sailwave/http://groups.yahoo.com/group/sailwave/joinmailto:sailwave-digest@yahoogroups.commailto:sailwave-fullfeatured@yahoogroups.comsailwave-unsubscribe@yahoogroups.comhttp://docs.yahoo.com/info/terms/
Colin,
There is something mysterious about this! Setting
up for flights is OK and publish the first flight aasignements. But when
opening “on day 2” it’s no longer there under publish….
Even if I made new assignemnts
Med vänliga
seglarhälsningarCheers
Anders Landenstad
Anders Landenstad
Svensk Juniorsegling
anders@juniorsegling.se
+46 733 277 007
P Please consider the environment before printing.
“on day 2” - ?? - i dont follow…
cj
Anders Landenstad (juniorsegling.se) wrote:
···
Colin,
There is
something mysterious about this! Setting
up for flights is OK and publish the first flight aasignements. But
when
opening “on day 2” it’s no longer there under publish….
Even if I made new assignemnts
Med
vänliga
seglarhälsningarCheers
Anders
Landenstad
Anders Landenstad
Svensk
Juniorsegling
anders@juniorsegling.se
+46 733
277 007
P Please
consider the environment before printing.
HI,
When I open the blw-file again I was not
able to publish “flight assignments” – Not showing up in the
publish menu.
Med vänliga
seglarhälsningar
Anders Landenstad
Anders Landenstad
Svensk Juniorsegling
anders@juniorsegling.se
+46 733 277 007
P Please consider the environment before printing.
···
From: sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com] On Behalf Of Colin Jenkins
Sent: den 18 juli 2009 10:58
To: sailwave@yahoogroups.com
Subject: Re: [sailwave] Publish
Flight assigments
“on
day 2” - ?? - i dont follow…
cj
Anders Landenstad (juniorsegling.se)
wrote:
Colin,
There is something mysterious about this! Setting up for flights is
OK and publish the first flight aasignements. But when opening “on day
2” it’s no longer there under publish…. Even if I made new
assignemnts
Med vänliga seglarhälsningarCheers
Anders Landenstad
Anders Landenstad
Svensk Juniorsegling
anders@juniorsegling.se
+46 733 277 007
P
Please consider the environment before printing.