eu.scape_project.watch.domain
Class Trigger

java.lang.Object
  extended by thewebsemantic.binding.RdfBean<Trigger>
      extended by eu.scape_project.watch.domain.Trigger

public class Trigger
extends thewebsemantic.binding.RdfBean<Trigger>

A Trigger is a unit that contains conditions used during internal assessment and Notification that are sent when the conditions are met. The conditions are encoded into the Question. A trigger can also contain a Plan used in external assessment.

Author:
Luis Faria

Constructor Summary
Trigger()
          Create a new empty trigger.
Trigger(Question question, List<Notification> notifications, Plan plan)
          Create a new trigger.
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
           
 List<Notification> getNotifications()
           
 Plan getPlan()
           
 Question getQuestion()
           
 int hashCode()
           
 void setId(String id)
           
 void setNotifications(List<Notification> notifications)
           
 void setPlan(Plan plan)
           
 void setQuestion(Question question)
           
 String toString()
           
 
Methods inherited from class thewebsemantic.binding.RdfBean
asIndividual, delete, fill, fill, load, query, refresh, save
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Trigger

public Trigger()
Create a new empty trigger.


Trigger

public Trigger(Question question,
               List<Notification> notifications,
               Plan plan)
Create a new trigger.

Parameters:
question - The question that will assess if the trigger should fire.
notifications - The notifications that should be executed in case this trigger fires.
plan - A plan for optional external assessment, set null if no external assessment required.
Method Detail

getId

public String getId()

setId

public void setId(String id)

getQuestion

public Question getQuestion()

setQuestion

public void setQuestion(Question question)

getNotifications

public List<Notification> getNotifications()

setNotifications

public void setNotifications(List<Notification> notifications)

getPlan

public Plan getPlan()

setPlan

public void setPlan(Plan plan)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.