- java.lang.Object
-
- swim.api.agent.AbstractAgentRoute<A>
-
- All Implemented Interfaces:
AgentFactory<A>,AgentRoute<A>
- Direct Known Subclasses:
JavaAgentFactory,JsAgentFactory
public abstract class AbstractAgentRoute<A extends Agent> extends Object implements AgentRoute<A>
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentRouteContextcontext
-
Constructor Summary
Constructors Constructor Description AbstractAgentRoute()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AgentRouteContextagentRouteContext()The internal context used to provide concrete implementations to mostAgentRoutemethods.abstract AcreateAgent(AgentContext context)Creates an instance ofAwith internal contextcontext.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.api.agent.AgentFactory
id
-
-
-
-
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<A extends 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<A extends Agent>
-
routeName
public String routeName()
Description copied from interface:AgentRouteReturns a plane-unique identifier for this agent route.- Specified by:
routeNamein interfaceAgentRoute<A extends Agent>
-
pattern
public UriPattern pattern()
Description copied from interface:AgentRouteTheUriPatternthat everynodeUricorresponding to an instance ofAmust match.- Specified by:
patternin interfaceAgentRoute<A extends Agent>
-
createAgent
public abstract A createAgent(AgentContext context)
Description copied from interface:AgentFactoryCreates an instance ofAwith internal contextcontext.- Specified by:
createAgentin interfaceAgentFactory<A extends Agent>
-
-