class_agency - AiAUJI/PAUSETA GitHub Wiki

Agency

Description

An Agency is a private or public company that possesses several resources.

Member functions

  • Agency()
  • Agency(String id, String description, String type, Location location, ArrayList resources)
  • boolean addResource(Resource resource)

Member variables

  • String id
  • String description
  • String type
  • Location location
  • ArrayList<Resource> resources

Member functions description

Agency()
Default constructor.

Agency(String id, String description, String type, Location location, ArrayList resources)
Constructor.

boolean addResource(Resource resource)
Adds a resource to this agency.

Member variables description

String id
Unique id of the agency.

String description
Description of the agency.

String type
Type of the agency (i.e. Hospital)

Location location
Location of the Agency.

ArrayList<Resource> resources
Resources this agency has.

⚠️ **GitHub.com Fallback** ⚠️