From 9190d7c12d1bbdcfc401543128fb0219e6fc0a81 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Mon, 31 May 2021 17:14:46 -0400 Subject: alpha.predev.2 --- src/main/java/net/cshift/transit/network/INode.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/main/java/net/cshift/transit/network/INode.java') 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 Channel connect(String group, INode asker); + public Channel 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 Number getRate(Channel channel); -- cgit v1.2.3