it.dtt.ca.ppv
Class PPTEvent

java.lang.Object
  extended by it.dtt.ca.ppv.Product
      extended by it.dtt.ca.ppv.PPVEvent
          extended by it.dtt.ca.ppv.PPTEvent

public class PPTEvent
extends PPVEvent

This class notifies an event offered with Pay per Time mode. Where methods take an array as an input parameter, implementations should take a copy of the array. Where methods return an array, a copy should be returned and modifications to the array should be ignored by the implementation until or unless the array is passed back to the implementation as a parameter to a method call.


Field Summary
 
Fields inherited from class it.dtt.ca.ppv.Product
GENERIC_PRODUCT, PPT_EVENT, PPV_EVENT, PPV_PACKAGE, SUBSCRIPTION
 
Constructor Summary
protected PPTEvent(java.lang.String id, java.lang.String name, javax.tv.locator.Locator locator, javax.tv.service.guide.ContentRatingAdvisory rating, Money slicePrice, Duration sliceDuration)
          Create a PPTEvent object.
 
Method Summary
 Duration getSliceDuration()
          Returns the length of a time slice as a Duration object.
 Money getSlicePrice()
          Returns the price per each slice of PPT event.
 int getType()
          Returns the product type
protected  void setSliceDuration(Duration sliceDuration)
          Deprecated. no replacement Set the length ot a time slice.
protected  void setSlicePrice(Money slicePrice)
          Deprecated. no replacement Set the price per each slice of PPT event.
 
Methods inherited from class it.dtt.ca.ppv.PPVEvent
getEndTime, getLocator, getPackages, getRating, getStartTime, isFree, setEndTime, setPackages, setStartTime
 
Methods inherited from class it.dtt.ca.ppv.Product
equals, getContainedProducts, getDescription, getExtendedDescription, getId, getName, getPreviewTime, getPrice, getPrivateData, getPurchaseWindowEndTime, getPurchaseWindowStartTime, hashCode, setDescription, setExtendedDescription, setPreviewTime, setPrivateData, setPurchaseWindowEndTime, setPurchaseWindowStartTime
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPTEvent

protected PPTEvent(java.lang.String id,
                   java.lang.String name,
                   javax.tv.locator.Locator locator,
                   javax.tv.service.guide.ContentRatingAdvisory rating,
                   Money slicePrice,
                   Duration sliceDuration)
Create a PPTEvent object.

Parameters:
id - the PPT event identifier.
name - the PPT event name.
locator - the locator of this PPV event.
rating - the rating of this PPV event.
slicePrice - price for one single slice of time.
sliceDuration - duration of a single slice of time.
Method Detail

getSlicePrice

public Money getSlicePrice()
                    throws FieldNotPresentException
Returns the price per each slice of PPT event.

Returns:
price of a single time slice.
Throws:
FieldNotPresentException

setSlicePrice

protected void setSlicePrice(Money slicePrice)
Deprecated. no replacement Set the price per each slice of PPT event.

Parameters:
slicePrice - The slicePrice to set.

getSliceDuration

public Duration getSliceDuration()
                          throws FieldNotPresentException
Returns the length of a time slice as a Duration object.

Returns:
duration of the time slice.
Throws:
FieldNotPresentException - if the slice duration is unknown.

setSliceDuration

protected void setSliceDuration(Duration sliceDuration)
Deprecated. no replacement Set the length ot a time slice.

Parameters:
sliceDuration - The sliceDuration to set.

getType

public int getType()
Returns the product type

Overrides:
getType in class PPVEvent
Returns:
product type
See Also:
Product.PPT_EVENT