Showing the changes to Source/Libraries/GSF.MMS/Model/CS_GetProgramInvocationAttributes_Response.cs (1 of 385 files). Show all
Unified · Split
| @@ -0,0 +1,492 @@ | ||
| 1 | +// | |
| 2 | +// This file was generated by the BinaryNotes compiler. | |
| 3 | +// See http://bnotes.sourceforge.net | |
| 4 | +// Any modifications to this file will be lost upon recompilation of the source ASN.1. | |
| 5 | +// | |
| 6 | + | |
| 7 | +using System.Collections.Generic; | |
| 8 | +using GSF.ASN1; | |
| 9 | +using GSF.ASN1.Attributes; | |
| 10 | +using GSF.ASN1.Coders; | |
| 11 | +using GSF.ASN1.Types; | |
| 12 | + | |
| 13 | +namespace GSF.MMS.Model | |
| 14 | +{ | |
| 15 | + [ASN1PreparedElement] | |
| 16 | + [ASN1Sequence(Name = "CS_GetProgramInvocationAttributes_Response", IsSet = false)] | |
| 17 | + public class CS_GetProgramInvocationAttributes_Response : IASN1PreparedElement | |
| 18 | + { | |
| 19 | + private static readonly IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(CS_GetProgramInvocationAttributes_Response)); | |
| 20 | + private ControlChoiceType control_; | |
| 21 | + private long errorCode_; | |
| 22 | + | |
| 23 | + [ASN1Integer(Name = "")] | |
| 24 | + [ASN1Element(Name = "errorCode", IsOptional = false, HasTag = true, Tag = 0, HasDefaultValue = false)] | |
| 25 | + public long ErrorCode | |
| 26 | + { | |
| 27 | + get | |
| 28 | + { | |
| 29 | + return errorCode_; | |
| 30 | + } | |
| 31 | + set | |
| 32 | + { | |
| 33 | + errorCode_ = value; | |
| 34 | + } | |
| 35 | + } | |
| 36 | + | |
| 37 | + | |
| 38 | + [ASN1Element(Name = "control", IsOptional = false, HasTag = true, Tag = 1, HasDefaultValue = false)] | |
| 39 | + public ControlChoiceType Control | |
| 40 | + { | |
| 41 | + get | |
| 42 | + { | |
| 43 | + return control_; | |
| 44 | + } | |
| 45 | + set | |
| 46 | + { | |
| 47 | + control_ = value; | |
| 48 | + } | |
| 49 | + } | |
| 50 | + | |
| 51 | + | |
| 52 | + public void initWithDefaults() | |
| 53 | + { | |
| 54 | + } | |
| 55 | + | |
| 56 | + | |
| 57 | + public IASN1PreparedElementData PreparedData | |
| 58 | + { | |
| 59 | + get | |
| 60 | + { | |
| 61 | + return preparedData; | |
| 62 | + } | |
| 63 | + } | |
| 64 | + | |
| 65 | + [ASN1PreparedElement] | |
| 66 | + [ASN1Choice(Name = "control")] | |
| 67 | + public class ControlChoiceType : IASN1PreparedElement | |
| 68 | + { | |
| 69 | + private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(ControlChoiceType)); | |
| 70 | + private ControlledChoiceType controlled_; | |
| 71 | + private bool controlled_selected; | |
| 72 | + private ControllingSequenceType controlling_; | |
| 73 | + private bool controlling_selected; | |
| 74 | + | |
| 75 | + | |
| 76 | + private NullObject normal_; | |
| 77 | + private bool normal_selected; | |
| 78 | + | |
| 79 | + [ASN1Element(Name = "controlling", IsOptional = false, HasTag = true, Tag = 0, HasDefaultValue = false)] | |
| 80 | + public ControllingSequenceType Controlling | |
| 81 | + { | |
| 82 | + get | |
| 83 | + { | |
| 84 | + return controlling_; | |
| 85 | + } | |
| 86 | + set | |
| 87 | + { | |
| 88 | + selectControlling(value); | |
| 89 | + } | |
| 90 | + } | |
| 91 | + | |
| 92 | + [ASN1Element(Name = "controlled", IsOptional = false, HasTag = true, Tag = 1, HasDefaultValue = false)] | |
| 93 | + public ControlledChoiceType Controlled | |
| 94 | + { | |
| 95 | + get | |
| 96 | + { | |
| 97 | + return controlled_; | |
| 98 | + } | |
| 99 | + set | |
| 100 | + { | |
| 101 | + selectControlled(value); | |
| 102 | + } | |
| 103 | + } | |
| 104 | + | |
| 105 | + | |
| 106 | + [ASN1Null(Name = "normal")] | |
| 107 | + [ASN1Element(Name = "normal", IsOptional = false, HasTag = true, Tag = 2, HasDefaultValue = false)] | |
| 108 | + public NullObject Normal | |
| 109 | + { | |
| 110 | + get | |
| 111 | + { | |
| 112 | + return normal_; | |
| 113 | + } | |
| 114 | + set | |
| 115 | + { | |
| 116 | + selectNormal(value); | |
| 117 | + } | |
| 118 | + } | |
| 119 | + | |
| 120 | + public void initWithDefaults() | |
| 121 | + { | |
| 122 | + } | |
| 123 | + | |
| 124 | + public IASN1PreparedElementData PreparedData | |
| 125 | + { | |
| 126 | + get | |
| 127 | + { | |
| 128 | + return preparedData; | |
| 129 | + } | |
| 130 | + } | |
| 131 | + | |
| 132 | + | |
| 133 | + public bool isControllingSelected() | |
| 134 | + { | |
| 135 | + return controlling_selected; | |
| 136 | + } | |
| 137 | + | |
| 138 | + | |
| 139 | + public void selectControlling(ControllingSequenceType val) | |
| 140 | + { | |
| 141 | + controlling_ = val; | |
| 142 | + controlling_selected = true; | |
| 143 | + | |
| 144 | + | |
| 145 | + controlled_selected = false; | |
| 146 | + | |
| 147 | + normal_selected = false; | |
| 148 | + } | |
| 149 | + | |
| 150 | + | |
| 151 | + public bool isControlledSelected() | |
| 152 | + { | |
| 153 | + return controlled_selected; | |
| 154 | + } | |
| 155 | + | |
| 156 | + | |
| 157 | + public void selectControlled(ControlledChoiceType val) | |
| 158 | + { | |
| 159 | + controlled_ = val; | |
| 160 | + controlled_selected = true; | |
| 161 | + | |
| 162 | + | |
| 163 | + controlling_selected = false; | |
| 164 | + | |
| 165 | + normal_selected = false; | |
| 166 | + } | |
| 167 | + | |
| 168 | + | |
| 169 | + public bool isNormalSelected() | |
| 170 | + { | |
| 171 | + return normal_selected; | |
| 172 | + } | |
| 173 | + | |
| 174 | + | |
| 175 | + public void selectNormal() | |
| 176 | + { | |
| 177 | + selectNormal(new NullObject()); | |
| 178 | + } | |
| 179 | + | |
| 180 | + | |
| 181 | + public void selectNormal(NullObject val) | |
| 182 | + { | |
| 183 | + normal_ = val; | |
| 184 | + normal_selected = true; | |
| 185 | + | |
| 186 | + | |
| 187 | + controlling_selected = false; | |
| 188 | + | |
| 189 | + controlled_selected = false; | |
| 190 | + } | |
| 191 | + | |
| 192 | + [ASN1PreparedElement] | |
| 193 | + [ASN1Choice(Name = "controlled")] | |
| 194 | + public class ControlledChoiceType : IASN1PreparedElement | |
| 195 | + { | |
| 196 | + private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(ControlledChoiceType)); | |
| 197 | + private Identifier controllingPI_; | |
| 198 | + private bool controllingPI_selected; | |
| 199 | + | |
| 200 | + | |
| 201 | + private NullObject none_; | |
| 202 | + private bool none_selected; | |
| 203 | + | |
| 204 | + [ASN1Element(Name = "controllingPI", IsOptional = false, HasTag = true, Tag = 0, HasDefaultValue = false)] | |
| 205 | + public Identifier ControllingPI | |
| 206 | + { | |
| 207 | + get | |
| 208 | + { | |
| 209 | + return controllingPI_; | |
| 210 | + } | |
| 211 | + set | |
| 212 | + { | |
| 213 | + selectControllingPI(value); | |
| 214 | + } | |
| 215 | + } | |
| 216 | + | |
| 217 | + | |
| 218 | + [ASN1Null(Name = "none")] | |
| 219 | + [ASN1Element(Name = "none", IsOptional = false, HasTag = true, Tag = 1, HasDefaultValue = false)] | |
| 220 | + public NullObject None | |
| 221 | + { | |
| 222 | + get | |
| 223 | + { | |
| 224 | + return none_; | |
| 225 | + } | |
| 226 | + set | |
| 227 | + { | |
| 228 | + selectNone(value); | |
| 229 | + } | |
| 230 | + } | |
| 231 | + | |
| 232 | + public void initWithDefaults() | |
| 233 | + { | |
| 234 | + } | |
| 235 | + | |
| 236 | + public IASN1PreparedElementData PreparedData | |
| 237 | + { | |
| 238 | + get | |
| 239 | + { | |
| 240 | + return preparedData; | |
| 241 | + } | |
| 242 | + } | |
| 243 | + | |
| 244 | + | |
| 245 | + public bool isControllingPISelected() | |
| 246 | + { | |
| 247 | + return controllingPI_selected; | |
| 248 | + } | |
| 249 | + | |
| 250 | + | |
| 251 | + public void selectControllingPI(Identifier val) | |
| 252 | + { | |
| 253 | + controllingPI_ = val; | |
| 254 | + controllingPI_selected = true; | |
| 255 | + | |
| 256 | + | |
| 257 | + none_selected = false; | |
| 258 | + } | |
| 259 | + | |
| 260 | + | |
| 261 | + public bool isNoneSelected() | |
| 262 | + { | |
| 263 | + return none_selected; | |
| 264 | + } | |
| 265 | + | |
| 266 | + | |
| 267 | + public void selectNone() | |
| 268 | + { | |
| 269 | + selectNone(new NullObject()); | |
| 270 | + } | |
| 271 | + | |
| 272 | + | |
| 273 | + public void selectNone(NullObject val) | |
| 274 | + { | |
| 275 | + none_ = val; | |
| 276 | + none_selected = true; | |
| 277 | + | |
| 278 | + | |
| 279 | + controllingPI_selected = false; | |
| 280 | + } | |
| 281 | + } | |
| 282 | + | |
| 283 | + [ASN1PreparedElement] | |
| 284 | + [ASN1Sequence(Name = "controlling", IsSet = false)] | |
| 285 | + public class ControllingSequenceType : IASN1PreparedElement | |
| 286 | + { | |
| 287 | + private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(ControllingSequenceType)); | |
| 288 | + private ICollection<Identifier> controlledPI_; | |
| 289 | + | |
| 290 | + | |
| 291 | + private string programLocation_; | |
| 292 | + | |
| 293 | + private bool programLocation_present; | |
| 294 | + | |
| 295 | + | |
| 296 | + private RunningModeChoiceType runningMode_; | |
| 297 | + | |
| 298 | + [ASN1SequenceOf(Name = "controlledPI", IsSetOf = false)] | |
| 299 | + [ASN1Element(Name = "controlledPI", IsOptional = false, HasTag = true, Tag = 0, HasDefaultValue = false)] | |
| 300 | + public ICollection<Identifier> ControlledPI | |
| 301 | + { | |
| 302 | + get | |
| 303 | + { | |
| 304 | + return controlledPI_; | |
| 305 | + } | |
| 306 | + set | |
| 307 | + { | |
| 308 | + controlledPI_ = value; | |
| 309 | + } | |
| 310 | + } | |
| 311 | + | |
| 312 | + [ASN1String(Name = "", | |
| 313 | + StringType = UniversalTags.VisibleString, IsUCS = false)] | |
| 314 | + [ASN1Element(Name = "programLocation", IsOptional = true, HasTag = true, Tag = 1, HasDefaultValue = false)] | |
| 315 | + public string ProgramLocation | |
| 316 | + { | |
| 317 | + get | |
| 318 | + { | |
| 319 | + return programLocation_; | |
| 320 | + } | |
| 321 | + set | |
| 322 | + { | |
| 323 | + programLocation_ = value; | |
| 324 | + programLocation_present = true; | |
| 325 | + } | |
| 326 | + } | |
| 327 | + | |
| 328 | + | |
| 329 | + [ASN1Element(Name = "runningMode", IsOptional = false, HasTag = true, Tag = 2, HasDefaultValue = false)] | |
| 330 | + public RunningModeChoiceType RunningMode | |
| 331 | + { | |
| 332 | + get | |
| 333 | + { | |
| 334 | + return runningMode_; | |
| 335 | + } | |
| 336 | + set | |
| 337 | + { | |
| 338 | + runningMode_ = value; | |
| 339 | + } | |
| 340 | + } | |
| 341 | + | |
| 342 | + | |
| 343 | + public void initWithDefaults() | |
| 344 | + { | |
| 345 | + } | |
| 346 | + | |
| 347 | + public IASN1PreparedElementData PreparedData | |
| 348 | + { | |
| 349 | + get | |
| 350 | + { | |
| 351 | + return preparedData; | |
| 352 | + } | |
| 353 | + } | |
| 354 | + | |
| 355 | + public bool isProgramLocationPresent() | |
| 356 | + { | |
| 357 | + return programLocation_present; | |
| 358 | + } | |
| 359 | + | |
| 360 | + [ASN1PreparedElement] | |
| 361 | + [ASN1Choice(Name = "runningMode")] | |
| 362 | + public class RunningModeChoiceType : IASN1PreparedElement | |
| 363 | + { | |
| 364 | + private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(RunningModeChoiceType)); | |
| 365 | + private long cycleLimited_; | |
| 366 | + private bool cycleLimited_selected; | |
| 367 | + private NullObject freeRunning_; | |
| 368 | + private bool freeRunning_selected; | |
| 369 | + | |
| 370 | + | |
| 371 | + private long stepLimited_; | |
| 372 | + private bool stepLimited_selected; | |
| 373 | + | |
| 374 | + [ASN1Null(Name = "freeRunning")] | |
| 375 | + [ASN1Element(Name = "freeRunning", IsOptional = false, HasTag = true, Tag = 0, HasDefaultValue = false)] | |
| 376 | + public NullObject FreeRunning | |
| 377 | + { | |
| 378 | + get | |
| 379 | + { | |
| 380 | + return freeRunning_; | |
| 381 | + } | |
| 382 | + set | |
| 383 | + { | |
| 384 | + selectFreeRunning(value); | |
| 385 | + } | |
| 386 | + } | |
| 387 | + | |
| 388 | + [ASN1Integer(Name = "")] | |
| 389 | + [ASN1Element(Name = "cycleLimited", IsOptional = false, HasTag = true, Tag = 1, HasDefaultValue = false)] | |
| 390 | + public long CycleLimited | |
| 391 | + { | |
| 392 | + get | |
| 393 | + { | |
| 394 | + return cycleLimited_; | |
| 395 | + } | |
| 396 | + set | |
| 397 | + { | |
| 398 | + selectCycleLimited(value); | |
| 399 | + } | |
| 400 | + } | |
| 401 | + | |
| 402 | + | |
| 403 | + [ASN1Integer(Name = "")] | |
| 404 | + [ASN1Element(Name = "stepLimited", IsOptional = false, HasTag = true, Tag = 2, HasDefaultValue = false)] | |
| 405 | + public long StepLimited | |
| 406 | + { | |
| 407 | + get | |
| 408 | + { | |
| 409 | + return stepLimited_; | |
| 410 | + } | |
| 411 | + set | |
| 412 | + { | |
| 413 | + selectStepLimited(value); | |
| 414 | + } | |
| 415 | + } | |
| 416 | + | |
| 417 | + public void initWithDefaults() | |
| 418 | + { | |
| 419 | + } | |
| 420 | + | |
| 421 | + public IASN1PreparedElementData PreparedData | |
| 422 | + { | |
| 423 | + get | |
| 424 | + { | |
| 425 | + return preparedData; | |
| 426 | + } | |
| 427 | + } | |
| 428 | + | |
| 429 | + | |
| 430 | + public bool isFreeRunningSelected() | |
| 431 | + { | |
| 432 | + return freeRunning_selected; | |
| 433 | + } | |
| 434 | + | |
| 435 | + | |
| 436 | + public void selectFreeRunning() | |
| 437 | + { | |
| 438 | + selectFreeRunning(new NullObject()); | |
| 439 | + } | |
| 440 | + | |
| 441 | + | |
| 442 | + public void selectFreeRunning(NullObject val) | |
| 443 | + { | |
| 444 | + freeRunning_ = val; | |
| 445 | + freeRunning_selected = true; | |
| 446 | + | |
| 447 | + | |
| 448 | + cycleLimited_selected = false; | |
| 449 | + | |
| 450 | + stepLimited_selected = false; | |
| 451 | + } | |
| 452 | + | |
| 453 | + | |
| 454 | + public bool isCycleLimitedSelected() | |
| 455 | + { | |
| 456 | + return cycleLimited_selected; | |
| 457 | + } | |
| 458 | + | |
| 459 | + | |
| 460 | + public void selectCycleLimited(long val) | |
| 461 | + { | |
| 462 | + cycleLimited_ = val; | |
| 463 | + cycleLimited_selected = true; | |
| 464 | + | |
| 465 | + | |
| 466 | + freeRunning_selected = false; | |
| 467 | + | |
| 468 | + stepLimited_selected = false; | |
| 469 | + } | |
| 470 | + | |
| 471 | + | |
| 472 | + public bool isStepLimitedSelected() | |
| 473 | + { | |
| 474 | + return stepLimited_selected; | |
| 475 | + } | |
| 476 | + | |
| 477 | + | |
| 478 | + public void selectStepLimited(long val) | |
| 479 | + { | |
| 480 | + stepLimited_ = val; | |
| 481 | + stepLimited_selected = true; | |
| 482 | + | |
| 483 | + | |
| 484 | + freeRunning_selected = false; | |
| 485 | + | |
| 486 | + cycleLimited_selected = false; | |
| 487 | + } | |
| 488 | + } | |
| 489 | + } | |
| 490 | + } | |
| 491 | + } | |
| 492 | +} | |