C# 클래스 Contrequarte.SmartPlug.Core.TimePeriod

파일 보기 프로젝트 열기: contrequarte/SmartPlugSP2101W 1 사용 예제들

공개 메소드들

메소드 설명
EdimaxScheduleList2ScheduledEntries ( string edimaxScheduleList ) : IEnumerable

Converting the value of an Edimax node to a List. the node value looks like following e.g.: 00011-0c0m1-m0mu1-n0nP1

IsIntersectionFree ( IEnumerable timePeriods ) : bool

Checking, if an enumeration of TimePeriod objects doesn't contain intersecting TimePeriods

TimePeriod ( PointInTime begin, PointInTime end ) : System

비공개 메소드들

메소드 설명
CharToNumber ( char charToConvert ) : int

Converting the characters used in to the corresponding number to get the times coded mor human readable

EdimaxScheduledEntryPart2ScheduledEntry ( string scheduledListPart ) : ScheduledEntry

Converting a single schedule entry of the smartplug to a ScheduledEntry object such a single schedule entry consists of 5 characters [hour][minute][hour][minute][on/Off] [hour] is one single char representing the numbers from 0 to 23/24 [minute] is one single char representing the numbers from 0 to 59 [on/off] char '1' stands for 'on' char '0' represents 'off'

메소드 상세

EdimaxScheduleList2ScheduledEntries() 공개 정적인 메소드

Converting the value of an Edimax node to a List. the node value looks like following e.g.: 00011-0c0m1-m0mu1-n0nP1
public static EdimaxScheduleList2ScheduledEntries ( string edimaxScheduleList ) : IEnumerable
edimaxScheduleList string string representing the schedule list from an Edimax SmartPlug
리턴 IEnumerable

IsIntersectionFree() 공개 정적인 메소드

Checking, if an enumeration of TimePeriod objects doesn't contain intersecting TimePeriods
public static IsIntersectionFree ( IEnumerable timePeriods ) : bool
timePeriods IEnumerable enumeration of Timeperiod objects to check
리턴 bool

TimePeriod() 공개 메소드

public TimePeriod ( PointInTime begin, PointInTime end ) : System
begin PointInTime
end PointInTime
리턴 System