Class LightningFaultCodes.Code

  • Enclosing class:
    LightningFaultCodes

    public static class LightningFaultCodes.Code
    extends java.lang.Object
    A base class that represents a single fault code
    • Constructor Summary

      Constructors 
      Constructor Description
      Code​(java.lang.String name)
      Create fault code
      Code​(java.lang.String name, boolean state)
      Create fault code
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Name of the fault code
      boolean getState()
      The current state of the fault code
      void setName​(java.lang.String name)
      Sets the name of a fault code
      void setState​(boolean state)
      Sets the state of the fault code
      • Methods inherited from class java.lang.Object

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

      • Code

        public Code​(java.lang.String name,
                    boolean state)
        Create fault code
        Parameters:
        name - the name of the fault code
        state - the initial state of the fault code (defaults to false)
      • Code

        public Code​(java.lang.String name)
        Create fault code
        Parameters:
        name - the name of the fault code
    • Method Detail

      • getName

        public java.lang.String getName()
        Name of the fault code
        Returns:
        the name as a string
      • setName

        public void setName​(java.lang.String name)
        Sets the name of a fault code
        Parameters:
        name - the new name for the code
      • getState

        public boolean getState()
        The current state of the fault code
        Returns:
        the boolean state of the fault code
      • setState

        public void setState​(boolean state)
        Sets the state of the fault code
        Parameters:
        state - the new boolean state of the fault code