All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cass.rollup.processors.v2.graph.collapser.NodeRelation Maven / Gradle / Ivy

There is a newer version: 3.1.8
Show newest version
package cass.rollup.processors.v2.graph.collapser;

public class NodeRelation {

    private RelationType.RELATION_TYPE type;
    private Node source;
    private Node target;

    public NodeRelation(Node source, Node target, RelationType.RELATION_TYPE type) {
        this.source = source;
        this.target = target;
        this.type = type;
    }

    public Node getSource() {return source;}
    public void setSource(Node source) {this.source = source;}

    public Node getTarget() {return target;}
    public void setTarget(Node target) {this.target = target;}

    public RelationType.RELATION_TYPE getType() {return type;}
    public void setType(RelationType.RELATION_TYPE type) {this.type = type;}

    public String toString() {
        return getSource().toString() + " >>" + getType() + "<< " + getTarget().toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy