Class BranchState


  • public class BranchState
    extends Object
    Author:
    Gael Macherel
    • Constructor Detail

      • BranchState

        public BranchState​(LfBranch b)
    • Method Detail

      • restoreBranchState

        public void restoreBranchState​(LfBranch branch)
      • createBranchStates

        public static Map<LfBranch,​BranchState> createBranchStates​(Collection<LfBranch> branches)
        Get the map of the states of given branches, indexed by the branch itself
        Parameters:
        branches - the bus for which the state is returned
        Returns:
        the map of the states of given branches, indexed by the branch itself
      • restoreBranchStates

        public static void restoreBranchStates​(Map<LfBranch,​BranchState> branchStates)
        Set the branch states based on the given map of states
        Parameters:
        branchStates - the map containing the branches states, indexed by branches