Added Paxos message classes
Implemented TCP communication
Implemented proper communication between replicas
Message classes now use pair class and are correct according to algo. Deleted proposal
minors syntax fix
Added message classes. Partially implemented methods for receiving and handling of incoming msgs, that form the basis for phase1 and phase2 of paxos. Added methods for unicast(), broadcast() and, decide() that evnetually will handled updating log and CLI status
Small fix
Changed send method in communiation to send object instead of string over tcp
Partly implemented phase 1. But phase2 now works if there is always 1 leader and it is set directly. This means that a porposal of a value noe goes directly to phas2 wihtout phas1
Not possible to withdraw, but does not entirely prevent user from withdrawing to less than 0, only throws exception
small fix
Just a bug caused by isEquals method in Proposal.java
Without change in leader, paxos impl now seems to work with both phase1 and phase2, though with some shortcomings
Does now send decidemsg periodcally after deciding a value
Replica should now fire a event that sends a FAIL status to CLI if the proposal was not accepted
Small changes regarding printing and testing main over 2 computers
Implemented log backup
Fixed changing of new leader and heartbeat
merged replica
Changes small error