Class CommitOrderDependencyNode


  • public class CommitOrderDependencyNode
    extends Object
    This wraps a descriptor with information required to compute an order for dependencies. The algorithm is a simple topological sort.
    • Field Detail

      • relatedNodes

        protected Vector relatedNodes
      • traversalState

        protected int traversalState
      • NotVisited

        public static int NotVisited
      • InProgress

        public static int InProgress
      • Visited

        public static int Visited
      • discoveryTime

        protected int discoveryTime
      • finishingTime

        protected int finishingTime
    • Method Detail

      • getFinishingTime

        public int getFinishingTime()
      • getRelatedNodes

        public Vector getRelatedNodes()
      • hasBeenVisited

        public boolean hasBeenVisited()
      • hasNotBeenVisited

        public boolean hasNotBeenVisited()
      • markInProgress

        public void markInProgress()
      • markNotVisited

        public void markNotVisited()
      • markVisited

        public void markVisited()
      • recordMappingDependencies

        public void recordMappingDependencies()
        Add all owned classes for each descriptor through checking the mappings. If I have a foreign mapping with a constraint dependency, then add it If I'm related to a class, I'm related to all its subclasses and superclasses. If my superclass is related to a class, I'm related to it.
      • recordSpecifiedDependencies

        public void recordSpecifiedDependencies()
        Add all owned classes for each descriptor through checking the mappings. If I have a foreign mapping with a constraint dependency, then add it If I'm related to a class, I'm related to all its subclasses and superclasses. If my superclass is related to a class, I'm related to it.
      • setDiscoveryTime

        public void setDiscoveryTime​(int time)
      • setFinishingTime

        public void setFinishingTime​(int time)
      • visit

        public void visit()