C# Class BuildingCoder.CmdSetRoomOccupancy

Inheritance: IExternalCommand
Mostra file Open project: jeremytammik/the_building_coder_samples

Public Methods

Method Description
Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result

Private Methods

Method Description
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.

Method Details

Execute() public method

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