Record Class AdaptiveSor.RoutingDecision
java.lang.Object
java.lang.Record
com.quantfinlib.execution.AdaptiveSor.RoutingDecision
- Enclosing class:
AdaptiveSor
public static record AdaptiveSor.RoutingDecision(List<SmartOrderRouter.RouteLeg> lit, List<SmartOrderRouter.RouteLeg> probes, long routedQty, long unrouted)
extends Record
The routed plan:
lit legs cover up to the requested quantity
(best-expected-cost first); probes are additive contingent
dark legs sent alongside; unrouted is the shortfall no
eligible lit venue could absorb (0 on a fully routed order).-
Constructor Summary
ConstructorsConstructorDescriptionRoutingDecision(List<SmartOrderRouter.RouteLeg> lit, List<SmartOrderRouter.RouteLeg> probes, long routedQty, long unrouted) Creates an instance of aRoutingDecisionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lit()Returns the value of thelitrecord component.probes()Returns the value of theprobesrecord component.longReturns the value of theroutedQtyrecord component.final StringtoString()Returns a string representation of this record class.longunrouted()Returns the value of theunroutedrecord component.
-
Constructor Details
-
RoutingDecision
public RoutingDecision(List<SmartOrderRouter.RouteLeg> lit, List<SmartOrderRouter.RouteLeg> probes, long routedQty, long unrouted) Creates an instance of aRoutingDecisionrecord class.- Parameters:
lit- the value for thelitrecord componentprobes- the value for theprobesrecord componentroutedQty- the value for theroutedQtyrecord componentunrouted- the value for theunroutedrecord 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. -
lit
Returns the value of thelitrecord component.- Returns:
- the value of the
litrecord component
-
probes
Returns the value of theprobesrecord component.- Returns:
- the value of the
probesrecord component
-
routedQty
public long routedQty()Returns the value of theroutedQtyrecord component.- Returns:
- the value of the
routedQtyrecord component
-
unrouted
public long unrouted()Returns the value of theunroutedrecord component.- Returns:
- the value of the
unroutedrecord component
-