diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2019-11-22 21:56:36 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2019-11-22 21:56:36 -0500 |
commit | 1f94ea0af4d818c174ab6d7617ba891831a73203 (patch) | |
tree | cc5cdd65df18868158ba9338f42364125a02cb18 /src/main/java/net/transit/network | |
parent | 83b0332a83dd07e41b5a177c734b3268a5b21387 (diff) |
[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 <kgunger12@gmail.com>
Diffstat (limited to 'src/main/java/net/transit/network')
-rw-r--r-- | src/main/java/net/transit/network/system/Node.java | 9 | ||||
-rw-r--r-- | src/main/java/net/transit/network/system/swap/AcceptorNode.java | 2 |
2 files changed, 10 insertions, 1 deletions
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 |