Bridges-Python
3.4.4
Bridges(Python API)
|
A Shakespeare Data source object containing sonnets, poems and plays.
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.
Refer to tutorial examples to using this data source in data structure assignments.
This object is generally not created by the user, to see how its created check out bridges::data_src_dependent::data_source::get_shakespeare_data()
For an example, check out https://bridgesuncc.github.io/tutorials/Data_Shakespeare.html
Public Member Functions | |
def | __init__ (self, str title="", str type="", str text="") |
def | title (self) |
Get title. More... | |
def | title (self, t) |
set title More... | |
def | type (self) |
Get type (sonnet, play or poem) More... | |
def | type (self, t) |
set type of work (sonnet, play or poem) More... | |
def | text (self) |
Get text of sonnet, play or poem. More... | |
def | text (self, t) |
set full text of work More... | |
def bridges.data_src_dependent.shakespeare.Shakespeare.__init__ | ( | self, | |
str | title = "" , |
||
str | type = "" , |
||
str | text = "" |
||
) |
title | title of sonnet, play or poem |
type | sonnet, play or poem |
text | full text of work |
def bridges.data_src_dependent.shakespeare.Shakespeare.text | ( | self | ) |
Get text of sonnet, play or poem.
def bridges.data_src_dependent.shakespeare.Shakespeare.text | ( | self, | |
t | |||
) |
set full text of work
t | full text |
def bridges.data_src_dependent.shakespeare.Shakespeare.title | ( | self | ) |
Get title.
def bridges.data_src_dependent.shakespeare.Shakespeare.title | ( | self, | |
t | |||
) |
set title
t | title of work |
def bridges.data_src_dependent.shakespeare.Shakespeare.type | ( | self | ) |
Get type (sonnet, play or poem)
def bridges.data_src_dependent.shakespeare.Shakespeare.type | ( | self, | |
t | |||
) |
set type of work (sonnet, play or poem)
t | type of work |