Neighbor.java :  » Rule-Engine » drolls-5.0 » org » drools » Java Open Source

Java Open Source » Rule Engine » drolls 5.0 
drolls 5.0 » org » drools » Neighbor.java
package org.drools;

public class Neighbor {
    
    private Cell cell;
    private Cell neighbor;
    public Neighbor(Cell cell,
                    Cell neighbor) {
        super();
        this.cell = cell;
        this.neighbor = neighbor;
    }
    public Cell getCell() {
        return cell;
    }
    public void setCell(Cell cell) {
        this.cell = cell;
    }
    public Cell getNeighbor() {
        return neighbor;
    }
    public void setNeighbor(Cell neighbor) {
        this.neighbor = neighbor;
    }
    
    @Override
    public String toString() {
        return "[" + cell + " <=> " + neighbor +"]";
    }
    
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.