public RandomWalkAgent(double speed, int radius, double reliability) {
this.speed = speed;
this.radius = radius;
communicatedWith = new HashSet<RandomWalkAgent>();
lastCommunicationTime = new HashMap<RandomWalkAgent, Long>();
mailbox = new Mailbox();
lock = new ReentrantLock();
communications = 0;
this.reliability = reliability;
}