CSCI3081W Drone Delivery System
Public Member Functions | List of all members
IEntityFactory Class Referenceabstract

Composite Factory Interface. More...

#include <IEntityFactory.h>

Inheritance diagram for IEntityFactory:
Inheritance graph
[legend]

Public Member Functions

virtual ~IEntityFactory ()
 Destructor for IEntityFactory class.
 
virtual IEntitycreateEntity (const JsonObject &entity)=0
 Creates entity using the given JSON object, if possible. More...
 

Detailed Description

Composite Factory Interface.

Member Function Documentation

◆ createEntity()

virtual IEntity* IEntityFactory::createEntity ( const JsonObject entity)
pure virtual

Creates entity using the given JSON object, if possible.

Parameters
entity- JsonObject to be used to create the new entity.
Returns
Entity that was created if it was created successfully, or a nullpointer if creation failed.

Implemented in RechargeStationFactory, RobotFactory, RechargeDroneFactory, POIFactory, PackageFactory, HumanFactory, HelicopterFactory, DroneFactory, and CompositeFactory.


The documentation for this class was generated from the following file: