org.onebusaway.gtfs_transformer.factory
Class EntityRetentionGraph

java.lang.Object
  extended by org.onebusaway.gtfs_transformer.factory.EntityRetentionGraph

public class EntityRetentionGraph
extends java.lang.Object

We have the concept of retaining up and retaining down. Retain up: retain things that depend on the target object Retain down: retain things that the target object depends on Usually, we start by retaining some object, which starts as series of "retain up" operations to grab everything that depends on that object. As each object is retained up, it typically at this point also starts a subsequent chain of retain down operations, so that the dependencies of that object are retained as well.

Author:
bdferris

Constructor Summary
EntityRetentionGraph(GtfsRelationalDao dao)
           
 
Method Summary
 int getSize()
           
 boolean isRetained(java.lang.Object object)
           
 void retain(java.lang.Object object)
           
 void setRetainAllStopTimesForTrip(boolean retainAllStopTimesForTrip)
           
 void setRetainBlocks(boolean retainBlocks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityRetentionGraph

public EntityRetentionGraph(GtfsRelationalDao dao)
Method Detail

setRetainBlocks

public void setRetainBlocks(boolean retainBlocks)

setRetainAllStopTimesForTrip

public void setRetainAllStopTimesForTrip(boolean retainAllStopTimesForTrip)

retain

public void retain(java.lang.Object object)

isRetained

public boolean isRetained(java.lang.Object object)

getSize

public int getSize()


Copyright © 2011 OneBusAway. All Rights Reserved.