Class FixedPenaltyScorer


  • public class FixedPenaltyScorer
    extends Object
    [`Score`] implementation that uses a fixed penalty.
    • Method Detail

      • 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