Place - ShutUpPaulo/TecProg_2016-01 GitHub Wiki
Name | Type | Description | Default Value |
---|---|---|---|
INVALID_NAME | String | Stores the error message of invalid place name | "Hey, nome invalido" |
INVALID_LATITUDE | String | Stores the error message of invalid place latitude | "Hey, sem a latitude não é possível encontrar o lugar" |
INVALID_LONGITUDE | String | Stores the error message of invalid place longitude | "Hey, sem a longitude não é possível encontrar o lugar" |
INVALID_COMMENT | String | Stores the error message of invalid place comment | "Hey, o comentario não pode ser vazio" |
id | int | Stores the place identifier | |
name | String | Stores the place name | |
comment | ArrayList | Stores the comments given to the place by the users | |
evaluate | Float | Stores the average of place evaluations given by users | |
longitude | Double | Stores the place longitude | |
latitude | Double | Stores the place latitude | |
phone | String | Stores the place phone | |
operation | String | Stores the place operating hours | |
description | String | Stores the place description | |
address | String | Stores the place address |
Return type: Constructor
Arguments: String name, String evaluate, String longitude, String latitude, String operation, String description, String address, String phone
Description: Creates a new place object with the given attributes
Return type: void
Arguments: String address;
Description: Method that sets the place address
Return type: String
Arguments: No arguments
Description: Method that returns the place name
Return type: void
Arguments: String name;
Description: Method that sets the place name
Return type: String
Arguments: No arguments;
Description: Method that returns the place comments given by the people who visited it
Return type: void
Arguments: String comment;
Description: Method that adds a place comment given by an user in ArrayList of place comments
Return type: Double
Arguments: No arguments;
Description: Method that returns the place longitude
Return type: void
Arguments: Double longitude;
Description: Method that sets the place longitude
Return type: void
Arguments: String evaluate;
Description: Method that sets the average of the place evaluations
Return type: String
Arguments: No Arguments;
Description: Method that returns the place description
Return type: void
Arguments: String description;
Description: Method that sets the place description
Return type: String
Arguments: No arguments;
Description: Method that returns the place phone
Return type: void
Arguments: String phone;
Description: Method that sets the place phone
Return type: id
Arguments: No arguments;
Description: Method that returns the place identifier
Return type: void
Arguments: int id;
Description: Method that sets the place identifier