org.ota.vehicle
Class VehicleCharge.Calculation

java.lang.Object
  extended by org.ota.vehicle.VehicleCharge.Calculation
Enclosing class:
VehicleCharge

public static class VehicleCharge.Calculation
extends java.lang.Object

Information on how this charge was calculated, for example, a daily rate multiplied by the number of days, a percentage, etc. Schema fragment(s) for this class:

 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Calculation" minOccurs="0" maxOccurs="5">
   <xs:complexType>
     <xs:attribute type="xs:float" use="optional" name="UnitCharge"/>
     <xs:attribute type="xs:string" use="optional" name="UnitName"/>
     <xs:attribute type="xs:int" use="optional" name="Quantity"/>
     <xs:attribute type="xs:float" use="optional" name="Percentage"/>
     <xs:attribute use="optional" name="Applicability">
       <xs:simpleType>
         <!-- Reference to inner class Applicability -->
       </xs:simpleType>
     </xs:attribute>
     <xs:attribute type="xs:int" use="optional" name="MaxQuantity"/>
     <xs:attribute type="xs:float" use="optional" name="Total"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class VehicleCharge.Calculation.Applicability
          Schema fragment(s) for this class:
 
Constructor Summary
VehicleCharge.Calculation()
           
 
Method Summary
 VehicleCharge.Calculation.Applicability getApplicability()
          Get the 'Applicability' attribute value.
 java.lang.Integer getMaxQuantity()
          Get the 'MaxQuantity' attribute value.
 java.lang.Float getPercentage()
          Get the 'Percentage' attribute value.
 java.lang.Integer getQuantity()
          Get the 'Quantity' attribute value.
 java.lang.Float getTotal()
          Get the 'Total' attribute value.
 java.lang.Float getUnitCharge()
          Get the 'UnitCharge' attribute value.
 java.lang.String getUnitName()
          Get the 'UnitName' attribute value.
 void setApplicability(VehicleCharge.Calculation.Applicability applicability)
          Set the 'Applicability' attribute value.
 void setMaxQuantity(java.lang.Integer maxQuantity)
          Set the 'MaxQuantity' attribute value.
 void setPercentage(java.lang.Float percentage)
          Set the 'Percentage' attribute value.
 void setQuantity(java.lang.Integer quantity)
          Set the 'Quantity' attribute value.
 void setTotal(java.lang.Float total)
          Set the 'Total' attribute value.
 void setUnitCharge(java.lang.Float unitCharge)
          Set the 'UnitCharge' attribute value.
 void setUnitName(java.lang.String unitName)
          Set the 'UnitName' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleCharge.Calculation

public VehicleCharge.Calculation()
Method Detail

getUnitCharge

public java.lang.Float getUnitCharge()
Get the 'UnitCharge' attribute value. This is used in conjunction with UnitName to specify the charge per unit as defined by UnitName (e.g., if UnitCharge="100" and UnitName="day" the result is 100 dollars per day).

Returns:
value

setUnitCharge

public void setUnitCharge(java.lang.Float unitCharge)
Set the 'UnitCharge' attribute value. This is used in conjunction with UnitName to specify the charge per unit as defined by UnitName (e.g., if UnitCharge="100" and UnitName="day" the result is 100 dollars per day).

Parameters:
unitCharge -

getUnitName

public java.lang.String getUnitName()
Get the 'UnitName' attribute value. The UnitName attribute provides the unit on which an item charge may be based when renting a vehicle (e.g., there may be a charge which is based upon the number of days, another charge that is based upon the number of miles, a charge that is based upon the number of gallons).

Returns:
value

setUnitName

public void setUnitName(java.lang.String unitName)
Set the 'UnitName' attribute value. The UnitName attribute provides the unit on which an item charge may be based when renting a vehicle (e.g., there may be a charge which is based upon the number of days, another charge that is based upon the number of miles, a charge that is based upon the number of gallons).

Parameters:
unitName -

getQuantity

public java.lang.Integer getQuantity()
Get the 'Quantity' attribute value. This is used in conjunction with UnitName to specify the quantity of units as defined by UnitName (e.g., if Quantity="5" and UnitName="day" the result is 5 days).

Returns:
value

setQuantity

public void setQuantity(java.lang.Integer quantity)
Set the 'Quantity' attribute value. This is used in conjunction with UnitName to specify the quantity of units as defined by UnitName (e.g., if Quantity="5" and UnitName="day" the result is 5 days).

Parameters:
quantity -

getPercentage

public java.lang.Float getPercentage()
Get the 'Percentage' attribute value. Provides the ability to define a particular percentage.

Returns:
value

setPercentage

public void setPercentage(java.lang.Float percentage)
Set the 'Percentage' attribute value. Provides the ability to define a particular percentage.

Parameters:
percentage -

getApplicability

public VehicleCharge.Calculation.Applicability getApplicability()
Get the 'Applicability' attribute value. Indicates a time or a place of reference (e.g. before pick-up, drop-off location).

Returns:
value

setApplicability

public void setApplicability(VehicleCharge.Calculation.Applicability applicability)
Set the 'Applicability' attribute value. Indicates a time or a place of reference (e.g. before pick-up, drop-off location).

Parameters:
applicability -

getMaxQuantity

public java.lang.Integer getMaxQuantity()
Get the 'MaxQuantity' attribute value. This is used in conjunction with UnitName to specify the maximum quantity of units as defined by UnitName.

Returns:
value

setMaxQuantity

public void setMaxQuantity(java.lang.Integer maxQuantity)
Set the 'MaxQuantity' attribute value. This is used in conjunction with UnitName to specify the maximum quantity of units as defined by UnitName.

Parameters:
maxQuantity -

getTotal

public java.lang.Float getTotal()
Get the 'Total' attribute value. The total for a specific item in a calculation (e.g., ten day rental = one week plus three extra days; this attribute would provide the subtotal for just the three extra days. The VehChargeType can be used to show the total for the ten day rental).

Returns:
value

setTotal

public void setTotal(java.lang.Float total)
Set the 'Total' attribute value. The total for a specific item in a calculation (e.g., ten day rental = one week plus three extra days; this attribute would provide the subtotal for just the three extra days. The VehChargeType can be used to show the total for the ten day rental).

Parameters:
total -