cass.rollup.processors.v2.graph.collapser.PacketRelation.js Maven / Gradle / Ivy
var PacketRelation = function(source, target, type) {
this.source = source;
this.target = target;
this.type = type;
};
PacketRelation = stjs.extend(PacketRelation, null, [], function(constructor, prototype) {
prototype.type = null;
prototype.source = null;
prototype.target = null;
prototype.getSource = function() {
return this.source;
};
prototype.setSource = function(source) {
this.source = source;
};
prototype.getTarget = function() {
return this.target;
};
prototype.setTarget = function(target) {
this.target = target;
};
prototype.getType = function() {
return this.type;
};
prototype.setType = function(type) {
this.type = type;
};
prototype.toString = function() {
return this.getSource().toString() + " >>" + this.getType() + "<< " + this.getTarget().toString();
};
}, {type: {name: "Enum", arguments: ["RelationType.RELATION_TYPE"]}, source: "NodePacket", target: "NodePacket"}, {});