Class MovementType

  • All Implemented Interfaces:
    de.hirola.kintojava.model.KintoModel

    public class MovementType
    extends PersistentObject
    Copyright 2021 by Michael Schmidt, Hirola Consulting This software us licensed under the AGPL-3.0 or later. Object for managing movement types. The user can make his own settings. When you start the app for the first time, some movement types are imported into the data store using JSON.
    Since:
    1.1.1
    Author:
    Michael Schmidt (Hirola)
    • Constructor Detail

      • MovementType

        public MovementType()
        Default constructor for reflection.
      • MovementType

        public MovementType​(String key,
                            String stringForKey,
                            String colorKeyString,
                            double speed,
                            double pace)
        Creates a movement type object.
        Parameters:
        key - of the type
        stringForKey - token for the type
        colorKeyString - color for the token
        speed - for the type
        pace - for the type
    • Method Detail

      • getKey

        public String getKey()
        Get the token for the movement type.
        Returns:
        Token for the movement type
      • getStringForKey

        public String getStringForKey()
        Get the token for the movement type.
        Returns:
        Token for the movement type
      • getColorKeyString

        public String getColorKeyString()
        Get the color string for the token of the movement type.
        Returns:
        Color string for the token
      • setColorKeyString

        public void setColorKeyString​(String colorKeyString)
        Set the color for the token.
        Parameters:
        colorKeyString - of token
      • getSpeed

        public double getSpeed()
        Get the speed for the movement type.
        Returns:
        Token for the movement type
      • setSpeed

        public void setSpeed​(double speed)
        Set the speed for the movement type.
        Parameters:
        speed - of movement type
      • getPace

        public double getPace()
        Get the pace for the movement type.
        Returns:
        Pace for the movement type
      • setPace

        public void setPace​(double pace)
        Set the pace for the speed of the movement type.
        Parameters:
        pace - of movement type
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class de.hirola.kintojava.model.KintoObject
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class de.hirola.kintojava.model.KintoObject