Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

joelib.algo
Class DFSResult  view DFSResult download DFSResult.java

java.lang.Object
  extended byjoelib.data.JOEGenericData
      extended byjoelib.data.JOEPairData
          extended byjoelib.algo.DFSResult
All Implemented Interfaces:
joelib.desc.DescResult, java.io.Serializable

public class DFSResult
extends joelib.data.JOEPairData
implements joelib.desc.DescResult, java.io.Serializable

Result of a DFS.


Field Summary
private static java.lang.String basicFormat
           
 int[] discovered
          Description of the Field
 int[] finished
          Description of the Field
private static java.lang.String lineFormat
           
 int[] parent
          Description of the Field
 int startAtomIndex
          Description of the Field
 
Fields inherited from class joelib.data.JOEPairData
_value
 
Fields inherited from class joelib.data.JOEGenericData
dataType
 
Constructor Summary
DFSResult()
          Constructor for the DFSResult object
 
Method Summary
 java.lang.Object clone()
          This method may be called to create a new copy of the Object.
 DFSResult clone(DFSResult _target)
           
 java.lang.String formatDescription(joelib.io.IOType ioType)
          Description of the Method
 boolean fromPairData(joelib.io.IOType ioType, joelib.data.JOEPairData pairData)
          Description of the Method
 boolean fromString(joelib.io.IOType ioType, java.lang.String sValue)
          Description of the Method
 boolean init(java.lang.String _descName)
          Constructor for the DFSResult object
 java.lang.String toString(joelib.io.IOType ioType)
          Description of the Method
 
Methods inherited from class joelib.data.JOEPairData
getValue, setValue, toString
 
Methods inherited from class joelib.data.JOEGenericData
equals, finalize, getAttribute, getDataType, setAttribute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

basicFormat

private static final java.lang.String basicFormat
See Also:
Constant Field Values

lineFormat

private static final java.lang.String lineFormat
See Also:
Constant Field Values

discovered

public int[] discovered
Description of the Field


finished

public int[] finished
Description of the Field


parent

public int[] parent
Description of the Field


startAtomIndex

public int startAtomIndex
Description of the Field

Constructor Detail

DFSResult

public DFSResult()
Constructor for the DFSResult object

Method Detail

clone

public DFSResult clone(DFSResult _target)

clone

public java.lang.Object clone()
Description copied from class: java.lang.Object
This method may be called to create a new copy of the Object. The typical behavior is as follows:
  • o == o.clone() is false
  • o.getClass() == o.clone().getClass() is true
  • o.equals(o) is true

However, these are not strict requirements, and may be violated if necessary. Of the three requirements, the last is the most commonly violated, particularly if the subclass does not override Object.equals(Object)>Object.equals(Object) 55 .

If the Object you call clone() on does not implement java.lang.Cloneable (which is a placeholder interface), then a CloneNotSupportedException is thrown. Notice that Object does not implement Cloneable; this method exists as a convenience for subclasses that do.

Object's implementation of clone allocates space for the new Object using the correct class, without calling any constructors, and then fills in all of the new field values with the old field values. Thus, it is a shallow copy. However, subclasses are permitted to make a deep copy.

All array types implement Cloneable, and override this method as follows (it should never fail):

 public Object clone()
 {
   try
     {
       super.clone();
     }
   catch (CloneNotSupportedException e)
     {
       throw new InternalError(e.getMessage());
     }
 }
 

Specified by:
clone in interface joelib.desc.DescResult

formatDescription

public java.lang.String formatDescription(joelib.io.IOType ioType)
Description of the Method

Specified by:
formatDescription in interface joelib.desc.DescResult

fromPairData

public boolean fromPairData(joelib.io.IOType ioType,
                            joelib.data.JOEPairData pairData)
Description of the Method

Specified by:
fromPairData in interface joelib.desc.DescResult

fromString

public boolean fromString(joelib.io.IOType ioType,
                          java.lang.String sValue)
Description of the Method

Specified by:
fromString in interface joelib.desc.DescResult

init

public boolean init(java.lang.String _descName)
Constructor for the DFSResult object

Specified by:
init in interface joelib.desc.DescResult

toString

public java.lang.String toString(joelib.io.IOType ioType)
Description of the Method

Specified by:
toString in interface joelib.desc.DescResult