|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gishur.core.algorithms.TraceObject
An instance of the TraceObject
class can record various
states of an object. It provides fast access to that states via
time and step.
Method Summary | |
boolean |
accessMode()
Returns true , if the TraceObject is in access mode,
that means it can fast access special recorded object instances. |
java.lang.Object |
instance(int step_nr)
Returns the stored instance according to the given step number. |
java.lang.Object[] |
instances(int step_start,
int step_end)
Returns an array of recorded instances between the steps step_start and step_end . |
java.lang.String |
name()
Returns the name of the object. |
void |
record(java.lang.Object instance)
Records an instance of the object. |
boolean |
recordMode()
Returns true , if the TraceObject is in record mode,
that means it can record new instances, but cannot access any other instances. |
void |
recordNoClone(java.lang.Object instance)
Records an instance of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String name()
public boolean recordMode()
true
, if the TraceObject
is in record mode,
that means it can record new instances, but cannot access any other instances.true
, if the TraceObject
is in record mode.public boolean accessMode()
true
, if the TraceObject
is in access mode,
that means it can fast access special recorded object instances.true
, if the TraceObject
is in access mode.public java.lang.Object instance(int step_nr)
TraceObject
is not finished.public java.lang.Object[] instances(int step_start, int step_end)
step_start
and step_end
. That means
all instances, that are recorded after step_start
until step_end
are returned.step_start
- the step number after that instances should be returnedstep_end
- the step number until that instanced should be returnedstep_start
and step_end
.public void record(java.lang.Object instance)
TraceObject
e.g. the Tracer
must be in record mode
- otherwise an TraceException
will be thrown.instance
- the object instance to recordpublic void recordNoClone(java.lang.Object instance)
TraceObject
e.g. the Tracer
must be in record mode
- otherwise an TraceException
will be thrown.instance
- the object instance to record
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |