org.directdemocracyportal.democracy.model.world
Class Organisation

Package class diagram package Organisation
java.lang.Object
  extended by org.directdemocracyportal.democracy.model.core.BaseEntity
      extended by org.directdemocracyportal.democracy.model.core.Agent
          extended by org.directdemocracyportal.democracy.model.core.GroupAgent
              extended by org.directdemocracyportal.democracy.model.world.Organisation
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Government, PoliticalParty, Portal

@Entity
public class Organisation
extends GroupAgent

The Class Organisation.

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Class and Description
static class Organisation.OrganisationRoles
          The Enum OrganisationRoles.
 
Constructor Summary
Constructor and Description
Organisation()
          Instantiates a new organisation.
 
Method Summary
Modifier and Type Method and Description
 void addMember(Person person)
          Adds the member.
 Person findMemberByFullNameAndParty(java.lang.String fname, java.lang.String lname, java.lang.String party)
          Find member by full name and party.
 Person findMemberByName(java.lang.String name)
          Find member by name.
 Organisation findOrgByAbbr(java.lang.String abbr)
          Find org by abbr.
 Resource findResourceByName(java.lang.String name)
          Find resource by name.
 java.lang.String getAbbreviation()
          Gets the abbreviation.
 java.util.Map<PoliticalParty,java.lang.Long> getActivePoliticalParties()
          Gets the active political parties.
 Country getCountry()
          Gets the country.
 java.lang.Long getNumberOfMembers()
          Gets the number of members.
 OrganisationType getOrganisationType()
          Gets the organisation type.
 Region getRegion()
          Gets the region.
 java.util.Set<Person> personsActive()
          Persons active.
 boolean playsRoleInOrganisation(Agent player)
          Plays role in organisation.
 void removeMember(Person person)
          Removes the member.
 void setAbbreviation(java.lang.String abbreviation)
          Sets the abbreviation.
 void setCountry(Country country)
          Sets the country.
 void setNumberOfMembers(java.lang.Long numberOfMembers)
          Sets the number of members.
 void setOrganisationType(OrganisationType organisationType)
          Sets the organisation type.
 void setRegion(Region region)
          Sets the region.
 
Methods inherited from class org.directdemocracyportal.democracy.model.core.GroupAgent
findDefinedRoleByName, findOrgByName, getChildren, getDefinedRoles, getParent, setChildren, setDefinedRoles, setParent
 
Methods inherited from class org.directdemocracyportal.democracy.model.core.Agent
equals, getId, getName, getResources, getRoles, hashCode, setId, setName, setResources, setRoles
 
Methods inherited from class org.directdemocracyportal.democracy.model.core.BaseEntity
isNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Organisation

public Organisation()
Instantiates a new organisation.

Method Detail

getAbbreviation

public java.lang.String getAbbreviation()
Gets the abbreviation.

Returns:
the abbreviation

setAbbreviation

public void setAbbreviation(java.lang.String abbreviation)
Sets the abbreviation.

Parameters:
abbreviation - the new abbreviation

getCountry

public Country getCountry()
Gets the country.

Returns:
the country

setCountry

public void setCountry(Country country)
Sets the country.

Parameters:
country - the new country

getRegion

public Region getRegion()
Gets the region.

Returns:
the region

setRegion

public void setRegion(Region region)
Sets the region.

Parameters:
region - the new region

getOrganisationType

public OrganisationType getOrganisationType()
Gets the organisation type.

Returns:
the organisation type

setOrganisationType

public void setOrganisationType(OrganisationType organisationType)
Sets the organisation type.

Parameters:
organisationType - the new organisation type

getNumberOfMembers

public java.lang.Long getNumberOfMembers()
Gets the number of members.

Returns:
the number of members

setNumberOfMembers

public void setNumberOfMembers(java.lang.Long numberOfMembers)
Sets the number of members.

Parameters:
numberOfMembers - the new number of members

playsRoleInOrganisation

public boolean playsRoleInOrganisation(Agent player)
Plays role in organisation.

Parameters:
player - the player
Returns:
true, if successful

personsActive

public java.util.Set<Person> personsActive()
Persons active.

Returns:
the set

findMemberByName

public Person findMemberByName(java.lang.String name)
Find member by name.

Parameters:
name - the name
Returns:
the person

findMemberByFullNameAndParty

public Person findMemberByFullNameAndParty(java.lang.String fname,
                                           java.lang.String lname,
                                           java.lang.String party)
Find member by full name and party.

Parameters:
fname - the fname
lname - the lname
party - the party
Returns:
the person

findOrgByAbbr

public Organisation findOrgByAbbr(java.lang.String abbr)
Find org by abbr.

Parameters:
abbr - the abbr
Returns:
the organisation

findResourceByName

public Resource findResourceByName(java.lang.String name)
Find resource by name.

Parameters:
name - the name
Returns:
the resource

getActivePoliticalParties

public java.util.Map<PoliticalParty,java.lang.Long> getActivePoliticalParties()
Gets the active political parties.

Returns:
the active political parties

addMember

public void addMember(Person person)
Adds the member.

Parameters:
person - the person

removeMember

public void removeMember(Person person)
Removes the member.

Parameters:
person - the person


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.