Enum CauseOfTransmission

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CauseOfTransmission>

    public enum CauseOfTransmission
    extends java.lang.Enum<CauseOfTransmission>
    Every ASDU contains a single Cause Of Transmission field so the recipient knows why the message it received was sent. Parts IEC 60870-5-101 and IEC 60870-5-104 define what CauseOfTransmissions are allowed for the different ASDU types. CauseOfTransmissions 44 to 47 are meant for replies to commands with undefined values.
    • Enum Constant Detail

      • DEACTIVATION_CON

        public static final CauseOfTransmission DEACTIVATION_CON
        DEACTIVATION_CON(9)
      • ACTIVATION_TERMINATION

        public static final CauseOfTransmission ACTIVATION_TERMINATION
        ACTIVATION_TERMINATION(10)
      • RETURN_INFO_REMOTE

        public static final CauseOfTransmission RETURN_INFO_REMOTE
        RETURN_INFO_REMOTE(11)
      • RETURN_INFO_LOCAL

        public static final CauseOfTransmission RETURN_INFO_LOCAL
        RETURN_INFO_LOCAL(12)
      • INTERROGATED_BY_STATION

        public static final CauseOfTransmission INTERROGATED_BY_STATION
        INTERROGATED_BY_STATION(20)
      • INTERROGATED_BY_GROUP_1

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_1
        INTERROGATED_BY_GROUP_1(21)
      • INTERROGATED_BY_GROUP_2

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_2
        INTERROGATED_BY_GROUP_2(22)
      • INTERROGATED_BY_GROUP_3

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_3
        INTERROGATED_BY_GROUP_3(23)
      • INTERROGATED_BY_GROUP_4

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_4
        INTERROGATED_BY_GROUP_4(24)
      • INTERROGATED_BY_GROUP_5

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_5
        INTERROGATED_BY_GROUP_5(25)
      • INTERROGATED_BY_GROUP_6

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_6
        INTERROGATED_BY_GROUP_6(26)
      • INTERROGATED_BY_GROUP_7

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_7
        INTERROGATED_BY_GROUP_7(27)
      • INTERROGATED_BY_GROUP_8

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_8
        INTERROGATED_BY_GROUP_7(27)
      • INTERROGATED_BY_GROUP_9

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_9
        INTERROGATED_BY_GROUP_8(28)
      • INTERROGATED_BY_GROUP_10

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_10
        INTERROGATED_BY_GROUP_9(29)
      • INTERROGATED_BY_GROUP_11

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_11
        INTERROGATED_BY_GROUP_11(31)
      • INTERROGATED_BY_GROUP_12

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_12
        INTERROGATED_BY_GROUP_12(32)
      • INTERROGATED_BY_GROUP_13

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_13
        INTERROGATED_BY_GROUP_13(33)
      • INTERROGATED_BY_GROUP_14

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_14
        INTERROGATED_BY_GROUP_14(34)
      • INTERROGATED_BY_GROUP_15

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_15
        INTERROGATED_BY_GROUP_15(35)
      • INTERROGATED_BY_GROUP_16

        public static final CauseOfTransmission INTERROGATED_BY_GROUP_16
        INTERROGATED_BY_GROUP_16(36)
      • REQUESTED_BY_GENERAL_COUNTER

        public static final CauseOfTransmission REQUESTED_BY_GENERAL_COUNTER
        REQUESTED_BY_GENERAL_COUNTER(37)
      • REQUESTED_BY_GROUP_1_COUNTER

        public static final CauseOfTransmission REQUESTED_BY_GROUP_1_COUNTER
        REQUESTED_BY_GENERAL_COUNTER(37)
      • REQUESTED_BY_GROUP_2_COUNTER

        public static final CauseOfTransmission REQUESTED_BY_GROUP_2_COUNTER
        REQUESTED_BY_GROUP_2_COUNTER(39)
      • REQUESTED_BY_GROUP_3_COUNTER

        public static final CauseOfTransmission REQUESTED_BY_GROUP_3_COUNTER
        REQUESTED_BY_GROUP_3_COUNTER(40)
      • REQUESTED_BY_GROUP_4_COUNTER

        public static final CauseOfTransmission REQUESTED_BY_GROUP_4_COUNTER
        REQUESTED_BY_GROUP_4_COUNTER(41),
      • UNKNOWN_CAUSE_OF_TRANSMISSION

        public static final CauseOfTransmission UNKNOWN_CAUSE_OF_TRANSMISSION
        UNKNOWN_CAUSE_OF_TRANSMISSION(45)
      • UNKNOWN_COMMON_ADDRESS_OF_ASDU

        public static final CauseOfTransmission UNKNOWN_COMMON_ADDRESS_OF_ASDU
        UNKNOWN_COMMON_ADDRESS_OF_ASDU(46)
      • UNKNOWN_INFORMATION_OBJECT_ADDRESS

        public static final CauseOfTransmission UNKNOWN_INFORMATION_OBJECT_ADDRESS
        UNKNOWN_INFORMATION_OBJECT_ADDRESS(47)
    • Method Detail

      • values

        public static CauseOfTransmission[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CauseOfTransmission c : CauseOfTransmission.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CauseOfTransmission valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getId

        public int getId()
        Returns the ID of this CauseOfTransmission.
        Returns:
        the ID.
      • causeFor

        public static CauseOfTransmission causeFor​(int id)
        Returns the CauseOfTransmission that corresponds to the given ID. Returns null if no CauseOfTransmission with the given ID exists.
        Parameters:
        id - the ID.
        Returns:
        the CauseOfTransmission that corresponds to the given ID.