C# Class NSoft.NFramework.TimePeriods.TimePeriodChain

Inheritance: TimePeriodContainer, ITimePeriodChain
Show file Open project: debop/NFramework

Public Methods

Method Description
Add ( ITimePeriod item ) : void

새로운 item을 Chain의 제일 끝에 붙여 넣습니다. item의 기간이 변경됩니다.

AddAll ( IEnumerable periods ) : void

기간이 존재하는 (HasPeriod가 true인) ITimePeriod들을 추가합니다.

Insert ( int index, ITimePeriod item ) : void

ITimePeriod의 Chain의 index번째에 item을 삽입합니다. 선행 Period와 후행 Period의 기간 값이 조정됩니다.

Remove ( ITimePeriod item ) : bool

TimePeriodChain에서 요소 item을 제거합니다. (제거된 후의 후속 Period들의 시간이 조정됩니다)

RemoveAt ( int index ) : void

TimePeriodChain의 index 번째 요소를 제거합니다.

TimePeriodChain ( ) : System

기본 생성자

TimePeriodChain ( IEnumerable periods ) : System

생성자

this ( int index ) : ITimePeriod

인덱서

Protected Methods

Method Description
AssertSpaceAfter ( System.DateTime moment, System.TimeSpan duration ) : void

moment 이후에 duration 만큼의 시간적 공간이 있는지 여부 (새로운 기간을 추가하기 위해서는 공간이 필요합니다)

AssertSpaceBefore ( System.DateTime moment, System.TimeSpan duration ) : void

moment 이전에 duration 만큼의 시간적 공간이 있는지 여부 (새로운 기간을 추가하기 위해서는 공간이 필요합니다)

Method Details

Add() public method

새로운 item을 Chain의 제일 끝에 붙여 넣습니다. item의 기간이 변경됩니다.
public Add ( ITimePeriod item ) : void
item ITimePeriod
return void

AddAll() public method

기간이 존재하는 (HasPeriod가 true인) ITimePeriod들을 추가합니다.
public AddAll ( IEnumerable periods ) : void
periods IEnumerable
return void

AssertSpaceAfter() protected method

moment 이후에 duration 만큼의 시간적 공간이 있는지 여부 (새로운 기간을 추가하기 위해서는 공간이 필요합니다)
protected AssertSpaceAfter ( System.DateTime moment, System.TimeSpan duration ) : void
moment System.DateTime 검사할 시각
duration System.TimeSpan 필요한 시간 간격
return void

AssertSpaceBefore() protected method

moment 이전에 duration 만큼의 시간적 공간이 있는지 여부 (새로운 기간을 추가하기 위해서는 공간이 필요합니다)
protected AssertSpaceBefore ( System.DateTime moment, System.TimeSpan duration ) : void
moment System.DateTime
duration System.TimeSpan
return void

Insert() public method

ITimePeriod의 Chain의 index번째에 item을 삽입합니다. 선행 Period와 후행 Period의 기간 값이 조정됩니다.
public Insert ( int index, ITimePeriod item ) : void
index int 추가할 위치
item ITimePeriod 추가할 기간
return void

Remove() public method

TimePeriodChain에서 요소 item을 제거합니다. (제거된 후의 후속 Period들의 시간이 조정됩니다)
public Remove ( ITimePeriod item ) : bool
item ITimePeriod
return bool

RemoveAt() public method

TimePeriodChain의 index 번째 요소를 제거합니다.
public RemoveAt ( int index ) : void
index int
return void

TimePeriodChain() public method

기본 생성자
public TimePeriodChain ( ) : System
return System

TimePeriodChain() public method

생성자
public TimePeriodChain ( IEnumerable periods ) : System
periods IEnumerable 요소들
return System

this() public method

인덱서
public this ( int index ) : ITimePeriod
index int
return ITimePeriod