net.sf.sail.common.persistance.memory
Class MemoryPersistenceImpl

java.lang.Object
  extended by net.sf.sail.common.persistance.memory.MemoryPersistenceImpl
All Implemented Interfaces:
AgentService

public class MemoryPersistenceImpl
extends java.lang.Object
implements AgentService


Constructor Summary
MemoryPersistenceImpl()
           
 
Method Summary
protected  void addAgent(MemoryAgent agent)
           
 IAgent createAgent(Role role)
           
 void dump(SessionContext session, java.io.PrintStream out)
          Dump to out in SSDIF representation.
 AgentSet getAgentsInRole(Role role)
          This should return the agents that are currently active on this session
 AgentSet getAgentsOfUser(User user)
           
<T> ISock<T>
getSock(Rim<T> rim, IAgent agent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryPersistenceImpl

public MemoryPersistenceImpl()
Method Detail

getAgentsInRole

public AgentSet getAgentsInRole(Role role)
Description copied from interface: AgentService
This should return the agents that are currently active on this session

Specified by:
getAgentsInRole in interface AgentService
Returns:

getSock

public <T> ISock<T> getSock(Rim<T> rim,
                            IAgent agent)
                 throws UnsupportedRimShapeException
Specified by:
getSock in interface AgentService
Throws:
UnsupportedRimShapeException

addAgent

protected void addAgent(MemoryAgent agent)
Parameters:
agent -

getAgentsOfUser

public AgentSet getAgentsOfUser(User user)
Specified by:
getAgentsOfUser in interface AgentService

dump

public void dump(SessionContext session,
                 java.io.PrintStream out)
Dump to out in SSDIF representation.

Specified by:
dump in interface AgentService

createAgent

public IAgent createAgent(Role role)
Specified by:
createAgent in interface AgentService


Copyright © 2004-2008 TELS Center. All Rights Reserved.