- /**
- * Marks the node with the given `node_id` as banned, i.e.,
- * it will be avoided during path finding.
- */
- public void add_banned(org.ldk.structs.NodeId node_id) {
- bindings.ProbabilisticScorer_add_banned(this.ptr, node_id == null ? 0 : node_id.ptr);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(node_id);
- if (this != null) { this.ptrs_to.add(node_id); };
- }
-
- /**
- * Removes the node with the given `node_id` from the list of nodes to avoid.
- */
- public void remove_banned(org.ldk.structs.NodeId node_id) {
- bindings.ProbabilisticScorer_remove_banned(this.ptr, node_id == null ? 0 : node_id.ptr);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(node_id);
- if (this != null) { this.ptrs_to.add(node_id); };
- }
-
- /**
- * Sets a manual penalty for the given node.
- */
- public void set_manual_penalty(org.ldk.structs.NodeId node_id, long penalty) {
- bindings.ProbabilisticScorer_set_manual_penalty(this.ptr, node_id == null ? 0 : node_id.ptr, penalty);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(node_id);
- Reference.reachabilityFence(penalty);
- if (this != null) { this.ptrs_to.add(node_id); };
- }
-
- /**
- * Removes the node with the given `node_id` from the list of manual penalties.
- */
- public void remove_manual_penalty(org.ldk.structs.NodeId node_id) {
- bindings.ProbabilisticScorer_remove_manual_penalty(this.ptr, node_id == null ? 0 : node_id.ptr);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(node_id);
- if (this != null) { this.ptrs_to.add(node_id); };
- }
-
- /**
- * Clears the list of manual penalties that are applied during path finding.
- */
- public void clear_manual_penalties() {
- bindings.ProbabilisticScorer_clear_manual_penalties(this.ptr);
- Reference.reachabilityFence(this);
- }
-