-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8aa5ee
commit 101809e
Showing
10 changed files
with
77 additions
and
16 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
jdeeco-network-plugin/src/cz/cuni/mff/d3s/jdeeco/network/L2PacketProcessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package cz.cuni.mff.d3s.jdeeco.network; | ||
|
||
import cz.cuni.mff.d3s.jdeeco.network.l2.L2Packet; | ||
|
||
/** | ||
* Interface for passing L2 packets to Layer 2 from Layer 1 | ||
* | ||
* @author Vladimir Matena <matena@d3s.mff.cuni.cz> | ||
* | ||
*/ | ||
public interface L2PacketProcessor { | ||
/** | ||
* Processes L2 packet Layer 2 | ||
* | ||
* @param packet | ||
* Packet to be processed | ||
*/ | ||
public void processL2Packet(L2Packet packet); | ||
} |
22 changes: 22 additions & 0 deletions
22
jdeeco-network-plugin/src/cz/cuni/mff/d3s/jdeeco/network/L2PacketSender.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package cz.cuni.mff.d3s.jdeeco.network; | ||
|
||
import cz.cuni.mff.d3s.jdeeco.network.l2.L2Packet; | ||
|
||
/** | ||
* Interface for processing L2 packets from Layer 2 by Layer 1 | ||
* | ||
* @author Vladimir Matena <matena@d3s.mff.cuni.cz> | ||
* | ||
*/ | ||
public interface L2PacketSender { | ||
/** | ||
* Sends L2 packet by Layer 1 | ||
* | ||
* @param l2Packet | ||
* Packet to send | ||
* @param address | ||
* Destination address | ||
* @return True if the packet has been processed, false otherwise | ||
*/ | ||
public boolean sendL2Packet(L2Packet l2Packet, Address address); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
jdeeco-network-plugin/src/cz/cuni/mff/d3s/jdeeco/network/NetworkPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package cz.cuni.mff.d3s.jdeeco.network; | ||
|
||
public interface NetworkPlugin extends NetworkToDevice, NetworkToGossip, Layer1Manager, Layer2Manager { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters