public class Exclusion extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DAYLIMIT_DAILY |
static int |
DAYLIMIT_FRIDAY |
static int |
DAYLIMIT_MONDAY |
static int |
DAYLIMIT_SATURDAY |
static int |
DAYLIMIT_SUNDAY |
static int |
DAYLIMIT_THURSDAY |
static int |
DAYLIMIT_TUESDAY |
static int |
DAYLIMIT_WEDNESDAY |
static int |
DAYLIMIT_WEEKDAY |
static int |
DAYLIMIT_WEEKEND |
Constructor and Description |
---|
Exclusion(ObjectInputStream in) |
Exclusion(String title,
String topic,
Channel channel,
int timeFrom,
int timeTo,
int dayOfWeek)
Creates a new exclusion criteria.
|
Modifier and Type | Method and Description |
---|---|
Channel |
getChannel() |
int |
getDayOfWeek() |
int |
getTimeLowerBound() |
int |
getTimeUpperBound() |
String |
getTitle() |
String |
getTopic() |
boolean |
isProgramExcluded(Program prog) |
void |
writeData(ObjectOutputStream out) |
public static final int DAYLIMIT_DAILY
public static final int DAYLIMIT_WEEKEND
public static final int DAYLIMIT_WEEKDAY
public static final int DAYLIMIT_SUNDAY
public static final int DAYLIMIT_MONDAY
public static final int DAYLIMIT_TUESDAY
public static final int DAYLIMIT_WEDNESDAY
public static final int DAYLIMIT_THURSDAY
public static final int DAYLIMIT_FRIDAY
public static final int DAYLIMIT_SATURDAY
public Exclusion(String title, String topic, Channel channel, int timeFrom, int timeTo, int dayOfWeek)
title
- null, if any title is allowedtopic
- null, if any keyword is allowedchannel
- null, if any channel is allowedtimeFrom
- lower time limit (or -1, if no lower limit exists)timeTo
- upper time limit (or -1, if no upper limit exists)public Exclusion(ObjectInputStream in) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
public void writeData(ObjectOutputStream out) throws IOException
IOException
public String getTitle()
public String getTopic()
public Channel getChannel()
public int getTimeLowerBound()
public int getTimeUpperBound()
public int getDayOfWeek()
public boolean isProgramExcluded(Program prog)
TV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)