Class ProjectGlobalLog

java.lang.Object
com.strategyquant.tradinglib.project.ProjectGlobalLog

public class ProjectGlobalLog extends Object
The type Project global log.
  • Constructor Details

    • ProjectGlobalLog

      public ProjectGlobalLog(String projectFolder) throws Exception
      Instantiates a new Project global log.
      Parameters:
      projectFolder - the project folder
      Throws:
      Exception - the exception
    • ProjectGlobalLog

      public ProjectGlobalLog(String projectFolder, String rangerDir) throws Exception
      Instantiates a new Project global log.
      Parameters:
      projectFolder - the project folder
      rangerDir - the ranger dir
      Throws:
      Exception - the exception
  • Method Details

    • print

      public void print(String text, boolean addNewLine)
      Print.
      Parameters:
      text - the text
      addNewLine - the add new line
    • print

      public void print(String text)
      Print.
      Parameters:
      text - the text
    • printSeparator

      public void printSeparator()
      Print separator.
    • printDoubleSeparator

      public void printDoubleSeparator()
      Print double separator.
    • printEmptyLine

      public void printEmptyLine()
      Print empty line.
    • load

      public String load() throws Exception
      Load string.
      Returns:
      the string
      Throws:
      Exception - the exception
    • close

      public void close()
      Close.
    • addDurationStats

      public void addDurationStats(ProjectRunInfo projectRunInfo)
      Add duration stats.
      Parameters:
      projectRunInfo - the project run info
    • addAcceptedStats

      public void addAcceptedStats(ProjectRunInfo projectRunInfo, ISQTask task)
      Add accepted stats.
      Parameters:
      projectRunInfo - the project run info
      task - the task
    • addDismissalStats

      public void addDismissalStats(ProjectRunInfo projectRunInfo, ISQTask task)
      Add dismissal stats.
      Parameters:
      projectRunInfo - the project run info
      task - the task
    • getTaskStats

      public com.strategyquant.tradinglib.project.TaskStats getTaskStats(int taskHash)
      Gets task stats.
      Parameters:
      taskHash - the task hash
      Returns:
      the task stats
    • increaseStats

      public void increaseStats(int taskHash, String action1, long count1, String action2, long count2)
      Increase stats.
      Parameters:
      taskHash - the task hash
      action1 - the action 1
      count1 - the count 1
      action2 - the action 2
      count2 - the count 2
    • increaseStats

      public void increaseStats(String display, int taskHash, String action, long count, int order)
      Increase stats.
      Parameters:
      display - the display
      taskHash - the task hash
      action - the action
      count - the count
      order - the order
    • setStats

      public void setStats(String display, int taskHash, String action, long count, int order, String percentageCompareAction)
      Sets stats.
      Parameters:
      display - the display
      taskHash - the task hash
      action - the action
      count - the count
      order - the order
      percentageCompareAction - the percentage compare action
    • isRangerLog

      public boolean isRangerLog()
      Is ranger log boolean.
      Returns:
      the boolean