class ForexOptionVanillaDefinition implements InstrumentDefinition<InstrumentDerivative> {

  @Override
  public ForexOptionVanilla toDerivative(final ZonedDateTime date) {
    ArgumentChecker.notNull(date, "date");
    final Forex fx = _underlyingForex.toDerivative(date);
    final double expirationTime = TimeCalculator.getTimeBetween(date, _expirationDate);
    return new ForexOptionVanilla(fx, expirationTime, _isCall, _isLong);
  }

  public  ForexOptionVanillaDefinition(final ForexDefinition forex, final ZonedDateTime expirationDate, final boolean isCall, final boolean isLong);

}