Fixing initialization
This commit is contained in:
parent
5f481a6e48
commit
bd653482e5
@ -12,8 +12,6 @@ import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
public interface INode {
|
||||
List<IChannel> subscribedChannels = new LinkedList<>();
|
||||
|
||||
void sendTransaction(Product product, INode INode);
|
||||
|
||||
void receiveTransaction(Transaction transaction);
|
||||
|
||||
@ -9,10 +9,17 @@ import cz.cvut.fel.sit.omo.foodchain.product.ProductType;
|
||||
import cz.cvut.fel.sit.omo.foodchain.requirement.Requirement;
|
||||
import cz.cvut.fel.sit.omo.foodchain.signature.Signature;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class NodeBase implements INode {
|
||||
List<IChannel> subscribedChannels;
|
||||
|
||||
public NodeBase(){
|
||||
subscribedChannels = new LinkedList<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendTransaction(Product product, INode node) {
|
||||
Transaction transaction = new ProductTransaction();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user