|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.tickertape.tickerlingua.Tickertape
public class Tickertape
Represents a Tickertape, which is a notification.
Constructor Summary | |
---|---|
Tickertape(java.lang.String id,
double intervalHours,
boolean enabled,
java.lang.String starttime,
java.lang.String description,
java.util.List<HackystatProject> projects,
java.util.List<NotificationService> services,
java.lang.Class<? extends Ticker> tickerClass,
Properties tickerProperties)
Creates and returns a new Tickertape instance, or throws a TickerLinguaException if the passed parameters are not valid. |
Method Summary | |
---|---|
boolean |
enabled()
True if this tickertape is enabled. |
java.lang.String |
getDescription()
The description of this tickertape. |
java.util.List<HackystatProject> |
getHackystatProjects()
The set of projects involved in this notification. |
java.lang.String |
getId()
Return the unique ID. |
double |
getIntervalHours()
Return the interval in hours for wakeups of this notification. |
java.util.List<NotificationService> |
getNotificationServices()
The notification services for this notification. |
java.lang.String |
getStartTime()
The String representting the time when this should wake up, or null if immediately. |
Ticker |
getTicker()
The class that implements this notification behavior. |
java.util.Map<java.lang.String,java.lang.String> |
getTickerProperties()
Return the (possibly empty) properties associated with this ticker. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tickertape(java.lang.String id, double intervalHours, boolean enabled, java.lang.String starttime, java.lang.String description, java.util.List<HackystatProject> projects, java.util.List<NotificationService> services, java.lang.Class<? extends Ticker> tickerClass, Properties tickerProperties) throws TickerLinguaException
id
- A unique id (not validated).intervalHours
- The interval as hours.enabled
- If this ticker is to be instantiated or not.starttime
- A string indicating the start time. Not yet validated.description
- A description of this tickertape.projects
- A non-empty list of HackystatProject instances.services
- A possibly empty list of notification services. (One might use email).tickerClass
- The ticker class instance.tickerProperties
- A possibly empty Properties instance.
TickerLinguaException
- If there is not at least one project and notification service.Method Detail |
---|
public java.lang.String getId()
public double getIntervalHours()
public boolean enabled()
public java.lang.String getDescription()
public java.lang.String getStartTime()
public java.util.List<HackystatProject> getHackystatProjects()
public java.util.List<NotificationService> getNotificationServices()
public Ticker getTicker()
public java.util.Map<java.lang.String,java.lang.String> getTickerProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |