Class Score


  • public class Score
    extends Object
    A trait which can both lookup and update routing channel penalty scores. This is used in places where both bounds are required and implemented for all types which implement [`ScoreLookUp`] and [`ScoreUpdate`]. Bindings users may need to manually implement this for their custom scoring implementations.
    • Method Detail

      • destroy

        public void destroy()
        Destroys the object, freeing associated resources. After this call, any access to this object may result in a SEGFAULT or worse. You should generally NEVER call this method. You should let the garbage collector do this for you when it finalizes objects. However, it may be useful for types which represent locks and should be closed immediately to avoid holding locks until the GC runs.
      • get_score_look_up

        public ScoreLookUp get_score_look_up()
        Gets the underlying ScoreLookUp.
      • get_score_update

        public ScoreUpdate get_score_update()
        Gets the underlying ScoreUpdate.
      • write

        public byte[] write()
        Serialize the object into a byte array