class documentation
A CommunitySet is a group of communities.
| Method | __init__ |
Instantiates a CommunitySet. |
| Method | __str__ |
Undocumented |
| Method | add |
Adds a specific buyer to a specific community using a community index. |
| Method | add |
Adds a specific buyer to a specific community using their name variables. |
| Method | add |
Add a community to the group. |
| Method | get |
Returns a list of all buyers in all communities in this CommunitySet. |
| Method | more |
Checks if the number of communities is above a certain threshold. |
| Method | number |
Returns the number of communities. |
| Property | assemblage |
List of pots available in market. |
| Property | list |
List of all communities in this group |
| Instance Variable | _assemblage |
Undocumented |
| Instance Variable | _list |
Undocumented |
Instantiates a CommunitySet.
| Parameters | |
| list | communities to add to group |
| assemblage | items for sale in this market |
Adds a specific buyer to a specific community using a community index.
| Parameters | |
| buyer | name of target buyer |
| index | index of community to which to add buyer |
Adds a specific buyer to a specific community using their name variables.
| Parameters | |
| buyer | name of target buyer |
| community | name of community to which to add buyer |
Returns a list of all buyers in all communities in this CommunitySet.
| Returns | |
| a list of all buyers in all communities in this CommunitySet |
Checks if the number of communities is above a certain threshold.
| Parameters | |
| min | minimum number of communities |
| Returns | |
| True if number of communities is at least min_number; False otherwise | |