- java.lang.Object
-
- swim.dynamic.BridgeGuest
-
- swim.dynamic.api.agent.GuestAgentRoute
-
- All Implemented Interfaces:
AgentFactory<Agent>,AgentRoute<Agent>,GuestWrapper
public class GuestAgentRoute extends BridgeGuest implements AgentRoute<Agent>
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentRouteContextcontext-
Fields inherited from class swim.dynamic.BridgeGuest
bridge, guest
-
-
Constructor Summary
Constructors Constructor Description GuestAgentRoute(Bridge bridge, Object guest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentRouteContextagentRouteContext()The internal context used to provide concrete implementations to mostAgentRoutemethods.AgentcreateAgent(AgentContext context)Creates an instance ofAwith internal contextcontext.Valueid(Uri nodeUri)UriPatternpattern()TheUriPatternthat everynodeUricorresponding to an instance ofAmust match.Valueprops(Uri nodeUri)StringrouteName()Returns a plane-unique identifier for this agent route.voidsetAgentRouteContext(AgentRouteContext context)Updates the internal context used to provide concrete implementations to mostAgentRoutemethods.-
Methods inherited from class swim.dynamic.BridgeGuest
bridge, unwrap
-
-
-
-
Field Detail
-
context
protected AgentRouteContext context
-
-
Method Detail
-
agentRouteContext
public AgentRouteContext agentRouteContext()
Description copied from interface:AgentRouteThe internal context used to provide concrete implementations to mostAgentRoutemethods.- Specified by:
agentRouteContextin interfaceAgentRoute<Agent>
-
setAgentRouteContext
public void setAgentRouteContext(AgentRouteContext context)
Description copied from interface:AgentRouteUpdates the internal context used to provide concrete implementations to mostAgentRoutemethods.- Specified by:
setAgentRouteContextin interfaceAgentRoute<Agent>
-
routeName
public String routeName()
Description copied from interface:AgentRouteReturns a plane-unique identifier for this agent route.- Specified by:
routeNamein interfaceAgentRoute<Agent>
-
pattern
public UriPattern pattern()
Description copied from interface:AgentRouteTheUriPatternthat everynodeUricorresponding to an instance ofAmust match.- Specified by:
patternin interfaceAgentRoute<Agent>
-
createAgent
public Agent createAgent(AgentContext context)
Description copied from interface:AgentFactoryCreates an instance ofAwith internal contextcontext.- Specified by:
createAgentin interfaceAgentFactory<Agent>
-
id
public Value id(Uri nodeUri)
- Specified by:
idin interfaceAgentFactory<Agent>
-
props
public Value props(Uri nodeUri)
- Specified by:
propsin interfaceAgentFactory<Agent>
-
-