pamoja for TypeScript - v0.1.17
    Preparing search index...

    Class PowerPlan

    The work intervals a node uses in each mode, and where the modes change.

    Index
    • Creates a plan from its three work intervals in microseconds, entering saver mode below 50% charge and critical below 20%.

      Parameters

      • activeUs: number
      • saverUs: number
      • criticalUs: number

      Returns power.PowerPlan

    • get criticalBelow(): number

      The charge below which the plan enters critical mode.

      Returns number

    • get saverBelow(): number

      The charge below which the plan enters saver mode.

      Returns number

    • Returns the work interval at a state of charge, in microseconds.

      Parameters

      • soc: number

      Returns number

    • Returns the mode, eased one step toward full duty while charging.

      Parameters

      • soc: number
      • charging: boolean

      Returns PowerMode

    • Returns a copy of this plan with the state-of-charge thresholds moved.

      Parameters

      • saverBelow: number
      • criticalBelow: number

      Returns power.PowerPlan