Source code: HeaderF/SATFlow.java
1 /*
2 * SATFlow.java
3 *
4 * Created on 15 January 2003, 22:31
5 */
6
7 package HeaderF;
8 import Misc.*;
9
10 /**
11 *
12 * @author yc
13 */
14 public class SATFlow {
15
16 private int flow_id;
17
18 private int flow_rate;
19
20 private String multicast_ip_address;
21
22 private int multicast_port_number;
23
24 /** Creates a new instance of SATFlow */
25 public SATFlow(int flow_id, int flow_rate,
26 String multicast_ip_address,
27 int multicast_port_number)
28 {
29 this.flow_id = flow_id;
30 this.flow_rate = flow_rate;
31 this.multicast_ip_address = multicast_ip_address;
32 this.multicast_port_number = multicast_port_number;
33 }
34
35 public int getFlowID() {
36 return flow_id;
37 }
38
39 public int getFlowRate() {
40 return flow_rate;
41 }
42
43 public int getMulticastPortNo() {
44 return multicast_port_number;
45 }
46
47 public String getMulticastIPAddr() {
48 return multicast_ip_address;
49 }
50
51 public String toString() {
52 StringBuffer str = new StringBuffer();
53 str.append("\tFlow id: " + flow_id + "\n");
54 str.append("\tFlow rate: " + flow_rate + "\n");
55 str.append("\tMulticast IP Address: " + multicast_ip_address + "\n");
56 str.append("\tMulticast Port Number: " + multicast_port_number + "\n");
57 return str.toString();
58
59 }
60
61 }