Class CoreAction

    • Constructor Summary

      Constructors 
      Constructor Description
      CoreAction​(ActivityDef activityDef, int slot)  
    • Method Summary

      Modifier and Type Method Description
      int runCycle​(long value)
      Apply a work function to an input value, producing an int status code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.engineblock.activityapi.core.Action

        init
    • Constructor Detail

      • CoreAction

        public CoreAction​(ActivityDef activityDef,
                          int slot)
    • Method Detail

      • runCycle

        public int runCycle​(long value)
        Description copied from interface: SyncAction

        Apply a work function to an input value, producing an int status code.

        The meaning of status codes is activity specific, however the values Integer.MIN_VALUE, and Integer.MAX_VALUE are reserved.
        Specified by:
        runCycle in interface SyncAction
        Parameters:
        value - a long input
        Returns:
        an int status