public class DVInfo { static final int LIVES = 5; String nextHop; int distance; int liveCounter = LIVES; public int getLiveCounter() { return liveCounter; } public void setLiveCounter(int liveCounter) { this.liveCounter = liveCounter; } public void decLiveCounter() { --liveCounter; } public void resetLiveCounter() { liveCounter = LIVES; } public DVInfo(String nextHop, int distance) { super(); this.nextHop = nextHop; this.distance = distance; } public int getDistance() { return distance; } public void setDistance(int distance) { this.distance = distance; } public String getNextHop() { return nextHop; } public void setNextHop(String nextHop) { this.nextHop = nextHop; } }