Class AbstractActorProcessor

    • Field Detail

      • m_Errors

        protected List<String> m_Errors
        for collecting errors.
    • Constructor Detail

      • AbstractActorProcessor

        public AbstractActorProcessor()
    • Method Detail

      • process

        public void process​(Actor actor)
        Processes the actor.
        Specified by:
        process in interface ActorProcessor
        Parameters:
        actor - the actor to process
      • checkData

        protected void checkData​(Actor actor)
        The default implementation only checks whether there is any actor set.
        Parameters:
        actor - the actor to process
      • processActor

        protected abstract void processActor​(Actor actor)
        Performs the actual processing.
        Parameters:
        actor - the actor to process (is a copy of original for processors implementing ModifyingProcessor)
        See Also:
        ModifyingProcessor
      • addError

        protected void addError​(String msg)
        Adds the error message to the internal list of errors. Outputs the error on stderr as well.
        Parameters:
        msg - the error message to add
      • addError

        protected void addError​(String msg,
                                boolean output)
        Adds the error message to the internal list of errors and optionally outputs it on stderr.
        Parameters:
        msg - the error message to add
      • hasErrors

        public boolean hasErrors()
        Checks whether any errors were encountered.
        Specified by:
        hasErrors in interface ActorProcessor
        Returns:
        true if errors were encountered
        See Also:
        getErrors()
      • compareTo

        public int compareTo​(ActorProcessor o)
        Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

        Only compares the commandlines of the two objects.
        Specified by:
        compareTo in interface ActorProcessor
        Specified by:
        compareTo in interface Comparable<ActorProcessor>
        Parameters:
        o - the object to be compared.
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
        Throws:
        ClassCastException - if the specified object's type prevents it from being compared to this object.
      • equals

        public boolean equals​(Object o)
        Returns whether the two objects are the same.

        Only compares the commandlines of the two objects.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to be compared
        Returns:
        true if the object is the same as this one