private double handleException(Title t) { double r = 0; switch (Society.getSociety().Country) { case "DKK": switch (t.Currency) { case "EUR": r = 0.0239; break; case "LVL": r = 0.0266; break; case "BGN": r = 0.0345; break; } break; case "LVL": switch (t.Currency) { case "EUR": r = 0.0264; break; case "LTL": r = 0.0291; break; case "BGN": r = 0.0370; break; } break; case "LTL": switch (t.Currency) { case "EUR": r = 0.026; break; case "BGN": r = 0.013; break; } break; case "BGN": if (t.Currency == "EUR") r = 0.0104; break; } return r; }
protected static bool inSpreadModule(Title t) { return (t is Corp || t is Govt); }
protected static bool inEquityModule(Title t) { return t is Equity; }
protected static bool inChangeModule(Title t) { return t.Country != Society.getSociety().Country; }
private static bool inSpreadModule(Title t) { return (t is Corp || t is Govt); }
private static bool inPropertyModule(Title t) { return t is Property; }
private static bool inInterestModule(Title t) { return t is Titlenominal; }
private static bool inEquityModule(Title t) { return t is Equity; }
private static bool inChangeModule(Title t) { return t.Currency != Society.getSociety().Currency; }