C# 클래스 BuildingCoder.CmdSetRoomOccupancy

상속: IExternalCommand
파일 보기 프로젝트 열기: jeremytammik/the_building_coder_samples

공개 메소드들

메소드 설명
Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result

비공개 메소드들

메소드 설명
BumpOccupancy ( Element e ) : void

Read the value of the element ROOM_OCCUPANCY parameter. If it ends in a number, increment the number, else append "1".

BumpStringSuffix ( string s ) : string

Analyse the given string. If it ends in a sequence of digits representing a number, return a string with the number oincremented by one. Otherwise, return a string with a suffix "1" appended.

메소드 상세

Execute() 공개 메소드

public Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
commandData ExternalCommandData
message string
elements ElementSet
리턴 System.Result