C# Class NSoft.NFramework.TimePeriods.TimeInterval

Inheritance: TimePeriodBase, ITimeInterval
显示文件 Open project: debop/NFramework

Public Properties

Property Type Description
Anytime TimeInterval

Public Methods

Method Description
Copy ( ) : ITimeInterval

현 인스턴스의 기간을 가진 인스턴스를 새로 생성하여 반환합니다.

Copy ( TimeSpan offset ) : ITimeInterval

현재 IInterval에서 오프셋만큼 이동한 ITimeInterval정보를 반환합니다.

Equals ( ITimeInterval other ) : bool
ExpandEndTo ( DateTime moment ) : void

완료 시각을 지정된 시각으로 변경합니다. 완료 시각 이전이 되면 안됩니다.

ExpandStartTo ( DateTime moment ) : void

시작 시각을 지정된 시각으로 변경합니다. 시작 시각 이후가 되면 안됩니다.

ExpandTo ( DateTime moment ) : void

시작 시각과 완료시각을 지정된 시각으로 설정합니다.

ExpandTo ( ITimePeriod period ) : void

시작시각과 완료시각을 지정된 기간 정보를 기준으로 변경합니다.

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

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

GetUnion ( ITimePeriod other ) : ITimeInterval

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

Reset ( ) : void

Interval을 재설정합니다.

Setup ( DateTime newStart, DateTime newEnd ) : void

기간을 설정합니다.

ShrinkEndTo ( DateTime moment ) : void

완료 시각을 지정된 시각으로 당깁니다. 완료시각보다 이전 시각이여야 합니다.

ShrinkStartTo ( DateTime moment ) : void

시작 시각을 지정된 시각으로 변경합니다. 시작시각보다 이후 시각이여야 합니다.

ShrinkTo ( DateTime moment ) : void

시작 시각과 완료시각을 지정된 시각으로 축소 합니다.

ShrinkTo ( ITimePeriod period ) : void

기간을 지정한 기간으로 축소시킵니다.

TimeInterval ( ) : System
TimeInterval ( DateTime moment ) : System
TimeInterval ( DateTime startInterval, DateTime endInterval ) : System
TimeInterval ( DateTime startInterval, DateTime endInterval, IntervalEdge startEdge, IntervalEdge endEdge ) : System
TimeInterval ( DateTime startInterval, DateTime endInterval, IntervalEdge startEdge, IntervalEdge endEdge, bool isIntervalEnabled, bool isReadOnly ) : System
TimeInterval ( DateTime moment, IntervalEdge startEdge, IntervalEdge endEdge, bool isIntervalEnabled, bool isReadOnly ) : System
TimeInterval ( ITimePeriod src ) : System
TimeInterval ( ITimePeriod src, bool isReadOnly ) : System

Protected Methods

Method Description
Format ( ITimeFormatter formatter ) : string

Method Details

Copy() public method

현 인스턴스의 기간을 가진 인스턴스를 새로 생성하여 반환합니다.
public Copy ( ) : ITimeInterval
return ITimeInterval

Copy() public method

현재 IInterval에서 오프셋만큼 이동한 ITimeInterval정보를 반환합니다.
public Copy ( TimeSpan offset ) : ITimeInterval
offset TimeSpan 이동할 오프셋
return ITimeInterval

Equals() public method

public Equals ( ITimeInterval other ) : bool
other ITimeInterval
return bool

ExpandEndTo() public method

완료 시각을 지정된 시각으로 변경합니다. 완료 시각 이전이 되면 안됩니다.
public ExpandEndTo ( DateTime moment ) : void
moment DateTime
return void

ExpandStartTo() public method

시작 시각을 지정된 시각으로 변경합니다. 시작 시각 이후가 되면 안됩니다.
public ExpandStartTo ( DateTime moment ) : void
moment DateTime
return void

ExpandTo() public method

시작 시각과 완료시각을 지정된 시각으로 설정합니다.
public ExpandTo ( DateTime moment ) : void
moment DateTime
return void

ExpandTo() public method

시작시각과 완료시각을 지정된 기간 정보를 기준으로 변경합니다.
public ExpandTo ( ITimePeriod period ) : void
period ITimePeriod
return void

Format() protected method

protected Format ( ITimeFormatter formatter ) : string
formatter ITimeFormatter
return string

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetIntersection() public method

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

GetUnion() public method

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

Reset() public method

Interval을 재설정합니다.
public Reset ( ) : void
return void

Setup() public method

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

ShrinkEndTo() public method

완료 시각을 지정된 시각으로 당깁니다. 완료시각보다 이전 시각이여야 합니다.
public ShrinkEndTo ( DateTime moment ) : void
moment DateTime
return void

ShrinkStartTo() public method

시작 시각을 지정된 시각으로 변경합니다. 시작시각보다 이후 시각이여야 합니다.
public ShrinkStartTo ( DateTime moment ) : void
moment DateTime
return void

ShrinkTo() public method

시작 시각과 완료시각을 지정된 시각으로 축소 합니다.
public ShrinkTo ( DateTime moment ) : void
moment DateTime
return void

ShrinkTo() public method

기간을 지정한 기간으로 축소시킵니다.
public ShrinkTo ( ITimePeriod period ) : void
period ITimePeriod
return void

TimeInterval() public method

public TimeInterval ( ) : System
return System

TimeInterval() public method

public TimeInterval ( DateTime moment ) : System
moment DateTime
return System

TimeInterval() public method

public TimeInterval ( DateTime startInterval, DateTime endInterval ) : System
startInterval DateTime
endInterval DateTime
return System

TimeInterval() public method

public TimeInterval ( DateTime startInterval, DateTime endInterval, IntervalEdge startEdge, IntervalEdge endEdge ) : System
startInterval DateTime
endInterval DateTime
startEdge IntervalEdge
endEdge IntervalEdge
return System

TimeInterval() public method

public TimeInterval ( DateTime startInterval, DateTime endInterval, IntervalEdge startEdge, IntervalEdge endEdge, bool isIntervalEnabled, bool isReadOnly ) : System
startInterval DateTime
endInterval DateTime
startEdge IntervalEdge
endEdge IntervalEdge
isIntervalEnabled bool
isReadOnly bool
return System

TimeInterval() public method

public TimeInterval ( DateTime moment, IntervalEdge startEdge, IntervalEdge endEdge, bool isIntervalEnabled, bool isReadOnly ) : System
moment DateTime
startEdge IntervalEdge
endEdge IntervalEdge
isIntervalEnabled bool
isReadOnly bool
return System

TimeInterval() public method

public TimeInterval ( ITimePeriod src ) : System
src ITimePeriod
return System

TimeInterval() public method

public TimeInterval ( ITimePeriod src, bool isReadOnly ) : System
src ITimePeriod
isReadOnly bool
return System

Property Details

Anytime public_oe static_oe property

public static TimeInterval,NSoft.NFramework.TimePeriods Anytime
return TimeInterval