Class StatsTypeCombination

java.lang.Object
com.strategyquant.tradinglib.StatsTypeCombination
All Implemented Interfaces:
Serializable

public class StatsTypeCombination extends Object implements Serializable
The Class StatsTypeCombination.
See Also:
Serialized Form
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.slf4j.Logger
    The Constant Log.
  • Constructor Summary

    Constructors
    Constructor
    Description
    StatsTypeCombination​(byte direction, byte plType, byte sampleType)
    Instantiates a new stats type combination.
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    createKey​(byte direction, byte plType, byte sampleType)
    Creates the key.
    byte
    Gets the direction.
    int
    Get the key of this combination.
    Gets the key as str.
    byte
    Gets the PL type.
    byte
    Gets the sample type.
    boolean
    returns true if it is the main combination: Both directions, Money, Full sample
    set​(byte direction, byte plType, byte sampleType)
    Creates the key.
    To string.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • Log

      public static final org.slf4j.Logger Log
      The Constant Log.
  • Constructor Details

    • StatsTypeCombination

      public StatsTypeCombination(byte direction, byte plType, byte sampleType)
      Instantiates a new stats type combination.
      Parameters:
      direction - the direction
      plType - the pl type
      sampleType - the sample type
  • Method Details

    • set

      public StatsTypeCombination set(byte direction, byte plType, byte sampleType)
      Creates the key.
      Parameters:
      direction - the direction
      plType - the pl type
      sampleType - the sample type
      Returns:
      the string
    • createKey

      public static int createKey(byte direction, byte plType, byte sampleType)
      Creates the key.
      Parameters:
      direction - the direction
      plType - the pl type
      sampleType - the sample type
      Returns:
      the int
    • getDirection

      public byte getDirection()
      Gets the direction.
      Returns:
      the direction
    • getPLType

      public byte getPLType()
      Gets the PL type.
      Returns:
      the PL type
    • getSampleType

      public byte getSampleType()
      Gets the sample type.
      Returns:
      the sample type
    • getKey

      public int getKey()
      Get the key of this combination.
      Returns:
      the string
    • getKeyAsStr

      public String getKeyAsStr()
      Gets the key as str.
      Returns:
      the key as str
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string
    • isMainOne

      public boolean isMainOne()
      returns true if it is the main combination: Both directions, Money, Full sample
      Returns: