1 package ru.bosony.graph;
3 import ru.bosony.model.mine.Cell;
4 import ru.bosony.model.mine.Mine;
7 * @author indvdum (gotoindvdum[at]gmail[dot]com) <br>
11 public class CellsLink {
17 public CellsLink(Mine mine, Cell source, Cell target) {
24 protected void calculateWeight() {
28 public Mine getMine() {
32 public Cell getSource() {
36 public Cell getTarget() {
40 public double getWeight() {
45 public int hashCode() {
46 // TODO Auto-generated method stub
47 return super.hashCode();
51 public boolean equals(Object obj) {
52 if (obj instanceof CellsLink) {
53 CellsLink otherLink = (CellsLink) obj;
54 return source.equals(otherLink.source) && target.equals(otherLink.target);
56 return super.equals(obj);