127 lines
2.3 KiB
Java
127 lines
2.3 KiB
Java
package cucky.jGuard.lib.object;
|
|
|
|
import java.io.Serializable;
|
|
|
|
public class ObjectConnection implements Serializable{
|
|
|
|
public static final int TYPE_NA = 0;
|
|
public static final int TYPE_GE = 1;
|
|
public static final int TYPE_FE = 2;
|
|
public static final int TYPE_E = 3;
|
|
public static final int TYPE_VLAN = 4;
|
|
public static final int TYPE_WIRELLES = 5;
|
|
public static final int TYPE_10G_FIBER = 6;
|
|
public static final int TYPE_1G_FIBER = 7;
|
|
public static final int TYPE_100M_FIBER = 8;
|
|
|
|
private int id;
|
|
private int from;
|
|
private int to;
|
|
private int type;
|
|
private boolean read;
|
|
private int sourceObjectId;
|
|
private int map;
|
|
private int iface;
|
|
private long tx;
|
|
private long rx;
|
|
|
|
public ObjectConnection() {
|
|
}
|
|
|
|
public ObjectConnection(int id, int from, int to, int type, boolean read, int sourceObjectId, int iface) {
|
|
this.id = id;
|
|
this.from = from;
|
|
this.to = to;
|
|
this.type = type;
|
|
this.read = read;
|
|
this.sourceObjectId = sourceObjectId;
|
|
this.iface = iface;
|
|
}
|
|
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(int id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public int getFrom() {
|
|
return from;
|
|
}
|
|
|
|
public void setFrom(int from) {
|
|
this.from = from;
|
|
}
|
|
|
|
public int getTo() {
|
|
return to;
|
|
}
|
|
|
|
public void setTo(int to) {
|
|
this.to = to;
|
|
}
|
|
|
|
public int getType() {
|
|
return type;
|
|
}
|
|
|
|
public void setType(int type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public boolean isRead() {
|
|
return read;
|
|
}
|
|
|
|
public void setRead(boolean read) {
|
|
this.read = read;
|
|
}
|
|
|
|
public int getSourceObjectId() {
|
|
return sourceObjectId;
|
|
}
|
|
|
|
public void setSourceObjectId(int sourceObjectId) {
|
|
this.sourceObjectId = sourceObjectId;
|
|
}
|
|
|
|
public int getMap() {
|
|
return map;
|
|
}
|
|
|
|
public void setMap(int map) {
|
|
this.map = map;
|
|
}
|
|
|
|
public int getIface() {
|
|
return iface;
|
|
}
|
|
|
|
public void setIface(int iface) {
|
|
this.iface = iface;
|
|
}
|
|
|
|
public long getTx() {
|
|
return tx;
|
|
}
|
|
|
|
public void setTx(long tx) {
|
|
this.tx = tx;
|
|
}
|
|
|
|
public long getRx() {
|
|
return rx;
|
|
}
|
|
|
|
public void setRx(long rx) {
|
|
this.rx = rx;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|