com.starteam
Class ChangePackageReplayGraph

java.lang.Object
  extended by com.starteam.ChangePackageReplayGraph

public final class ChangePackageReplayGraph
extends java.lang.Object

Represents the set of replay relationships among a collection of change packages.

The graph contains all change packages that share at least one change with those in a given set.


Constructor Summary
ChangePackageReplayGraph(ChangePackage cp)
          Builds the replay graph for the given change package.
ChangePackageReplayGraph(ChangePackageCollection cc)
          Builds the replay graph for the given collection of change packages.
ChangePackageReplayGraph(View view)
          Builds the replay graph for the change packages in the given view.
 
Method Summary
 boolean contains(ChangePackage cp)
          Determines whether or not the replay graph contains the given change package.
 boolean containsAnyChangePackagesFromView(View view)
          Determines whether or not the replay graph contains any change packages from the given view.
 ChangePackageCollection getChangePackagesFromView(View view)
          Gets the subset of the change packages in this replay graph that reside in the given view.
 int getReplayPathLength(ChangePackage source, ChangePackage target)
          Gets the length of the replay path from the given source to the given target.
 ChangePackageCollection getReplaySources(ChangePackage cp)
          Gets the set of change packages from which the given one was derived.
 ChangePackageCollection getReplayTargets(ChangePackage cp)
          Gets the set of change packages representing replayed instances of the given one.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangePackageReplayGraph

public ChangePackageReplayGraph(View view)
Builds the replay graph for the change packages in the given view.

Parameters:
view - The view containing the change packages.

ChangePackageReplayGraph

public ChangePackageReplayGraph(ChangePackage cp)
Builds the replay graph for the given change package.

Parameters:
cp - The change package.

ChangePackageReplayGraph

public ChangePackageReplayGraph(ChangePackageCollection cc)
Builds the replay graph for the given collection of change packages.

Parameters:
cc - ChangePackageCollection
Method Detail

contains

public boolean contains(ChangePackage cp)
Determines whether or not the replay graph contains the given change package.

Parameters:
cp - ChangePackage
Returns:
boolean true if the replay graph contains the given change package.

containsAnyChangePackagesFromView

public boolean containsAnyChangePackagesFromView(View view)
Determines whether or not the replay graph contains any change packages from the given view.

Parameters:
view - View
Returns:
boolean

getChangePackagesFromView

public ChangePackageCollection getChangePackagesFromView(View view)
Gets the subset of the change packages in this replay graph that reside in the given view.

Parameters:
view - View
Returns:
ChangePackageCollection

getReplaySources

public ChangePackageCollection getReplaySources(ChangePackage cp)
Gets the set of change packages from which the given one was derived. Note that some may fall outside this replay graph.

Parameters:
cp - ChangePackage
Returns:
ChangePackageCollection

getReplayTargets

public ChangePackageCollection getReplayTargets(ChangePackage cp)
Gets the set of change packages representing replayed instances of the given one. Note that some may fall outside this replay graph.

Parameters:
cp - ChangePackage
Returns:
ChangePackageCollection

getReplayPathLength

public int getReplayPathLength(ChangePackage source,
                               ChangePackage target)
Gets the length of the replay path from the given source to the given target. If the given target is actually the source, then the length returned is negative. If no replay path exists between the two, then 0 is returned. Also returns zero if either the source or target fall outside the replay graph.

Parameters:
source - The source change package.
target - The target change package.
Returns:
The length of the replay path from the given source to the given target.


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.