Venice 0.751beta

nz.org.venice.alert
Interface AlertWriter

All Known Implementing Classes:
DatabaseAlertWriter, FileAlertWriter

public interface AlertWriter

Provides an interface to set, modify and delete alerts. Allows AlertModule to do the updates regardless of where the alerts are stored.

Author:
Mark Hummel
See Also:
Alert, AlertReader, AlertModule

Method Summary
 void disable(Alert alert)
          Enable an alert.
 void enable(Alert alert)
          Enable an alert.
 void remove(Alert alert)
          Remove a specific alert.
 void set(GondolaAlert alert)
          Set the alert.
 void set(OHLCVAlert alert)
          Set the alert.
 void update(Alert alert, GondolaAlert newAlert)
          Update the alert and make it a GondolaAlert.
 void update(Alert alert, OHLCVAlert newAlert)
          Update the alert and make it a OHLCVAlert.
 

Method Detail

set

public void set(OHLCVAlert alert)
Set the alert.

Parameters:
alert - The alert to add

set

public void set(GondolaAlert alert)
Set the alert.

Parameters:
alert - The alert to add

update

public void update(Alert alert,
                   OHLCVAlert newAlert)
Update the alert and make it a OHLCVAlert.

Parameters:
alert - The alert to modify
newAlert - The alert settings to use for modification

update

public void update(Alert alert,
                   GondolaAlert newAlert)
Update the alert and make it a GondolaAlert.

Parameters:
alert - The alert to modify
newAlert - The alert settings to use for modification

remove

public void remove(Alert alert)
Remove a specific alert.

Parameters:
alert - Tne alert to remove.

enable

public void enable(Alert alert)
Enable an alert.

Parameters:
alert - The alert to enable.

disable

public void disable(Alert alert)
Enable an alert.

Parameters:
alert - The alert to disable.

Venice 0.751beta