Hardware Description in !CHAOS

A JSON representation of a CU initial setup with:

General Information

"cs|cm|cu_name" : "WORKER_CU",
"cs|cm|cu_desc" : "This is a CU description",
"cs|cm|cu|thr|sch_del" : 5000000,
"cs|cm|cu|managed_dev_id" : [ "SIMULATED_DEVICE_ID" ]

Dataset Description

Insieme di attributi dell'HW che viene controllato dalla CU. Ogni attributo viene descritto dalle sue proprietĂ :

Nel Dataset può essere specificata anche Lista di classi in modo da ereditare automaticamente tutti gli attributi della classe definita nel metadata server.Tali attributi andranno a sommarsi a quelli specificati nel modo sopra descritto. Oltre a questi definiti dalle CU, CHAOS associa ad ogni dataset due ulteriori parametri:

"cs|cm|ds_desc" : [ 
{	"cs|cm|ds_attr_dom" : "SIMULATED_DEVICE_ID", 
	"cs|cm|ds_attr_name" : "byteValue", 
	"cs|cm|ds_attr_desc" : "describe the element 3 of the dataset", 
	"cs|cm|ds_attr_dir" : 1, 
	"cs|cm|ds_attr_type" : 4 
}, 
{	"cs|cm|ds_attr_dom" : "SIMULATED_DEVICE_ID", 
	"cs|cm|ds_attr_name" : "intValue_1", 
	"cs|cm|ds_attr_desc" : "describe the element 1 of the dataset", 
	"cs|cm|ds_attr_dir" : 1, 
	"cs|cm|ds_attr_type" : 0 
}, 
{ 	"cs|cm|ds_attr_dom" : "SIMULATED_DEVICE_ID", 
	"cs|cm|ds_attr_name" : "intValue_2", 
	"cs|cm|ds_attr_desc" : "describe the element 2 of the dataset", 
	"cs|cm|ds_attr_dir" : 2, 
	"cs|cm|ds_attr_type" : 0 
} ]

Actions Description

"cs|cmdm|act_desc" : [ 
{ 	"cs|cmdm|act_domain" : "WORKER_CU", 
	"cs|cmdm|act_name" : "actionTestOne", 
	"cs|cmdm|act_desc" : "comandTestOne this action will do some beautifull things!" 
}, 
{ 	"cs|cmdm|act_domain" : "WORKER_CU", 
	"cs|cmdm|act_name" : "actionTestTwo", 
	"cs|cmdm|act_desc" : "comandTestTwo, this action will do some beautifull things!", 
	"cs|cmdm|act_desc_param" : [ 
	{ 	"cs|cmdm|act_desc_par_name" : "actionTestTwo_paramName", 
		"cs|cmdm|act_desc_par_info" : "integer 32bit action param description for testing purpose", 
		"cs|cmdm|act_desc_par_type" : 0 
	} ] 
}, 
{ 	"cs|cmdm|act_domain" : "WORKER_CU", 
	"cs|cmdm|act_name" : "setDatasetElement", 
	"cs|cmdm|act_desc" : "method for set the input element for the dataset", 
	"cs|cmdm|act_desc_param" : [ 
	{ 	"cs|cmdm|act_desc_par_name" : "intValue_2", 
		"cs|cmdm|act_desc_par_info" : "describe the element 2 of the dataset", 
		"cs|cmdm|act_desc_par_type" : 0 
	} ] 
} ]