|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.dtt.ca.ppv.Product
it.dtt.ca.ppv.PPVEvent
it.dtt.ca.ppv.PPTEvent
public class PPTEvent
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 |
---|
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)
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 |
---|
public Money getSlicePrice() throws FieldNotPresentException
FieldNotPresentException
protected void setSlicePrice(Money slicePrice)
slicePrice
- The slicePrice to set.public Duration getSliceDuration() throws FieldNotPresentException
FieldNotPresentException
- if the slice duration is unknown.protected void setSliceDuration(Duration sliceDuration)
sliceDuration
- The sliceDuration to set.public int getType()
getType
in class PPVEvent
Product.PPT_EVENT
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |