Class ActorClassification

  • All Implemented Interfaces:
    java.lang.Comparable<ActorClassification>

    public class ActorClassification
    extends java.lang.Object
    implements java.lang.Comparable<ActorClassification>
    Tag actors are registered and organized according to their Classification. The classification simply dictates the name of a group of factories, and then their relative position. This is important because values are generated at level 0, and then are passed upwards- writes are handled in reverse.

    Module authors can register new actor factories for pre-defined classifications, or can create new classifications.

    Classifications over 1000 should not mutate values, they should only observe values. For example, Alarming and History fall into this category. The only exception is Scripting, which is already handled separately anyhow. We do it like this because actors are always sorted by their position. By having observers be higher numbers, we can set the mutated tag value before processing through the observers.

    Since:
    8.0
    • Constructor Detail

      • ActorClassification

        public ActorClassification​(java.lang.String id,
                                   int pos)
    • Method Detail

      • getId

        public java.lang.String getId()
      • getPosition

        public int getPosition()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isObserver

        public boolean isObserver()
        Returns whether this classification only observes values, and doesn't mutate them. This is determined by its position.