diff options
author | Kyle Gunger <corechg@gmail.com> | 2020-04-16 15:04:40 -0400 |
---|---|---|
committer | Kyle Gunger <corechg@gmail.com> | 2020-04-16 15:04:40 -0400 |
commit | 5759e17941c537b7c73867d384cb9e22ce6f2b52 (patch) | |
tree | 1cb4cdb245ef9f0eefb85e31cd5514dc746973ce /src/main/java/net/transit/network/system | |
parent | bbfbb508919459d9885bd9d690c1c483e7e3f70b (diff) |
[Update] Version 0.8.1
+ Change domain to an actual website.
Diffstat (limited to 'src/main/java/net/transit/network/system')
6 files changed, 0 insertions, 192 deletions
diff --git a/src/main/java/net/transit/network/system/INode.java b/src/main/java/net/transit/network/system/INode.java deleted file mode 100644 index 9c42bf1..0000000 --- a/src/main/java/net/transit/network/system/INode.java +++ /dev/null @@ -1,45 +0,0 @@ -package net.transit.network.system; - -/** - * @author Kyle Gunger - * @apiNote A node inside or outside a system. Provides acceptors and providers to other nodes. - */ -public interface INode -{ - - /**Returns the groupIDs of groups the node interacts with - * - * @return String[] - */ - public String[] groupsProvided(); - - - /**Get the system managing the node or {@code null} if there isn't one - * - * @return System - */ - public System getSystem(); - - - /** Get the data of one of the TypeGroups the Node supports - * - * @param groupID - * @return - */ - 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[] - */ - public INode[] getConnections(); -} diff --git a/src/main/java/net/transit/network/system/ISystem.java b/src/main/java/net/transit/network/system/ISystem.java deleted file mode 100644 index fd2fa51..0000000 --- a/src/main/java/net/transit/network/system/ISystem.java +++ /dev/null @@ -1,17 +0,0 @@ -package net.transit.network.system; - - -/**ISystem - a group of nodes optimized for performance - * - * A node can exist without a system, but a system can not exist without at least one root node. - * - * @param T The object type stored in the system. - */ -public interface ISystem -{ - /**The nodes stored by the system - * - * @return INode[] - */ - public INode[] getNodes(); -} diff --git a/src/main/java/net/transit/network/system/Node.java b/src/main/java/net/transit/network/system/Node.java deleted file mode 100644 index 6a661f3..0000000 --- a/src/main/java/net/transit/network/system/Node.java +++ /dev/null @@ -1,45 +0,0 @@ -package net.transit.network.system; - -/** - * @author Kyle Gunger - * @apiNote A node inside or outside a system. Provides acceptors and providers to other nodes. - */ -public interface Node -{ - - /**Returns the groupIDs of groups the node interacts with - * - * @return String[] - */ - public String[] groupsProvided(); - - - /**Get the system managing the node or {@code null} if there isn't one - * - * @return System - */ - public System getSystem(); - - - /** Get the data of one of the TypeGroups the Node supports - * - * @param groupID - * @return - */ - 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[] - */ - public Node[] getConnections(); -} diff --git a/src/main/java/net/transit/network/system/System.java b/src/main/java/net/transit/network/system/System.java deleted file mode 100644 index c70292a..0000000 --- a/src/main/java/net/transit/network/system/System.java +++ /dev/null @@ -1,17 +0,0 @@ -package net.transit.network.system; - - -/**ISystem - a group of nodes optimized for performance - * - * A node can exist without a system, but a system can not exist without at least one root node. - * - * @param T The object type stored in the system. - */ -public interface System -{ - /**The nodes stored by the system - * - * @return INode[] - */ - public Node[] getNodes(); -} diff --git a/src/main/java/net/transit/network/system/swap/AcceptorNode.java b/src/main/java/net/transit/network/system/swap/AcceptorNode.java deleted file mode 100644 index 14c672d..0000000 --- a/src/main/java/net/transit/network/system/swap/AcceptorNode.java +++ /dev/null @@ -1,39 +0,0 @@ -package net.transit.network.system.swap; - -import net.transit.network.packet.IStaticPacket; -import net.transit.network.system.INode; - -public interface AcceptorNode extends INode -{ - - /** Link another node as a provider - * - * @param requester The object to be a provider - * @param group - * @return - */ - public boolean linkProvider(INode requester, String group); - - - /** Unlink a provider from the acceptor - * - * @param toUnlink - * @return - */ - public boolean unlinkProvider(INode toUnlink); - - - /** - * @return Node[] - */ - public INode[] getProviders(); - - - /** Accept a packet from a provider - * - * @param packet - * @param group - * @return - */ - public boolean accept(IStaticPacket<?> packet, String group); -} diff --git a/src/main/java/net/transit/network/system/swap/ProviderNode.java b/src/main/java/net/transit/network/system/swap/ProviderNode.java deleted file mode 100644 index 831c87f..0000000 --- a/src/main/java/net/transit/network/system/swap/ProviderNode.java +++ /dev/null @@ -1,29 +0,0 @@ -package net.transit.network.system.swap; - -import net.transit.network.system.INode; - -public interface ProviderNode extends INode{ - - /** Link another node as an acceptor - * - * @param requester The object requesting the Acceptor - * @param group - * @return boolean - */ - public boolean linkAcceptor(INode requester, String group); - - - /** Unlink a provider from the acceptor - * - * @param toUnlink - * @return - */ - public boolean unlinkAcceptor(INode toUnlink); - - - /** - * @return Node[] - */ - public INode[] getAcceptors(); - -} |