com.gcapmedia.dab.epg
Class Time

java.lang.Object
  extended by com.gcapmedia.dab.epg.Time

public class Time
extends java.lang.Object

Describes the timing information of a programme, both billed and actual.

For example, a programme may be billed to start at 18:00 and last 30 minutes but is actually scheduled to start at 18:03 after a 3 minute news bulletin and will therefore last only 27 minutes.


Constructor Summary
Time(org.joda.time.ReadableInstant billedTime, org.joda.time.Duration billedDuration)
          Create a new programme time
Time(org.joda.time.ReadableInstant billedTime, org.joda.time.Duration billedDuration, org.joda.time.ReadableInstant actualTime, org.joda.time.Duration actualDuration)
          Create a new programme time
Time(org.joda.time.ReadableInstant billedTime, org.joda.time.Period period)
          Create a new programme time
Time(org.joda.time.ReadableInstant billedTime, org.joda.time.Period billedPeriod, org.joda.time.ReadableInstant actualTime, org.joda.time.Period actualPeriod)
          Create a new programme time
 
Method Summary
 org.joda.time.Duration getActualDuration()
           
 org.joda.time.ReadableInstant getActualTime()
           
 org.joda.time.Duration getBilledDuration()
           
 org.joda.time.ReadableInstant getBilledTime()
           
 void setActualDuration(org.joda.time.Duration actualDuration)
           
 void setActualTime(org.joda.time.ReadableInstant actualTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Time

public Time(org.joda.time.ReadableInstant billedTime,
            org.joda.time.Duration billedDuration)
Create a new programme time

Parameters:
billedTime - Billed programme time
billedDuration - Billed programme duration

Time

public Time(org.joda.time.ReadableInstant billedTime,
            org.joda.time.Period period)
Create a new programme time

Parameters:
billedTime - Billed programme time
billedDuration - Billed programme duration

Time

public Time(org.joda.time.ReadableInstant billedTime,
            org.joda.time.Duration billedDuration,
            org.joda.time.ReadableInstant actualTime,
            org.joda.time.Duration actualDuration)
Create a new programme time

Parameters:
billedTime - Billed programme time
billedDuration - Billed programme duration
actualTime - Actual start time of the programme
actualDuration - Actual duration of the programme

Time

public Time(org.joda.time.ReadableInstant billedTime,
            org.joda.time.Period billedPeriod,
            org.joda.time.ReadableInstant actualTime,
            org.joda.time.Period actualPeriod)
Create a new programme time

Parameters:
billedTime - Billed programme time
billedDuration - Billed programme duration
actualTime - Actual start time of the programme
actualDuration - Actual duration of the programme
Method Detail

getActualDuration

public org.joda.time.Duration getActualDuration()
Returns:
Returns the actual duration of the programme

setActualDuration

public void setActualDuration(org.joda.time.Duration actualDuration)
Parameters:
actualDuration - Sets the actual duration of the programme

getActualTime

public org.joda.time.ReadableInstant getActualTime()
Returns:
Returns the actual start time of the programme

setActualTime

public void setActualTime(org.joda.time.ReadableInstant actualTime)
Parameters:
actualTime - Sets the actual start time of the programme

getBilledDuration

public org.joda.time.Duration getBilledDuration()
Returns:
Returns the billed duration of the programme

getBilledTime

public org.joda.time.ReadableInstant getBilledTime()
Returns:
Returns the billed start time of the programme


Copyright © 2007. All Rights Reserved.