creativity  v1.3.0
Agent-based model of creativity and piracy
Public Types | Public Member Functions | Public Attributes | List of all members
creativity::BookCopy Class Referencefinal

Container class storing the data associated with a reader's copy of a book. More...

#include <creativity/BookCopy.hpp>

Public Types

enum  Status { Status::wrote, Status::purchased_market, Status::purchased_public, Status::pirated }
 The status a book copy can have. More...
 

Public Member Functions

 BookCopy (double quality, Status status, eris::eris_time_t acquired)
 Creates a BookCopy.
 
bool wrote () const
 Alias for status == BookCopy::Status::wrote
 
bool pirated () const
 Alias for status == BookCopy::Status::pirated
 
bool purchased_market () const
 Alias for status == BookCopy::Status::purchased_market
 
bool purchased_public () const
 Alias for status == BookCopy::Status::purchased_public
 

Public Attributes

const double quality
 The reader's perceived quality of the book.
 
const Status status
 The status of the book (wrote, purchased, or pirated)
 
const eris::eris_time_t acquired
 The simulation period when this copy was acquired.
 

Detailed Description

Container class storing the data associated with a reader's copy of a book.

Member Enumeration Documentation

§ Status

The status a book copy can have.

Enumerator
wrote 

This is the author's own copy of his book.

purchased_market 

The reader bought this book on the private market.

purchased_public 

The reader bought this book from the public provider.

pirated 

The reader pirated this book.


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