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/PoolManifest.java | |
parent | 04276d1d18d379248cc02b17c15a28760a5adb41 (diff) |
alpha.predev.2
Diffstat (limited to 'src/main/java/net/cshift/transit/network/PoolManifest.java')
-rw-r--r-- | src/main/java/net/cshift/transit/network/PoolManifest.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/main/java/net/cshift/transit/network/PoolManifest.java b/src/main/java/net/cshift/transit/network/PoolManifest.java new file mode 100644 index 0000000..d6bec43 --- /dev/null +++ b/src/main/java/net/cshift/transit/network/PoolManifest.java @@ -0,0 +1,36 @@ +package net.cshift.transit.network; + +/** + * @author Kyle Gunger + * @apiNote A channel manifest represents a set of possible data/resource pools that another node can request a channel to. + */ +public interface PoolManifest { + + /** Represents the number of pools that the node has access to for the specified resource. + * @apiNote A "pool" in this context represents an independant network of resources. + * Pool zero should be the default group that simple nodes will attempt to connect to. + * @param group The TypeGroup that the pool belongs to + */ + public int poolCount(String group); + + /** The ID of the pool. The INode will use this in a connection attempt with the other INode. + * + * @param group The TypeGroup the pool belongs to + * @param pool Array-like index for pool (gotten from poolCount) + */ + public int poolID(String group, int pool); + + /** If the mod supports named pools, the names can be querried through this function. + * + * @param group The TypeGroup the pool belongs to + * @param pool Array-like index for pool (gotten from poolCount) + */ + public String poolName(String group, int pool); + + /** If the mod supports pool descriptions, they can be accessed by this method. + * + * @param group The TypeGroup the pool belongs to + * @param pool Array-like index for pool (gotten from poolCount) + */ + public String poolDescription(String group, int pool); +} |