1
0
This commit is contained in:
choelzl 2020-12-11 19:12:19 +01:00
parent ec8ee67745
commit 1fbbc512a7
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
6 changed files with 23 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import java.util.HashMap;
/** /**
* Message abstraction class * Single Message Class
* *
* @author C. Hölzl * @author C. Hölzl
*/ */

View File

@ -8,6 +8,11 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
/**
* Bundle of Messages Class
*
* @author C. Hölzl
*/
public class MessageBundle extends NetMessageAbstract { public class MessageBundle extends NetMessageAbstract {
public final List<Message> messageList; public final List<Message> messageList;

View File

@ -4,6 +4,11 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
/**
* Message abstraction class
*
* @author C. Hölzl
*/
public abstract class NetMessageAbstract implements NetMessageInterface { public abstract class NetMessageAbstract implements NetMessageInterface {
public final TYPE tpe; public final TYPE tpe;
public final Integer src; public final Integer src;

View File

@ -14,7 +14,7 @@ import java.util.concurrent.PriorityBlockingQueue;
/** /**
* NetEventHandler for BLUNDLER * NetEventHandler for BLUNDLER
* *
* Groups Multiple messages into larger packets (and de-groups them on receive * Groups Multiple messages into larger packets (and de-groups them on receive)
* *
* @author C. Hölzl * @author C. Hölzl
*/ */

View File

@ -11,6 +11,16 @@ import java.util.concurrent.PriorityBlockingQueue;
import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
/**
* NetEventHandler for Local Causal Broadcast
*
* DeliverIf: packet from queue satisfies LCB ordering
*
* Send: add dependencies to packet
* Deliver: Add packet to received packet queue for DeliverIf
*
* @author C. Hölzl
*/
public class NetHandlerLCB extends NetEventHandlerAbstract { public class NetHandlerLCB extends NetEventHandlerAbstract {
private static Map<Integer, List<Integer>> causality; private static Map<Integer, List<Integer>> causality;

View File

@ -43,7 +43,7 @@ public abstract class ParamDetector {
NetManager.FD_MAX_TRIES = 10; NetManager.FD_MAX_TRIES = 10;
NetManager.FD_WAIT = 1000; NetManager.FD_WAIT = 1000;
NetManager.BUNDLE_SIZE = 2; NetManager.BUNDLE_SIZE = 100;
NetManager.WINDOW_WIDTH *= NetManager.BUNDLE_SIZE; NetManager.WINDOW_WIDTH *= NetManager.BUNDLE_SIZE;
} }
} }