kaos.kpat.util
Class ModelUtils
java.lang.Object
kaos.kpat.util.ModelUtils
public class ModelUtils
- extends java.lang.Object
$Revision: 1.11 $
Method Summary |
static ModelActorClass |
createActorClass(java.lang.String actorClassName,
java.util.Map policyTable,
java.util.Map policyToObjectMap,
java.util.Map policiesById)
Creates a ModelActorclass based on information from the directory service |
static ModelDomain |
createDomain(java.lang.String domainName,
java.util.Map domainStructure,
java.util.Map policyTable,
java.util.Map agentDescTable,
java.util.Map virtualAgentsTable,
java.util.Map policyToObjectMap,
java.util.Map policiesById,
java.util.Map agentMap,
java.util.Map domainMap)
Creates a ModelDomain based on information from the directory service |
static void |
updatePolicies(ModelObject mo,
java.util.Hashtable policyTable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelUtils
public ModelUtils()
createDomain
public static ModelDomain createDomain(java.lang.String domainName,
java.util.Map domainStructure,
java.util.Map policyTable,
java.util.Map agentDescTable,
java.util.Map virtualAgentsTable,
java.util.Map policyToObjectMap,
java.util.Map policiesById,
java.util.Map agentMap,
java.util.Map domainMap)
- Creates a ModelDomain based on information from the directory service
- Parameters:
domainName
- name of the domaindomainStructure
- map of the domain structure, in the format of the map
returned by the DS's getDomainStructure() method,
with the addition of two special keys:
SUBDOMAINS -> Map of subdomain name to subdomain structure map
DOMAIN_DESC -> DomainDescription
** entries may be removed by this method **policyTable
- map of entityId -> Vector of PolicyMsgs
** entries may be removed by this method **agentDescTable
- map of agentId -> AgentDescriptionvirtualAgentsTable
- map of domain name -> Vector of AgentDescriptionspolicyToObjectMap
- map of ModelPolicy -> ModelObject
** entries may be added by this method **policiesById
- map of policy ID -> ModelPolicy
** entries may be added by this method **agentMap
- map of agent ID -> ModelAgent
** entries may be added by this method **domainMap
- map of domain name -> ModelDomain
** entries may be added by this method **
updatePolicies
public static void updatePolicies(ModelObject mo,
java.util.Hashtable policyTable)
createActorClass
public static ModelActorClass createActorClass(java.lang.String actorClassName,
java.util.Map policyTable,
java.util.Map policyToObjectMap,
java.util.Map policiesById)
- Creates a ModelActorclass based on information from the directory service
- Parameters:
actorClassName
- name of the actor classpolicyTable
- map of entityId -> Vector of PolicyMsgs
** entries may be removed by this method **policyToObjectMap
- map of ModelPolicy -> ModelObject
** entries may be added by this method **policiesById
- map of policy ID -> ModelPolicy
** entries may be added by this method **