summaryrefslogtreecommitdiff
path: root/src/main/java/net/transit/network/system
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2019-11-21 18:35:14 -0500
committerKyle Gunger <kgunger12@gmail.com>2019-11-21 18:35:14 -0500
commitd08cbf6b8705df234077c49608de3c2f7ff0e3fa (patch)
tree6e8705d65e4e0f0c1cafe9736980504b5b6f9cde /src/main/java/net/transit/network/system
parentdf044930bca4252ff6e4814c654a612c6aee2136 (diff)
[Update] Codebase updated to 0.2.8
~ Rewrote files and documentation for cohesion ~ Removed I from the start of interface names
Diffstat (limited to 'src/main/java/net/transit/network/system')
-rw-r--r--src/main/java/net/transit/network/system/INode.java50
-rw-r--r--src/main/java/net/transit/network/system/Node.java50
-rw-r--r--src/main/java/net/transit/network/system/System.java (renamed from src/main/java/net/transit/network/system/ISystem.java)4
3 files changed, 52 insertions, 52 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 2dc3686..0000000
--- a/src/main/java/net/transit/network/system/INode.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package net.transit.network.system;
-
-import net.transit.network.swap.IAcceptor;
-import net.transit.network.swap.IProvider;
-
-/**
- * @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 provide
- *
- * @return String[]
- */
- public String[] groupsProvided();
-
- /**Get the system managing the node or {@code null} if there isn't one
- *
- * @return ISystem
- */
- public ISystem getSystem();
-
- /**Returns {@code true} if the node provides IAcceptors
- *
- * @return boolean
- */
- public boolean isAcceptor();
-
- /**Returns an IAcceptor or {@code null} depending on the requester and group
- *
- * @param requester The object requesting the IAcceptor
- * @param group
- * @return IAcceptor
- */
- public IAcceptor<?> requestAcceptor(Object requester, String group);
-
- /**Returns {@code true} if the node provides IProviders
- *
- */
- public boolean isProvider();
-
- /**Returns an IProvider or {@code null} depending on the requester and group
- *
- * @param requester The object requesting the IProvider
- * @param group
- * @return IProvider
- */
- public IProvider<?> requestProvider(Object requestor, String group);
-}
diff --git a/src/main/java/net/transit/network/system/Node.java b/src/main/java/net/transit/network/system/Node.java
new file mode 100644
index 0000000..8e0fcbb
--- /dev/null
+++ b/src/main/java/net/transit/network/system/Node.java
@@ -0,0 +1,50 @@
+package net.transit.network.system;
+
+import net.transit.network.swap.Acceptor;
+import net.transit.network.swap.Provider;
+
+/**
+ * @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 provide
+ *
+ * @return String[]
+ */
+ public String[] groupsProvided();
+
+ /**Get the system managing the node or {@code null} if there isn't one
+ *
+ * @return ISystem
+ */
+ public System getSystem();
+
+ /**Returns {@code true} if the node provides Acceptors
+ *
+ * @return boolean
+ */
+ public boolean isAcceptor();
+
+ /**Returns an Acceptor or {@code null} depending on the requester and group
+ *
+ * @param requester The object requesting the Acceptor
+ * @param group
+ * @return Acceptor
+ */
+ public Acceptor<?> requestAcceptor(Object requester, String group);
+
+ /**Returns {@code true} if the node provides Providers
+ *
+ */
+ public boolean isProvider();
+
+ /**Returns an Provider or {@code null} depending on the requester and group
+ *
+ * @param requester The object requesting the Provider
+ * @param group
+ * @return Provider
+ */
+ public Provider<?> requestProvider(Object requestor, String group);
+}
diff --git a/src/main/java/net/transit/network/system/ISystem.java b/src/main/java/net/transit/network/system/System.java
index fd2fa51..c70292a 100644
--- a/src/main/java/net/transit/network/system/ISystem.java
+++ b/src/main/java/net/transit/network/system/System.java
@@ -7,11 +7,11 @@ package net.transit.network.system;
*
* @param T The object type stored in the system.
*/
-public interface ISystem
+public interface System
{
/**The nodes stored by the system
*
* @return INode[]
*/
- public INode[] getNodes();
+ public Node[] getNodes();
}