class_agency - AiAUJI/PAUSETA GitHub Wiki
An Agency is a private or public company that possesses several resources.
- Agency()
- Agency(String id, String description, String type, Location location, ArrayList resources)
- boolean addResource(Resource resource)
- String id
- String description
- String type
- Location location
- ArrayList<Resource> resources
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.
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.