java.lang.Object
io.github.tonywasher.joceanus.oceanus.profile.OceanusProfile

public class OceanusProfile extends Object
Profile data.
  • Constructor Details

    • OceanusProfile

      public OceanusProfile(String pName)
      Constructor.
      Parameters:
      pName - the name of the step
  • Method Details

    • getName

      public String getName()
      Obtain the name of the profile.
      Returns:
      the name
    • getStatus

      Obtain the status of the profile.
      Returns:
      the status
    • getElapsed

      public OceanusDecimal getElapsed()
      Obtain the elapsed time of the profile.
      Returns:
      the elapsedTime
    • getHidden

      public OceanusDecimal getHidden()
      Obtain the hidden time of the profile.
      Returns:
      the hiddenTime
    • subTaskIterator

      public Iterator<OceanusProfile> subTaskIterator()
      Obtain the subtask iterator.
      Returns:
      the iterator
    • startTask

      public OceanusProfile startTask(String pName)
      Start a new subTask.
      Parameters:
      pName - the name of the subTask
      Returns:
      the new task
    • end

      public void end()
      End the task.
    • isRunning

      public boolean isRunning()
      is the task running?
      Returns:
      true/false.
    • getActiveTask

      public OceanusProfile getActiveTask()
      Obtain the currently active task.
      Returns:
      the task