Package org.ldk.structs
Class FixedPenaltyScorer
- java.lang.Object
-
- org.ldk.structs.FixedPenaltyScorer
-
public class FixedPenaltyScorer extends Object
[`ScoreLookUp`] implementation that uses a fixed penalty.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScoreLookUpas_ScoreLookUp()Constructs a new ScoreLookUp which calls the relevant methods on this_arg.ScoreUpdateas_ScoreUpdate()Constructs a new ScoreUpdate which calls the relevant methods on this_arg.FixedPenaltyScorerclone()Creates a copy of the FixedPenaltyScorerprotected voidfinalize()static Result_FixedPenaltyScorerDecodeErrorZread(byte[] ser, long arg)Read a FixedPenaltyScorer from a byte array, created by FixedPenaltyScorer_writestatic FixedPenaltyScorerwith_penalty(long penalty_msat)Creates a new scorer using `penalty_msat`.byte[]write()Serialize the FixedPenaltyScorer object into a byte array which can be read by FixedPenaltyScorer_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public FixedPenaltyScorer clone()
Creates a copy of the FixedPenaltyScorer
-
with_penalty
public static FixedPenaltyScorer with_penalty(long penalty_msat)
Creates a new scorer using `penalty_msat`.
-
as_ScoreLookUp
public ScoreLookUp as_ScoreLookUp()
Constructs a new ScoreLookUp which calls the relevant methods on this_arg. This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is
-
as_ScoreUpdate
public ScoreUpdate as_ScoreUpdate()
Constructs a new ScoreUpdate which calls the relevant methods on this_arg. This copies the `inner` pointer in this_arg and thus the returned ScoreUpdate must be freed before this_arg is
-
write
public byte[] write()
Serialize the FixedPenaltyScorer object into a byte array which can be read by FixedPenaltyScorer_read
-
read
public static Result_FixedPenaltyScorerDecodeErrorZ read(byte[] ser, long arg)
Read a FixedPenaltyScorer from a byte array, created by FixedPenaltyScorer_write
-
-