2 * @(#)NodeInterface.java
3 * Time-stamp: "2007-10-18 01:50:57 spoof"
6 import java
.net
.DatagramPacket
;
9 * NodeInterface – an interface for a node in a packet ring.
11 * @author "Anton Johansson" <anton.johansson@gmail.com>
12 * @author "Victor Zamanian" <victor.zamanian@gmail.com>
14 public interface NodeInterface
{
15 public abstract boolean sendPacket(DatagramPacket sendPacket
);
16 public abstract boolean receivePacket(DatagramPacket receivePacket
);
17 public abstract DatagramPacket
constructPacket(int messageType
, String message
);
18 public abstract boolean writeToLog();
19 public abstract boolean closeLogFile();