Package com.strategyquant.tradinglib
Class StatsTypeCombination
java.lang.Object
com.strategyquant.tradinglib.StatsTypeCombination
- All Implemented Interfaces:
Serializable
The Class StatsTypeCombination.
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
ConstructorDescriptionStatsTypeCombination(byte direction, byte plType, byte sampleType)
Instantiates a new stats type combination. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
createKey(byte direction, byte plType, byte sampleType)
Creates the key.byte
Gets the direction.int
getKey()
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 sampleset(byte direction, byte plType, byte sampleType)
Creates the key.toString()
To string.
-
Field Details
-
Log
public static final org.slf4j.Logger LogThe Constant Log.
-
-
Constructor Details
-
StatsTypeCombination
public StatsTypeCombination(byte direction, byte plType, byte sampleType)Instantiates a new stats type combination.- Parameters:
direction
- the directionplType
- the pl typesampleType
- the sample type
-
-
Method Details
-
set
Creates the key.- Parameters:
direction
- the directionplType
- the pl typesampleType
- the sample type- Returns:
- the string
-
createKey
public static int createKey(byte direction, byte plType, byte sampleType)Creates the key.- Parameters:
direction
- the directionplType
- the pl typesampleType
- 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
Gets the key as str.- Returns:
- the key as str
-
toString
To string. -
isMainOne
public boolean isMainOne()returns true if it is the main combination: Both directions, Money, Full sample- Returns:
-