3 /* Copyright (c) 2005 Arnaud Legrand. All rights reserved. */
5 /* This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #ifndef _SURF_WORKSTATION_KCCFLN05_PRIVATE_H
9 #define _SURF_WORKSTATION_KCCFLN05_PRIVATE_H
11 #include "surf_private.h"
13 /**************************************/
14 /********* workstation object *********/
15 /**************************************/
16 typedef struct workstation_KCCFLN05 {
17 surf_resource_t resource; /* Any such object, added in a trace
18 should start by this field!!! */
22 double interference_send;
23 double interference_recv;
24 double interference_send_recv;
25 tmgr_trace_event_t power_event;
26 e_surf_cpu_state_t state_current;
27 tmgr_trace_event_t state_event;
28 lmm_constraint_t constraint;
29 int id; /* cpu and network card are a single object... */
30 xbt_dynar_t incomming_communications;
31 xbt_dynar_t outgoing_communications;
33 } s_workstation_KCCFLN05_t, *workstation_KCCFLN05_t;
35 /**************************************/
36 /*********** network object ***********/
37 /**************************************/
39 typedef struct network_link_KCCFLN05 {
40 surf_resource_t resource; /* Any such object, added in a trace
41 should start by this field!!! */
44 tmgr_trace_event_t bw_event;
45 e_surf_network_link_state_t state_current;
46 tmgr_trace_event_t state_event;
47 lmm_constraint_t constraint;
48 } s_network_link_KCCFLN05_t, *network_link_KCCFLN05_t;
51 typedef struct s_route_KCCFLN05 {
54 double impact_on_src_with_other_recv;
55 double impact_on_dst_with_other_send;
56 network_link_KCCFLN05_t *links;
58 } s_route_KCCFLN05_t, *route_KCCFLN05_t;
60 /**************************************/
61 /*************** actions **************/
62 /**************************************/
64 typedef struct surf_action_cpu_KCCFLN05 {
65 s_surf_action_t generic_action;
66 lmm_variable_t variable;
67 } s_surf_action_cpu_KCCFLN05_t, *surf_action_cpu_KCCFLN05_t;
69 typedef struct surf_action_network_KCCFLN05 {
70 s_surf_action_t generic_action;
71 lmm_variable_t variable;
72 workstation_KCCFLN05_t src;
73 workstation_KCCFLN05_t dst;
74 } s_surf_action_network_KCCFLN05_t, *surf_action_network_KCCFLN05_t;
77 #endif /* _SURF_WORKSTATION_KCCFLN05_PRIVATE_H */