| |
|
| java.lang.Object org.cougaar.community.EntityImpl org.cougaar.community.CommunityImpl
lastUpdate | protected long lastUpdate(Code) | | |
CommunityImpl | public CommunityImpl(String name)(Code) | | Constructor
Parameters: name - Name of community |
CommunityImpl | public CommunityImpl(String name, Attributes attrs)(Code) | | Constructor
Parameters: name - Name of community Parameters: attrs - Initial attributes |
addEntity | public void addEntity(Entity entity)(Code) | | Adds an Entity to the community.
Parameters: entity - Entity to add to community |
getEntities | public Collection getEntities()(Code) | | Returns a collection containing all entities associated with this
community.
Collection of Entity objects |
getEntity | public Entity getEntity(String name)(Code) | | Returns the named Entity or null if it doesn't exist.
Parameters: name - Name of entity Entity referenced by name |
getLastUpdate | public long getLastUpdate()(Code) | | |
hasEntity | public boolean hasEntity(String name)(Code) | | Returns true if community contains entity.
Parameters: name - Name of requested entity true if community contains entity |
qualifierToString | public String qualifierToString(int qualifier)(Code) | | |
removeEntity | public void removeEntity(String name)(Code) | | Removes an Entity from the community.
Parameters: name - Name of entity to remove from community |
search | public Set search(String filter, int qualifier)(Code) | | Performs search of community and returns collection of matching Entity
objects.
Parameters: filter - JNDI style search filter Parameters: qualifier - Search qualifier (e.g., AGENTS_ONLY, COMMUNITIES_ONLY, orALL_ENTITIES) Set of Entity objects satisfying search filter |
setLastUpdate | public void setLastUpdate(long time)(Code) | | |
toXml | public String toXml()(Code) | | Returns an XML representation of community.
XML representation of community |
toXml | public String toXml(String indent)(Code) | | Returns an XML representation of community.
Parameters: indent - Blank string used to pad beginning of entry to controlindentation formatting XML representation of community |
|
|
|