Ejemplo n.º 1
0
        public Channel(int start_id, int end_id, channel_types ch_type, int wgh, int buf_size)
        {
            id_node_start = start_id;
            id_node_end = end_id;

            weight = wgh;

            size_buffer_max = buf_size;

            type = ch_type;

            if (type == channel_types.duplex)
                tacts_needed = weight / 2;
            else if (type == channel_types.satellite)
                tacts_needed = weight * 3;
            else
                tacts_needed = weight;

            BufLogicalConnection = new List<PackageLogicalConnection>();
        }
Ejemplo n.º 2
0
        public Channel(int start_id, int end_id, channel_types ch_type)
        {
            id_node_start = start_id;
            id_node_end = end_id;

            weight = weight_default_list[(new Random()).Next(weight_default_list.Length)];

            size_buffer_max = list_size_buf_default[(new Random()).Next(list_size_buf_default.Length)];

            type = ch_type;

            if (type == channel_types.duplex)
                tacts_needed = weight / 2;
            else if (type == channel_types.satellite)
                tacts_needed = weight * 3;
            else
                tacts_needed = weight;

            BufLogicalConnection = new List<PackageLogicalConnection>();
        }
Ejemplo n.º 3
0
 public void addReverseConnection(int end_node, channel_types ch_type)
 {
     reverseConnections.Add(new Channel(ID, end_node, ch_type));
 }
Ejemplo n.º 4
0
 public void addReverseConnection(int end_node, int weight, int buf_size, channel_types ch_type)
 {
     reverseConnections.Add(new Channel(ID, end_node, ch_type, weight, buf_size));
 }
Ejemplo n.º 5
0
 public void addDirectConnection(int end_node, channel_types ch_type)
 {
     directConnections.Add(new Channel(ID, end_node, ch_type));
 }