|
||||||||||
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
public abstract class DataTraceItem
Holds one data trace item - variable, line number and whether this is ask or tell
Field Summary |
---|
Fields inherited from class org.problets.domain.line.AbstractLine |
---|
UNASSIGNED_LINE |
Constructor Summary | |
---|---|
DataTraceItem(AbstractVarModel inVariable,
int inLineNumber)
|
Method Summary | |
---|---|
abstract boolean |
canEdit()
Returns whether this object can be edited |
java.lang.Object |
clone()
Clones the data trac item |
void |
cloneVariableValues(DataTraceItem fromItem)
Copies the values of the variable of the given item to this item's variable |
static DataTraceItem |
getDataTraceItem(AbstractVarModel inVariable,
int inLineNumber,
java.lang.String template)
|
AbstractVarModel |
getVariable()
Returns a reference to the variable |
static void |
main(java.lang.String[] args)
|
void |
print()
Prints all the fields of the class |
void |
reset()
|
void |
setVariable(AbstractVarModel a_var)
Sets the variable of this item |
java.lang.String |
toString()
Returns only that which is entered into the log |
boolean |
varsEqual(DataTraceItem a_item)
Determines if this item's variable and the given item's variable have equal values |
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 DataTraceItem(AbstractVarModel inVariable, int inLineNumber)
Method Detail |
---|
public static DataTraceItem getDataTraceItem(AbstractVarModel inVariable, int inLineNumber, java.lang.String template)
public java.lang.Object clone()
clone
in class AbstractLine
public void cloneVariableValues(DataTraceItem fromItem)
public boolean varsEqual(DataTraceItem a_item)
a_item
- the item to compare against
public AbstractVarModel getVariable()
public abstract boolean canEdit()
public void setVariable(AbstractVarModel a_var)
a_var
- the new variablepublic void reset()
public java.lang.String toString()
AbstractLine
toString
in class AbstractLine
public void print()
print
in class AbstractLine
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |