QL.info("::::: " + this.getClass().getSimpleName() + " :::::");
final StopClock clock = new StopClock();
clock.startClock();
QL.info("Started calculation at: " + clock.getElapsedTime());
/*********************
*** MARKET DATA ***
*********************/
final Calendar calendar = new Target();
// FIXME: outdated...
Date settlementDate = new Date(18, Month.September, 2008);
// must be a business day
settlementDate = calendar.adjust(settlementDate);
final int fixingDays = 3;
final int settlementDays = 3;
final Date todaysDate = calendar.advance(settlementDate, -fixingDays, TimeUnit.Days);
new Settings().setEvaluationDate(todaysDate);
QL.info("Evaluation date: " + todaysDate.weekday() + ", " + todaysDate);
QL.info("Settlement date: " + settlementDate.weekday() + ", " + settlementDate);