Class RunningPlanTemplateUnit


  • public class RunningPlanTemplateUnit
    extends Object
    Copyright 2021 by Michael Schmidt, Hirola Consulting This software us licensed under the AGPL-3.0 or later. Mapping object for RunningPlanUnit to import from JSON.
    Since:
    1.1.1
    Author:
    Michael Schmidt (Hirola)
    • Constructor Detail

      • RunningPlanTemplateUnit

        public RunningPlanTemplateUnit()
        Default constructor for import from json.
      • RunningPlanTemplateUnit

        public RunningPlanTemplateUnit​(int week,
                                       int day,
                                       int duration,
                                       String[] units)
        Create a template object.
        Parameters:
        week - of unit
        day - of unit
        duration - of unit
        units - of unit
    • Method Detail

      • getWeek

        public int getWeek()
        Get week of unit.
        Returns:
        The week of unit, starting by 1
      • getDay

        public int getDay()
        Get day of unit.
        Returns:
        The day of unit, starting by 1 (monday)
      • getDuration

        public int getDuration()
        Get duration of unit in minutes.
        Returns:
        The week of unit, starting by 1
      • getUnits

        public String[] getUnits()
        Get a List of movements with durations. Example: Format "L", "1" means movement type with key L and a duration of 1 minute.
        Returns:
        The week of unit, starting by 1