From 1f94ea0af4d818c174ab6d7617ba891831a73203 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Fri, 22 Nov 2019 21:56:36 -0500 Subject: [Update] version 0.4.3 ~ Change InitSimpleGroups to SimpleGroups + Add a way to set the node data (mostly for systems) Signed-off-by: Kyle Gunger --- src/main/java/net/transit/network/system/Node.java | 9 +++++++++ src/main/java/net/transit/network/system/swap/AcceptorNode.java | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src/main/java/net/transit/network') diff --git a/src/main/java/net/transit/network/system/Node.java b/src/main/java/net/transit/network/system/Node.java index 9ab9812..6a661f3 100644 --- a/src/main/java/net/transit/network/system/Node.java +++ b/src/main/java/net/transit/network/system/Node.java @@ -28,6 +28,15 @@ public interface Node */ public Object getData(String groupID); + + /** Set the group data for the node + * + * @param dat + * @param groupID + */ + public void setData(Object dat, String groupID); + + /** Get the nodes that this node is connected to * * @return Node[] diff --git a/src/main/java/net/transit/network/system/swap/AcceptorNode.java b/src/main/java/net/transit/network/system/swap/AcceptorNode.java index 69c07e7..2dfd7a5 100644 --- a/src/main/java/net/transit/network/system/swap/AcceptorNode.java +++ b/src/main/java/net/transit/network/system/swap/AcceptorNode.java @@ -12,7 +12,7 @@ public interface AcceptorNode extends Node * @param group * @return */ - public boolean linkProvider(Node requestor, String group); + public boolean linkProvider(Node requester, String group); /** Unlink a provider from the acceptor -- cgit v1.2.3