|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.dacopan.ui.tsc.NoticeTrigger
public class NoticeTrigger
A class to store an occurrence of some VariableDefinition and its Value in a Transfer Unit, which triggers a notice to be displayed in the TSC animation.
Field Summary | |
---|---|
static int |
EQUALS
Key for equality test |
static int |
EXISTS
Key for testing if a variable exists for the transfer unit |
static int |
GREATER
Key for greater than test |
static int |
GREATER_OR_EQUALS
Greater than or equals test |
static int |
SMALLER
Smaller than |
static int |
SMALLER_OR_EQUALS
Smaller than or equals |
Constructor Summary | |
---|---|
NoticeTrigger(NoticeTrigger sourceTrigger)
Copy constructor |
|
NoticeTrigger(VariableDefinition variable,
java.lang.String value,
int type,
java.lang.String notice)
Constructor to be used when creating a new NoticeTrigger |
Method Summary | |
---|---|
java.lang.String |
getNotice()
Getter for the notice text |
int |
getType()
|
java.lang.String |
getValue()
|
VariableDefinition |
getVariable()
|
boolean |
isEnabled()
|
void |
setEnabled(boolean enabled)
|
void |
setNotice(java.lang.String notice)
|
void |
setType(int type)
|
void |
setValue(java.lang.String value)
|
void |
setVariable(VariableDefinition variable)
|
java.lang.String |
toString()
|
boolean |
triggered(TransferUnit unit)
Tests if the notice has been triggered for a given TransferUnit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int EQUALS
public static final int EXISTS
public static final int GREATER
public static final int GREATER_OR_EQUALS
public static final int SMALLER
public static final int SMALLER_OR_EQUALS
Constructor Detail |
---|
public NoticeTrigger(VariableDefinition variable, java.lang.String value, int type, java.lang.String notice)
variable
- The VariableDefinition to test.value
- The value to test.type
- The type of testnotice
- The notice text for the notice.public NoticeTrigger(NoticeTrigger sourceTrigger)
sourceTrigger
- Method Detail |
---|
public boolean triggered(TransferUnit unit)
unit
- Testable unit.
public java.lang.String getNotice()
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- The enabled to set.public int getType()
public java.lang.String getValue()
public VariableDefinition getVariable()
public void setNotice(java.lang.String notice)
notice
- The notice to set.public void setType(int type)
type
- The type to set.public void setValue(java.lang.String value)
value
- The value to set.public void setVariable(VariableDefinition variable)
variable
- The variable to set.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |