diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-05-31 17:14:46 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-05-31 17:14:46 -0400 |
commit | 9190d7c12d1bbdcfc401543128fb0219e6fc0a81 (patch) | |
tree | 15c3a46a936f619ab9ee3d7039e88dbcf1a51d69 /src/main/java/net/cshift/transit/network/INode.java | |
parent | 04276d1d18d379248cc02b17c15a28760a5adb41 (diff) |
alpha.predev.2
Diffstat (limited to 'src/main/java/net/cshift/transit/network/INode.java')
-rw-r--r-- | src/main/java/net/cshift/transit/network/INode.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/net/cshift/transit/network/INode.java b/src/main/java/net/cshift/transit/network/INode.java index 0396347..8f74dd6 100644 --- a/src/main/java/net/cshift/transit/network/INode.java +++ b/src/main/java/net/cshift/transit/network/INode.java @@ -8,12 +8,10 @@ import net.cshift.transit.network.packet.*; */ public interface INode { - /** Returns true if the group given is used by the node + /** Returns a channel manifest for the INode * - * @param group the group to query - * @return {@code true} if the node supports the group */ - public boolean hasGroup(String group); + public PoolManifest getManifest(); /** Get the system managing the node or {@code null} if there isn't one * @@ -34,7 +32,7 @@ public interface INode * @param asker The asking node * @return A channel if the node accepts the request, {@code null} otherwise */ - public <T> Channel<T> connect(String group, INode asker); + public <T> Channel<T> connect(int poolID, INode asker); /** Accept a packet from a channel (or not). * @@ -58,7 +56,7 @@ public interface INode * * @apiNote Do not call this function, use Channel.rate() instead. * @param channel The channel asking for the transfer rate - * @return A Number representing the transfer rate from the channel (in base group units). + * @return A Number representing the transfer rate from the channel (in base group units per tick). */ public <T> Number getRate(Channel<T> channel); |