edu.ntnu.cikmr.workflow
Class Incentive

java.lang.Object
  extended by edu.ntnu.cikmr.workflow.Statement
      extended by edu.ntnu.cikmr.workflow.Condition
          extended by edu.ntnu.cikmr.workflow.Incentive
All Implemented Interfaces:
Executable, XMLRepresentation

public class Incentive
extends Condition

Title: Incentive statment

Description: Checks if the conditions to start the workflows are fulfilled.

Copyright: Copyright (c) 2007


Constructor Summary
Incentive()
           
 
Method Summary
 void fromXML(org.w3c.dom.Node n)
           
 java.lang.String getExecuteIfFalse()
          Returns the id to execute if false
 java.lang.String getExecuteIfTrue()
          Returns the id to execute if true
 java.lang.String getIfFalse()
          Returns the id to execute if false
 java.lang.String getIfTrue()
          Returns the id to execute if true
 int getInterval()
          Returns the incentive execution interval.
 void setExecuteIfFalse(java.lang.String s)
          Sets the id to execute if false.
 void setExecuteIfTrue(java.lang.String s)
          Sets the id to execute if true
 void setIfFalse(java.lang.String ifFalse)
          Sets the id to execute if false
 void setIfTrue(java.lang.String ifTrue)
          Sets the id to execute if true
 void setInterval(int interval)
          Returns the execution interval of the incentive.
 void setParent(Goal goal)
           
 java.lang.String toXML()
           
 
Methods inherited from class edu.ntnu.cikmr.workflow.Condition
execute, getAndBinding, getIffalse, getIftrue, getResult, getStatement, getStatementCount, getStatementIterator, removeStatement, setAndBinding, setIffalse, setIftrue
 
Methods inherited from class edu.ntnu.cikmr.workflow.Statement
getParent, resolve, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Incentive

public Incentive()
Method Detail

getExecuteIfTrue

public java.lang.String getExecuteIfTrue()
Returns the id to execute if true

Returns:
id

getExecuteIfFalse

public java.lang.String getExecuteIfFalse()
Returns the id to execute if false

Returns:
id

setExecuteIfTrue

public void setExecuteIfTrue(java.lang.String s)
Sets the id to execute if true

Parameters:
s - id

setExecuteIfFalse

public void setExecuteIfFalse(java.lang.String s)
Sets the id to execute if false.

Parameters:
s - id

getInterval

public int getInterval()
Returns the incentive execution interval.

Returns:
interval

getIfFalse

public java.lang.String getIfFalse()
Returns the id to execute if false

Returns:
id

getIfTrue

public java.lang.String getIfTrue()
Returns the id to execute if true

Returns:
id

setInterval

public void setInterval(int interval)
Returns the execution interval of the incentive.

Parameters:
interval -

fromXML

public void fromXML(org.w3c.dom.Node n)
Specified by:
fromXML in interface XMLRepresentation
Overrides:
fromXML in class Condition

toXML

public java.lang.String toXML()
Specified by:
toXML in interface XMLRepresentation
Overrides:
toXML in class Condition

setParent

public void setParent(Goal goal)

setIfFalse

public void setIfFalse(java.lang.String ifFalse)
Sets the id to execute if false

Parameters:
s - id

setIfTrue

public void setIfTrue(java.lang.String ifTrue)
Sets the id to execute if true

Parameters:
s - id