Record Class CrbRouter.Allocation
java.lang.Object
java.lang.Record
com.quantfinlib.crb.CrbRouter.Allocation
- Enclosing class:
CrbRouter
public static record CrbRouter.Allocation(double internal, double[] dark, double lit, double expectedCostBps)
extends Record
Where the notional went.
dark[i] aligns with the venue
array passed in; expectedCostBps is the blended expected
cost of the whole allocation.-
Constructor Summary
ConstructorsConstructorDescriptionAllocation(double internal, double[] dark, double lit, double expectedCostBps) Creates an instance of aAllocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]dark()Returns the value of thedarkrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of theexpectedCostBpsrecord component.final inthashCode()Returns a hash code value for this object.doubleinternal()Returns the value of theinternalrecord component.doublelit()Returns the value of thelitrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Allocation
public Allocation(double internal, double[] dark, double lit, double expectedCostBps) Creates an instance of aAllocationrecord class.- Parameters:
internal- the value for theinternalrecord componentdark- the value for thedarkrecord componentlit- the value for thelitrecord componentexpectedCostBps- the value for theexpectedCostBpsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
internal
public double internal()Returns the value of theinternalrecord component.- Returns:
- the value of the
internalrecord component
-
dark
public double[] dark()Returns the value of thedarkrecord component.- Returns:
- the value of the
darkrecord component
-
lit
public double lit()Returns the value of thelitrecord component.- Returns:
- the value of the
litrecord component
-
expectedCostBps
public double expectedCostBps()Returns the value of theexpectedCostBpsrecord component.- Returns:
- the value of the
expectedCostBpsrecord component
-