/**
 * Copyright (C) 2009 - 2010 by OpenGamma Inc.
 *
 * Please see distribution for license.
 */
package com.opengamma.financial.security.option;

import com.opengamma.financial.Currency;
import com.opengamma.id.Identifier;
import com.opengamma.id.UniqueIdentifier;
import com.opengamma.util.time.Expiry;

/**
 * An American equity option security.
 */
public class AmericanVanillaEquityOptionSecurity extends EquityOptionSecurity implements AmericanVanillaOption {

  /**
   * Creates the security.
   * @param optionType
   * @param strike
   * @param expiry
   * @param underlyingIdentifier
   * @param currency
   * @param exchange
   */
  public AmericanVanillaEquityOptionSecurity(final OptionType optionType, final double strike, final Expiry expiry, final Identifier underlyingIdentifier,
      final Currency currency, final double pointValue, final String exchange) {
    super(optionType, strike, expiry, underlyingIdentifier, currency, pointValue, exchange);
  }

  //-------------------------------------------------------------------------
  @Override
  public <T> T accept(final OptionVisitor<T> visitor) {
    return visitor.visitAmericanVanillaOption(this);
  }

  @Override
  public <T> T accept(final EquityOptionSecurityVisitor<T> visitor) {
    return visitor.visitAmericanVanillaEquityOptionSecurity(this);
  }

}

@@ -222,50 +222,8 @@
 er;%0A
-import com.opengamma.id.UniqueIdentifier;%0A
 impo
@@ -257,16 +257,16 @@
 Expiry;%0A
+
 %0A/**%0A * 
@@ -474,16 +474,47 @@
 tionType
+ the type of option CALL or PUT
 %0A   * @p
@@ -524,16 +524,33 @@
 m strike
+ the strike price
 %0A   * @p
@@ -560,16 +560,32 @@
 m expiry
+ the expire date
 %0A   * @p
@@ -613,50 +613,190 @@
 fier
-%0A   * @param currency%0A   * @param exchange
+ Identifier for underlying equity%0A   * @param currency currency in which it trades%0A   * @param pointValue the option point value%0A   * @param exchange exchange where the option trades
 %0A   

Make code conform to Checkstyle standards