public void addMessage(MixMessage mixMessage) { messagesToSend.put(mixMessage.getOwner(), mixMessage); }
private MixMessage createDummyMessage(AbstractClient owner, boolean isRequest) { NetworkNode source = isRequest ? owner : mix; NetworkNode destination = isRequest ? simulator.getDistantProxy() : owner; return MixMessage.getInstance(isRequest, source, destination, owner, Simulator.getNow(), true); }