Class Robot


  • public class Robot
    extends java.lang.Object
    Data and other information about the robot. This should be kept as accurate and up-to-date as possible!
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean hasWarningSticker
      If the robot has the "Warning: Robot Moves on Initialization" sticker on it.
      double heightCm
      The height of the robot in real life, in centimeters.
      double lengthCm
      The length of the robot in real life, in centimeters.
      java.lang.String robotName
      The name of the robot.
      int teamNumber
      The number of the team who built the robot.
      double widthCm
      The width of the robot in real life, in centimeters.
    • Constructor Summary

      Constructors 
      Constructor Description
      Robot​(double widthCm, double lengthCm, double heightCm, int teamNumber, java.lang.String robotName, boolean hasWarningSticker)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean doesPassDimensionInspection()
      Determine if the robot meets dimension requirements.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • widthCm

        public final double widthCm

        The width of the robot in real life, in centimeters.

        In this case, the width should be calculated by measuring the distance from the outside of the left set of wheels to the outside of the right set of wheels, assuming this Robot is using CarWheels.

      • lengthCm

        public final double lengthCm

        The length of the robot in real life, in centimeters.

        This should be calculated by measuring the other side that isn't the height or the side which the width was measured.

      • heightCm

        public final double heightCm
        The height of the robot in real life, in centimeters.
      • teamNumber

        public final int teamNumber
        The number of the team who built the robot.
      • robotName

        public final java.lang.String robotName
        The name of the robot.
      • hasWarningSticker

        public final boolean hasWarningSticker
        If the robot has the "Warning: Robot Moves on Initialization" sticker on it.
    • Constructor Detail

      • Robot

        public Robot​(double widthCm,
                     double lengthCm,
                     double heightCm,
                     int teamNumber,
                     java.lang.String robotName,
                     boolean hasWarningSticker)
    • Method Detail

      • doesPassDimensionInspection

        public boolean doesPassDimensionInspection()
        Determine if the robot meets dimension requirements.
        Returns:
        True if the robot meets the dimension requirements, false if it doesn't.