Package org.ldk.structs
Class FixedPenaltyScorer
- java.lang.Object
-
- org.ldk.structs.FixedPenaltyScorer
-
public class FixedPenaltyScorer extends Object
[`Score`] implementation that uses a fixed penalty.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Score
as_Score()
Constructs a new Score which calls the relevant methods on this_arg.FixedPenaltyScorer
clone()
Creates a copy of the FixedPenaltyScorerprotected void
finalize()
static Result_FixedPenaltyScorerDecodeErrorZ
read(byte[] ser, long arg)
Read a FixedPenaltyScorer from a byte array, created by FixedPenaltyScorer_writestatic FixedPenaltyScorer
with_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_Score
public Score as_Score()
Constructs a new Score which calls the relevant methods on this_arg. This copies the `inner` pointer in this_arg and thus the returned Score 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
-
-