Struct CycleDate
The “Cycle Date” field identifies the calendar period in which the record was added to the file or last revised
Implements
Inherited Members
Namespace: FpAssistantCore.Arinc424.Records
Assembly: FpAssistantCoreScl.dll
Syntax
public struct CycleDate : IEquatable<CycleDate>
Constructors
View SourceCycleDate(int, int)
Initialise with Year parameter and Update Cycle parameter
Declaration
public CycleDate(int year, int updateCycle)
Parameters
| Type | Name | Description |
|---|---|---|
| int | year | Year of cycle date as two digits |
| int | updateCycle | Numeric identity of the 28-day data update cycle during which the change occurred |
CycleDate(string)
Initialise with Year and Update Cycle, single string parameter
Declaration
public CycleDate(string yearUpdateCycle)
Parameters
| Type | Name | Description |
|---|---|---|
| string | yearUpdateCycle | Year and Updae cycle passed as 4 digits (YYUC) |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | If string parameter is null |
| ArgumentException | If string parameter is not equal to 4 or string contains any non digit characters |
Properties
View SourceIdentityUpdateCycle
Identity of the 28-day data update cycle during which the change occurred
Declaration
public int IdentityUpdateCycle { get; set; }
Property Value
| Type | Description |
|---|---|
| int | Update cycle |
Remarks
Each calendar year contains 13 such cycles, however, on rare occasions 14 cycles will be encountered
Year
Last two digits of the year in which the addition or revision was made
Declaration
public int Year { get; set; }
Property Value
| Type | Description |
|---|---|
| int | Year in the format of two digits |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | Invalid argument passed |
Methods
View SourceEquals(CycleDate)
Declaration
public bool Equals(CycleDate other)
Parameters
| Type | Name | Description |
|---|---|---|
| CycleDate | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Overrides
View SourceToString()
Return a string in Year and Update Cycle in US culture
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | string: of the cycle date |
Overrides
Operators
View Sourceoperator ==(CycleDate, CycleDate)
Declaration
public static bool operator ==(CycleDate left, CycleDate right)
Parameters
| Type | Name | Description |
|---|---|---|
| CycleDate | left | |
| CycleDate | right |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(CycleDate, CycleDate)
Declaration
public static bool operator !=(CycleDate left, CycleDate right)
Parameters
| Type | Name | Description |
|---|---|---|
| CycleDate | left | |
| CycleDate | right |
Returns
| Type | Description |
|---|---|
| bool |