info.jedi.testsuite
Class ComplexObject

java.lang.Object
  |
  +--info.jedi.testsuite.ComplexObject

public class ComplexObject
extends java.lang.Object
implements java.io.Serializable

A ComplexObject is a Serializable amalgamation of multiple other objects. If created with the proper parameters, this may include a branched tree-like structure containing other ComplexObjects. A ComplexObject has one queryable field, an integer value. When the object is touch()ed, this value is returned and incremented.

See Also:
Serialized Form

Constructor Summary
ComplexObject(int value, int level)
          Creates a ComplexObject.
 
Method Summary
 int touch()
          Touch this ComplexObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexObject

public ComplexObject(int value,
                     int level)
Creates a ComplexObject. It is given a particular value and a particular level of branching. The ComplexObject will create level other ComplexObjects underneath it in a tree created with parameters value+1 and level-1. These ComplexObjects will be added both to the Vector and Hashtable that is contained by this ComplexObject.
Method Detail

touch

public int touch()
Touch this ComplexObject. Returns the current value of the object, and increments it so the next call to touch() will return a value greater by one.