C# Class NSoft.NFramework.TimePeriods.TimePeriodBase

Inheritance: ITimePeriod
显示文件 Open project: debop/NFramework

Public Methods

Method Description
CompareTo ( ITimePeriod other ) : int
CompareTo ( object obj ) : int
Copy ( ) : ITimePeriod

현 TimePeriod 의 속성을 복사하여, 새로운 TimePeriod를 생성하여 반환합니다.

Copy ( System.TimeSpan offset ) : ITimePeriod

현 ITimePeriod 에서 offset 만큼 Shift 한 ITimeRange정보를 반환합니다.

Equals ( ITimePeriod other ) : bool

현재 개체가 동일한 형식의 다른 개체와 같은지 여부를 나타냅니다. (StartTime, EndTime, IsReadOnly가 같아야 True를 반환합니다)

Equals ( object obj ) : bool

현재 개체가 동일한 형식의 다른 개체와 같은지 여부를 나타냅니다. (StartTime, EndTime, IsReadOnly가 같아야 True를 반환합니다)

GetDescription ( ITimeFormatter formatter ) : string

TimePeriod의 설명을 표현합니다.

GetHashCode ( ) : int
GetIntersection ( ITimePeriod other ) : TimePeriodBase

두 기간의 겹치는 기간을 반환합니다.

GetRelation ( ITimePeriod other ) : PeriodRelation

다른 TimePeriod와의 관계를 나타냅니다.

GetUnion ( ITimePeriod other ) : TimePeriodBase

두 기간의 합집합 기간을 반환합니다.

HasInside ( System.DateTime moment ) : bool

지정된 시각이 기간에 속하는지 검사합니다.

HasInside ( ITimePeriod other ) : bool

지정한 기간이 현 기간 내에 속하는지 검사합니다.

IntersectsWith ( ITimePeriod other ) : bool

지정한 기간이 현 기간과 겹치는 부분이 있는지 검사합니다.

IsSamePeriod ( ITimePeriod other ) : bool

두 기간이 같은 기간을 나타내는지 검사합니다

Move ( System.TimeSpan offset ) : void

기간을 오프셋만큼 이동

OverlapsWith ( ITimePeriod other ) : bool

지정한 기간이 현 기간과 겹치는 부분이 있는지 검사합니다.

Reset ( ) : void

기간을 미정으로 초기화합니다.

Setup ( System.DateTime newStart, System.DateTime newEnd ) : void

기간을 설정합니다.

ToString ( ) : string

Protected Methods

Method Description
AssertMutable ( ) : void

변경가능한 (읽기전용이 아닌) 객체인지 확인합니다. 읽기 전용일 경우 예외를 발생시킵니다.

Format ( ITimeFormatter formatter ) : string

formatter를 이용하여 기간 내용을 문자열로 표현합니다.

TimePeriodBase ( ) : System

생성자

TimePeriodBase ( System.DateTime moment ) : System

생성자

TimePeriodBase ( System.DateTime start, System.DateTime end ) : System

생성자

TimePeriodBase ( System.DateTime start, System.DateTime end, bool isReadOnly ) : System

생성자

TimePeriodBase ( System.DateTime start, System.TimeSpan duration ) : System

생성자

TimePeriodBase ( System.DateTime start, System.TimeSpan duration, bool isReadOnly ) : System

생성자

TimePeriodBase ( System.DateTime moment, bool isReadOnly ) : System

생성자

TimePeriodBase ( ITimePeriod source ) : System

Copy Constructor

TimePeriodBase ( ITimePeriod source, bool isReadOnly ) : System

Copy Constructor

TimePeriodBase ( bool isReadOnly ) : System

생성자

Private Methods

Method Description
ITimePeriod ( ITimePeriod other ) : ITimePeriod
ITimePeriod ( System.TimeSpan offset ) : ITimePeriod

현재 기간에서 오프셋만큼 Shift 한 ITimeRange정보를 반환합니다.

Method Details

AssertMutable() protected method

변경가능한 (읽기전용이 아닌) 객체인지 확인합니다. 읽기 전용일 경우 예외를 발생시킵니다.
protected AssertMutable ( ) : void
return void

CompareTo() public method

public CompareTo ( ITimePeriod other ) : int
other ITimePeriod
return int

CompareTo() public method

public CompareTo ( object obj ) : int
obj object
return int

Copy() public method

현 TimePeriod 의 속성을 복사하여, 새로운 TimePeriod를 생성하여 반환합니다.
public Copy ( ) : ITimePeriod
return ITimePeriod

Copy() public method

현 ITimePeriod 에서 offset 만큼 Shift 한 ITimeRange정보를 반환합니다.
public Copy ( System.TimeSpan offset ) : ITimePeriod
offset System.TimeSpan
return ITimePeriod

Equals() public method

현재 개체가 동일한 형식의 다른 개체와 같은지 여부를 나타냅니다. (StartTime, EndTime, IsReadOnly가 같아야 True를 반환합니다)
public Equals ( ITimePeriod other ) : bool
other ITimePeriod 이 개체와 비교할 개체입니다.
return bool

Equals() public method

현재 개체가 동일한 형식의 다른 개체와 같은지 여부를 나타냅니다. (StartTime, EndTime, IsReadOnly가 같아야 True를 반환합니다)
public Equals ( object obj ) : bool
obj object
return bool

Format() protected method

formatter를 이용하여 기간 내용을 문자열로 표현합니다.
protected Format ( ITimeFormatter formatter ) : string
formatter ITimeFormatter
return string

GetDescription() public method

TimePeriod의 설명을 표현합니다.
public GetDescription ( ITimeFormatter formatter ) : string
formatter ITimeFormatter
return string

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetIntersection() public method

두 기간의 겹치는 기간을 반환합니다.
public GetIntersection ( ITimePeriod other ) : TimePeriodBase
other ITimePeriod
return TimePeriodBase

GetRelation() public method

다른 TimePeriod와의 관계를 나타냅니다.
public GetRelation ( ITimePeriod other ) : PeriodRelation
other ITimePeriod
return PeriodRelation

GetUnion() public method

두 기간의 합집합 기간을 반환합니다.
public GetUnion ( ITimePeriod other ) : TimePeriodBase
other ITimePeriod
return TimePeriodBase

HasInside() public method

지정된 시각이 기간에 속하는지 검사합니다.
public HasInside ( System.DateTime moment ) : bool
moment System.DateTime
return bool

HasInside() public method

지정한 기간이 현 기간 내에 속하는지 검사합니다.
public HasInside ( ITimePeriod other ) : bool
other ITimePeriod
return bool

IntersectsWith() public method

지정한 기간이 현 기간과 겹치는 부분이 있는지 검사합니다.
public IntersectsWith ( ITimePeriod other ) : bool
other ITimePeriod
return bool

IsSamePeriod() public method

두 기간이 같은 기간을 나타내는지 검사합니다
public IsSamePeriod ( ITimePeriod other ) : bool
other ITimePeriod
return bool

Move() public method

기간을 오프셋만큼 이동
public Move ( System.TimeSpan offset ) : void
offset System.TimeSpan
return void

OverlapsWith() public method

지정한 기간이 현 기간과 겹치는 부분이 있는지 검사합니다.
public OverlapsWith ( ITimePeriod other ) : bool
other ITimePeriod
return bool

Reset() public method

기간을 미정으로 초기화합니다.
public Reset ( ) : void
return void

Setup() public method

기간을 설정합니다.
public Setup ( System.DateTime newStart, System.DateTime newEnd ) : void
newStart System.DateTime 설정할 시작 시각
newEnd System.DateTime 설정할 완료 시각
return void

TimePeriodBase() protected method

생성자
protected TimePeriodBase ( ) : System
return System

TimePeriodBase() protected method

생성자
protected TimePeriodBase ( System.DateTime moment ) : System
moment System.DateTime 기준 일자 (시작일자와 완료일자에 해당)
return System

TimePeriodBase() protected method

생성자
protected TimePeriodBase ( System.DateTime start, System.DateTime end ) : System
start System.DateTime 시작 일자
end System.DateTime 완료 일자
return System

TimePeriodBase() protected method

생성자
protected TimePeriodBase ( System.DateTime start, System.DateTime end, bool isReadOnly ) : System
start System.DateTime 시작 일자
end System.DateTime 완료 일자
isReadOnly bool 읽기 전용 여부
return System

TimePeriodBase() protected method

생성자
protected TimePeriodBase ( System.DateTime start, System.TimeSpan duration ) : System
start System.DateTime 시작일자
duration System.TimeSpan 시간 간격
return System

TimePeriodBase() protected method

생성자
protected TimePeriodBase ( System.DateTime start, System.TimeSpan duration, bool isReadOnly ) : System
start System.DateTime 시작일자
duration System.TimeSpan 시간 간격
isReadOnly bool 읽기 전용 여부
return System

TimePeriodBase() protected method

생성자
protected TimePeriodBase ( System.DateTime moment, bool isReadOnly ) : System
moment System.DateTime 기준 일자 (시작일자와 완료일자에 해당)
isReadOnly bool 일기 전용 여부
return System

TimePeriodBase() protected method

Copy Constructor
protected TimePeriodBase ( ITimePeriod source ) : System
source ITimePeriod 복사할 원본 ITimePeriod
return System

TimePeriodBase() protected method

Copy Constructor
protected TimePeriodBase ( ITimePeriod source, bool isReadOnly ) : System
source ITimePeriod 복사할 원본 ITimePeriod
isReadOnly bool 읽기 전용 여부
return System

TimePeriodBase() protected method

생성자
protected TimePeriodBase ( bool isReadOnly ) : System
isReadOnly bool 일기 전용 여부
return System

ToString() public method

public ToString ( ) : string
return string