Class AbstractConnectedComponent

  • All Implemented Interfaces:
    Component
    Direct Known Subclasses:
    ConnectedComponent

    public abstract class AbstractConnectedComponent
    extends Object
    Author:
    Mathieu Bague
    • Constructor Detail

      • AbstractConnectedComponent

        protected AbstractConnectedComponent​(int num,
                                             int size)
    • Method Detail

      • getBusPredicate

        protected Predicate<Bus> getBusPredicate()
      • getNum

        public int getNum()
        Description copied from interface: Component
        Get the number of the component.

        The biggest one has the number zero and the smallest has the highest number.

        Specified by:
        getNum in interface Component
      • getSize

        public int getSize()
        Description copied from interface: Component
        Get the number of bus in the component.
        Specified by:
        getSize in interface Component
      • getNetwork

        protected abstract Network getNetwork()