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

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

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

public class PacketRelation {

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

    public PacketRelation(NodePacket source, NodePacket target, RelationType.RELATION_TYPE type) {
        this.source = source;
        this.target = target;
        this.type = type;
    }

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

    public NodePacket getTarget() {return target;}
    public void setTarget(NodePacket 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