|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.domain.line.AbstractLine
org.problets.domain.model.implement.DataTraceItem
org.problets.domain.model.implement.AskItem
public class AskItem
Represents an ASK item in data trace
Field Summary |
---|
Fields inherited from class org.problets.domain.line.AbstractLine |
---|
UNASSIGNED_LINE |
Constructor Summary | |
---|---|
AskItem(AbstractVarModel inVariable,
int inLineNumber)
|
Method Summary | |
---|---|
boolean |
canEdit()
Returns whether this object can be edited |
java.lang.Object |
clone()
Clones the AskItem |
TellItem |
getPreviousTell()
Gets a reference to the most recent tell for this item |
java.util.Vector |
getPreviousTellValueDifference()
Gets a value difference of the previous tell of the ask item with respect to the ask item's variable. |
boolean |
isAltered()
Returns true if the item's variable has been altered since creation |
static void |
main(java.lang.String[] args)
|
void |
reset()
Sets the value of an 'ask' item's variable at itemIndex to either blank, or to the value of the most recent 'tell' item for that variable that appears before the given 'ask'. |
void |
setAltered(boolean aAltered)
Sets the altered flag that is true if the item's variable has been altered. |
void |
setPreviousTell(TellItem a_previous)
Sets the previous tell of this item |
Methods inherited from class org.problets.domain.model.implement.DataTraceItem |
---|
cloneVariableValues, getDataTraceItem, getVariable, print, setVariable, toString, varsEqual |
Methods inherited from class org.problets.domain.line.AbstractLine |
---|
getLineNumber, setLineNumber |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AskItem(AbstractVarModel inVariable, int inLineNumber)
Method Detail |
---|
public java.lang.Object clone()
clone
in class DataTraceItem
public boolean canEdit()
canEdit
in class DataTraceItem
public boolean isAltered()
public TellItem getPreviousTell()
public java.util.Vector getPreviousTellValueDifference()
public void setAltered(boolean aAltered)
a_altered
- the new value of the altered variablepublic void setPreviousTell(TellItem a_previous)
a_previous
- the previous tellpublic void reset()
reset
in class DataTraceItem
itemIndex
- the index of the ask to reset the values fordataTrace
- the data trace vector that the ask belongs topublic static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |