| 282 | == Service Class == |
| 283 | |
| 284 | A service class encapsulates the ideas of a [FeddAbout#ExperimentServices DETER federation service]. Such services can be available from or used by a variety of topology elements. The Service class has the following members: |
| 285 | |
| 286 | {{{name}}}:: |
| 287 | The name of the service. A few [FeddAbout#ExperimentServices are defined]. |
| 288 | {{{importer}}}:: |
| 289 | A list of entity names that are using or requesting the service. This list may be empty. |
| 290 | {{{param}}}:: |
| 291 | A list of [TopdlLibrary#ServiceParamClass ServiceParam objects] that represent typed parameters to the service. The list may be empty. |
| 292 | {{{description}}}:: |
| 293 | A string describing the service. This may be None. |
| 294 | {{{status}}}:: |
| 295 | A string describing the current status of the service (if any). It may also be None, indicating no status is reported. Valid values are |
| 296 | * "empty" - no allocation of resources has been attempted - generally not applied to Services |
| 297 | * "active" - Service is functioning as part of an experiment |
| 298 | * "inactive" - Service is allocated, but not functioning |
| 299 | * "starting" - Service is transitioning from "inactive" to "active" |
| 300 | * "terminating" - Service is transitioning from "active" to "inactive" |
| 301 | * "failed" - an allocation of resources has failed - generally not applied to Services |
| 302 | |
| 303 | The constructor will take the member names as named parameters. |
| 304 | |
| 305 | == !ServiceParam Class == |
| 306 | |
| 307 | A description of the type of parameter to a [TopdlLibrary#ServiceClass Service] will accept. It has the following members: |
| 308 | |
| 309 | {{{name}}}:: |
| 310 | Name of the parameter, a string. |
| 311 | {{{type}}}:: |
| 312 | A string containing the type of the parameter. Valid types are: |
| 313 | * string |
| 314 | * int |
| 315 | * float |
| 316 | |
| 317 | The constructor will take the member names as named parameters. |