Class EntityRetentionGraph
java.lang.Object
org.onebusaway.gtfs_transformer.factory.EntityRetentionGraph
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetSize()booleanisRetained(Object object) voidRetain up: retain things that depend on the target object For example, if you retain up on aRoute, we would also retain up on theTripobjects depending on this route Retain down: retain things that the target object depends on For example, if you retain down on aRoute, we would also retain down on the route'sAgency.voidretainDown(Object object) voidvoidsetRetainAllStopTimesForTrip(boolean retainAllStopTimesForTrip) voidsetRetainBlocks(boolean retainBlocks)
-
Constructor Details
-
EntityRetentionGraph
-
-
Method Details
-
setRetainBlocks
public void setRetainBlocks(boolean retainBlocks) -
setRetainAllStopTimesForTrip
public void setRetainAllStopTimesForTrip(boolean retainAllStopTimesForTrip) -
retainUp
Retain up: retain things that depend on the target object For example, if you retain up on aRoute, we would also retain up on theTripobjects depending on this route- Parameters:
object-
-
retainDown
Retain down: retain things that the target object depends on For example, if you retain down on aRoute, we would also retain down on the route'sAgency.- Parameters:
object-
-
retain
Retain up: retain things that depend on the target object For example, if you retain up on aRoute, we would also retain up on theTripobjects depending on this route Retain down: retain things that the target object depends on For example, if you retain down on aRoute, we would also retain down on the route'sAgency.- Parameters:
object-
-
isRetained
-
getSize
public int getSize()
-