summaryrefslogtreecommitdiff
path: root/src/main/java/net/transit/network/system/swap
diff options
context:
space:
mode:
authorKyle Gunger <corechg@gmail.com>2020-04-15 15:09:41 -0400
committerKyle Gunger <corechg@gmail.com>2020-04-15 15:09:41 -0400
commitaed6ed909ee81beecac2836cb86654efe29e154b (patch)
tree84405cfa1b58a193335b9a47940fcaaa0ff764f6 /src/main/java/net/transit/network/system/swap
parent2f8be08dc2d398d71c2325b545e8fc49ca4e214d (diff)
[Update] Version 0.5.1
More documentation, and an updated list of packets
Diffstat (limited to 'src/main/java/net/transit/network/system/swap')
-rw-r--r--src/main/java/net/transit/network/system/swap/AcceptorNode.java14
-rw-r--r--src/main/java/net/transit/network/system/swap/ProviderNode.java10
2 files changed, 12 insertions, 12 deletions
diff --git a/src/main/java/net/transit/network/system/swap/AcceptorNode.java b/src/main/java/net/transit/network/system/swap/AcceptorNode.java
index 2dfd7a5..14c672d 100644
--- a/src/main/java/net/transit/network/system/swap/AcceptorNode.java
+++ b/src/main/java/net/transit/network/system/swap/AcceptorNode.java
@@ -1,9 +1,9 @@
package net.transit.network.system.swap;
-import net.transit.network.packet.Packet;
-import net.transit.network.system.Node;
+import net.transit.network.packet.IStaticPacket;
+import net.transit.network.system.INode;
-public interface AcceptorNode extends Node
+public interface AcceptorNode extends INode
{
/** Link another node as a provider
@@ -12,7 +12,7 @@ public interface AcceptorNode extends Node
* @param group
* @return
*/
- public boolean linkProvider(Node requester, String group);
+ public boolean linkProvider(INode requester, String group);
/** Unlink a provider from the acceptor
@@ -20,13 +20,13 @@ public interface AcceptorNode extends Node
* @param toUnlink
* @return
*/
- public boolean unlinkProvider(Node toUnlink);
+ public boolean unlinkProvider(INode toUnlink);
/**
* @return Node[]
*/
- public Node[] getProviders();
+ public INode[] getProviders();
/** Accept a packet from a provider
@@ -35,5 +35,5 @@ public interface AcceptorNode extends Node
* @param group
* @return
*/
- public boolean accept(Packet<?> packet, String group);
+ 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
index 1ba1ef3..831c87f 100644
--- a/src/main/java/net/transit/network/system/swap/ProviderNode.java
+++ b/src/main/java/net/transit/network/system/swap/ProviderNode.java
@@ -1,8 +1,8 @@
package net.transit.network.system.swap;
-import net.transit.network.system.Node;
+import net.transit.network.system.INode;
-public interface ProviderNode extends Node{
+public interface ProviderNode extends INode{
/** Link another node as an acceptor
*
@@ -10,7 +10,7 @@ public interface ProviderNode extends Node{
* @param group
* @return boolean
*/
- public boolean linkAcceptor(Node requester, String group);
+ public boolean linkAcceptor(INode requester, String group);
/** Unlink a provider from the acceptor
@@ -18,12 +18,12 @@ public interface ProviderNode extends Node{
* @param toUnlink
* @return
*/
- public boolean unlinkAcceptor(Node toUnlink);
+ public boolean unlinkAcceptor(INode toUnlink);
/**
* @return Node[]
*/
- public Node[] getAcceptors();
+ public INode[] getAcceptors();
}