OYMBuilding Class Reference

Inherits from NSObject
Conforms to OYMJsonProtocol
Declared in OYMBuilding.h
OYMBuilding.m

Overview

This class includes all the information regarding the Building stored. As well, it includes the floors related with the building.

  uuid

Automatically generated UUID

@property (readonly) NSString *uuid

Declared In

OYMBuilding.h

  name

Building name

@property (readonly) NSString *name

Declared In

OYMBuilding.h

  geometry

Building Geometry

@property (readonly) OYMGeometry *geometry

Declared In

OYMBuilding.h

  type

String defining Building type

@property (readonly) NSString *type

Declared In

OYMBuilding.h

  floors

Array including the OYMFloor available in the building

@property (readonly) NS_MUTABLE_DICTIONARY_OF ( NSString *OYMFloor **floors

Declared In

OYMBuilding.h

– addFloor:

This method adds a OYMFloor in the Building’s Floor list.

- (void)addFloor:(OYMFloor *)floor

Parameters

floor

The OYMFloor to be added

Declared In

OYMBuilding.h

– removeFloor:

This method removes a OYMFloor in the Building’s Floor list.

- (void)removeFloor:(OYMFloor *)floor

Parameters

floor

The OYMFloor to be removed

Declared In

OYMBuilding.h

– getFloorsList

Getter for the Floor list.

- (NS_ARRAY_OF ( OYMFloor *) *)getFloorsList

Return Value

An Array of OYMFloor, ordered by floor number (smaller first)

Declared In

OYMBuilding.h