Bridges-Java  3.4.3
Bridges(Java API)
Public Member Functions | Package Attributes | List of all members
bridges.data_src_dependent.Game Class Reference

Detailed Description

A Game object, used along with the Games data source.

This is a convenience class provided for users who wish to use this data source as part of their application. It provides an API that makes it easy to access the attributes of this data set.

One would not normally create an object of this type, but rather obtain them through a call to bridges::connect::DataSource::getGameData().

Each game has a title, platform on which it can be played, rating and a list of genres

Refer to tutorial examples on how to use this dataset: https://bridgesuncc.github.io/tutorials/Data_IGN_Games.html

Author
Kalpathi Subramanian
Date
2/1/17, 12/26/20

Public Member Functions

 Game ()
 
 Game (String title, String platform, double rating, Vector< String > genre)
 
String getTitle ()
 
void setTitle (String title)
 
String getPlatformType ()
 
void setPlatformType (String platform)
 
double getRating ()
 
void setRating (double rating)
 
Vector< String > getGenre ()
 
void setGenre (Vector< String > genre)
 

Package Attributes

String platform
 
Vector< String > genre
 

Constructor & Destructor Documentation

◆ Game() [1/2]

bridges.data_src_dependent.Game.Game ( )

Constructor

◆ Game() [2/2]

bridges.data_src_dependent.Game.Game ( String  title,
String  platform,
double  rating,
Vector< String >  genre 
)

Constructor

Parameters
titletitle of game
platformplatform on which it can be played (String)
ratingrating of game (double)
genregenres of game (vector of strings)

Member Function Documentation

◆ getGenre()

Vector<String> bridges.data_src_dependent.Game.getGenre ( )

get genres of game

Returns
genres (vector of strings)

◆ getPlatformType()

String bridges.data_src_dependent.Game.getPlatformType ( )

get platform type of game

Returns
platform types (string)

◆ getRating()

double bridges.data_src_dependent.Game.getRating ( )

get rating of game

Returns
rating (double)

◆ getTitle()

String bridges.data_src_dependent.Game.getTitle ( )

get title of game

Returns
title of game (string)

◆ setGenre()

void bridges.data_src_dependent.Game.setGenre ( Vector< String >  genre)

set genres of game

Parameters
genregenres to be set (vector of strings)

◆ setPlatformType()

void bridges.data_src_dependent.Game.setPlatformType ( String  platform)

set platform type of game

Parameters
platformplatform type to be set (string)

◆ setRating()

void bridges.data_src_dependent.Game.setRating ( double  rating)

set rating of game

Parameters
ratingrating to be set (double)

◆ setTitle()

void bridges.data_src_dependent.Game.setTitle ( String  title)

set title of game

Parameters
titlegame title to be set (string)

Member Data Documentation

◆ genre

Vector<String> bridges.data_src_dependent.Game.genre
package

◆ platform

String bridges.data_src_dependent.Game.platform
package

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