//// This file was generated by the BinaryNotes compiler.// See http://bnotes.sourceforge.net // Any modifications to this file will be lost upon recompilation of the source ASN.1. // using GSF.ASN1;using GSF.ASN1.Attributes;using GSF.ASN1.Coders;using GSF.ASN1.Types; namespace GSF.MMS.Model{ [ASN1PreparedElement] [ASN1BoxedType(Name = "CS_Start_Request")] public class CS_Start_Request : IASN1PreparedElement { private static readonly IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(CS_Start_Request)); private CS_Start_RequestChoiceType val; [ASN1Element(Name = "CS-Start-Request", IsOptional = false, HasTag = true, Tag = 0, HasDefaultValue = false)] public CS_Start_RequestChoiceType Value { get { return val; } set { val = value; } } public void initWithDefaults() { } public IASN1PreparedElementData PreparedData { get { return preparedData; } } [ASN1PreparedElement] [ASN1Choice(Name = "CS-Start-Request")] public class CS_Start_RequestChoiceType : IASN1PreparedElement { private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(CS_Start_RequestChoiceType)); private ControllingSequenceType controlling_; private bool controlling_selected; private NullObject normal_; private bool normal_selected; [ASN1Null(Name = "normal")] [ASN1Element(Name = "normal", IsOptional = false, HasTag = false, HasDefaultValue = false)] public NullObject Normal { get { return normal_; } set { selectNormal(value); } } [ASN1Element(Name = "controlling", IsOptional = false, HasTag = false, HasDefaultValue = false)] public ControllingSequenceType Controlling { get { return controlling_; } set { selectControlling(value); } } public void initWithDefaults() { } public IASN1PreparedElementData PreparedData { get { return preparedData; } } public bool isNormalSelected() { return normal_selected; } public void selectNormal() { selectNormal(new NullObject()); } public void selectNormal(NullObject val) { normal_ = val; normal_selected = true; controlling_selected = false; } public bool isControllingSelected() { return controlling_selected; } public void selectControlling(ControllingSequenceType val) { controlling_ = val; controlling_selected = true; normal_selected = false; } [ASN1PreparedElement] [ASN1Sequence(Name = "controlling", IsSet = false)] public class ControllingSequenceType : IASN1PreparedElement { private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(ControllingSequenceType)); private StartCount startCount_; private string startLocation_; private bool startLocation_present; [ASN1String(Name = "", StringType = UniversalTags.VisibleString, IsUCS = false)] [ASN1Element(Name = "startLocation", IsOptional = true, HasTag = true, Tag = 0, HasDefaultValue = false)] public string StartLocation { get { return startLocation_; } set { startLocation_ = value; startLocation_present = true; } } [ASN1Element(Name = "startCount", IsOptional = false, HasTag = true, Tag = 1, HasDefaultValue = true)] public StartCount StartCount { get { return startCount_; } set { startCount_ = value; } } public void initWithDefaults() { StartCount param_StartCount = null; StartCount = param_StartCount; } public IASN1PreparedElementData PreparedData { get { return preparedData; } } public bool isStartLocationPresent() { return startLocation_present; } } } }}
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
using GSF.ASN1;
using GSF.ASN1.Attributes;
using GSF.ASN1.Coders;
using GSF.ASN1.Types;
namespace GSF.MMS.Model
{
[ASN1PreparedElement]
[ASN1BoxedType(Name = "CS_Start_Request")]
public class CS_Start_Request : IASN1PreparedElement
{
private static readonly IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(CS_Start_Request));
private CS_Start_RequestChoiceType val;
[ASN1Element(Name = "CS-Start-Request", IsOptional = false, HasTag = true, Tag = 0, HasDefaultValue = false)]
public CS_Start_RequestChoiceType Value
{
get
{
return val;
}
set
{
val = value;
}
}
public void initWithDefaults()
{
}
public IASN1PreparedElementData PreparedData
{
get
{
return preparedData;
}
}
[ASN1PreparedElement]
[ASN1Choice(Name = "CS-Start-Request")]
public class CS_Start_RequestChoiceType : IASN1PreparedElement
{
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(CS_Start_RequestChoiceType));
private ControllingSequenceType controlling_;
private bool controlling_selected;
private NullObject normal_;
private bool normal_selected;
[ASN1Null(Name = "normal")]
[ASN1Element(Name = "normal", IsOptional = false, HasTag = false, HasDefaultValue = false)]
public NullObject Normal
{
get
{
return normal_;
}
set
{
selectNormal(value);
}
}
[ASN1Element(Name = "controlling", IsOptional = false, HasTag = false, HasDefaultValue = false)]
public ControllingSequenceType Controlling
{
get
{
return controlling_;
}
set
{
selectControlling(value);
}
}
public void initWithDefaults()
{
}
public IASN1PreparedElementData PreparedData
{
get
{
return preparedData;
}
}
public bool isNormalSelected()
{
return normal_selected;
}
public void selectNormal()
{
selectNormal(new NullObject());
}
public void selectNormal(NullObject val)
{
normal_ = val;
normal_selected = true;
controlling_selected = false;
}
public bool isControllingSelected()
{
return controlling_selected;
}
public void selectControlling(ControllingSequenceType val)
{
controlling_ = val;
controlling_selected = true;
normal_selected = false;
}
[ASN1PreparedElement]
[ASN1Sequence(Name = "controlling", IsSet = false)]
public class ControllingSequenceType : IASN1PreparedElement
{
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(ControllingSequenceType));
private StartCount startCount_;
private string startLocation_;
private bool startLocation_present;
[ASN1String(Name = "",
StringType = UniversalTags.VisibleString, IsUCS = false)]
[ASN1Element(Name = "startLocation", IsOptional = true, HasTag = true, Tag = 0, HasDefaultValue = false)]
public string StartLocation
{
get
{
return startLocation_;
}
set
{
startLocation_ = value;
startLocation_present = true;
}
}
[ASN1Element(Name = "startCount", IsOptional = false, HasTag = true, Tag = 1, HasDefaultValue = true)]
public StartCount StartCount
{
get
{
return startCount_;
}
set
{
startCount_ = value;
}
}
public void initWithDefaults()
{
StartCount param_StartCount =
null;
StartCount = param_StartCount;
}
public IASN1PreparedElementData PreparedData
{
get
{
return preparedData;
}
}
public bool isStartLocationPresent()
{
return startLocation_present;
}
}
}
}
}