接口 RPMSentence

所有超级接口:
Sentence

public interface RPMSentence extends Sentence
Revolutions, measured from shaft or engine.
作者:
Kimmo Tuukkanen
  • 字段详细资料

    • ENGINE

      static final char ENGINE
      Source indicator for engine
      另请参阅:
    • SHAFT

      static final char SHAFT
      Source indicator for shaft
      另请参阅:
  • 方法详细资料

    • getId

      int getId()
      Returns the engine or shaft number/id.
      返回:
      Engine of shaft number
    • getPitch

      double getPitch()
      Returns the propeller pitch, % of maximum.
      返回:
      Pitch value, negative values denote astern.
    • getRPM

      double getRPM()
      Returns the revolutions value.
      返回:
      Speed, revolutions per minute.
    • getSource

      char getSource()
      Returns the measurement source, engine or shaft.
      返回:
      'E' for engine, 'S' for shaft.
    • getStatus

      DataStatus getStatus()
      Returns the data validity status.
      返回:
      DataStatus
    • isEngine

      boolean isEngine()
      Tells if the data source is engine.
      返回:
      True if engine, otherwise false.
    • isShaft

      boolean isShaft()
      Tells if the data source is shaft.
      返回:
      True for shaft, otherwise false.
    • setId

      void setId(int id)
      Sets the engine or shaft number/id.
      参数:
      id - ID to set.
    • setPitch

      void setPitch(double pitch)
      Sets the propeller pitch, % of maximum.
      参数:
      pitch - Pitch value to set, negative values denote astern.
    • setRPM

      void setRPM(double rpm)
      Sets the revolutions value.
      参数:
      rpm - Revolutions per minute.
    • setSource

      void setSource(char source)
      Sets the source indicator, engine or shaft.
      参数:
      source - 'E' for engine or 'S' for shaft.
      抛出:
      IllegalArgumentException - If specified char is not 'E' or 'S'.
    • setStatus

      void setStatus(DataStatus status)
      Sets the data validity status.
      参数:
      status - DataStatus to set.