ix.ispace
Class AbstractAgentGroup
java.lang.Object
|
+--ix.ispace.AbstractAgentGroup
- All Implemented Interfaces:
- AgentGroup
- Direct Known Subclasses:
- RelationshipGroup
- public abstract class AbstractAgentGroup
- extends java.lang.Object
- implements AgentGroup
A base class that can support both intensionally and extensionally
secified groups.
Method Summary |
java.util.Collection |
getBasePopulation()
Returns the collection of AgentData objects from which this
group's members are selected. |
java.util.Collection |
getKnownMembers()
Returns the collection obtained by using the isMember method
to filter the base population. |
java.lang.String |
getName()
Returns the name of this AgentGroup. |
boolean |
isMember(java.lang.Object item)
A test that is applied to members of the base population to
select the members of this group. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
java.lang.String name
contactManager
ContactManager contactManager
AbstractAgentGroup
public AbstractAgentGroup(java.lang.String name,
ContactManager cm)
getName
public java.lang.String getName()
- Returns the name of this AgentGroup.
- Specified by:
getName
in interface AgentGroup
getBasePopulation
public java.util.Collection getBasePopulation()
- Returns the collection of AgentData objects from which this
group's members are selected. The implementation in this
class returns the full collection of agents known to the
contact manager. Note that a Collection object is always
returned, never
null
.
- See Also:
AgentData
,
ContactManager.getAgentData()
isMember
public boolean isMember(java.lang.Object item)
- A test that is applied to members of the base population to
select the members of this group. The implementation in this
class always returns true.
getKnownMembers
public java.util.Collection getKnownMembers()
- Returns the collection obtained by using the isMember method
to filter the base population.
- Specified by:
getKnownMembers
in interface AgentGroup
- Following copied from interface:
ix.ispace.AgentGroup
- See Also:
AgentData