Module swim.api

Class AbstractAgentRoute<A extends Agent>

java.lang.Object
swim.api.agent.AbstractAgentRoute<A>
All Implemented Interfaces:
AgentFactory<A>, AgentRoute<A>

public abstract class AbstractAgentRoute<A extends Agent> extends Object implements AgentRoute<A>
  • Field Details

  • Constructor Details

    • AbstractAgentRoute

      public AbstractAgentRoute()
  • Method Details

    • agentRouteContext

      public AgentRouteContext agentRouteContext()
      Description copied from interface: AgentRoute
      The internal context used to provide concrete implementations to most AgentRoute methods.
      Specified by:
      agentRouteContext in interface AgentRoute<A extends Agent>
    • setAgentRouteContext

      public void setAgentRouteContext(AgentRouteContext context)
      Description copied from interface: AgentRoute
      Updates the internal context used to provide concrete implementations to most AgentRoute methods.
      Specified by:
      setAgentRouteContext in interface AgentRoute<A extends Agent>
    • routeName

      public String routeName()
      Description copied from interface: AgentRoute
      Returns a plane-unique identifier for this agent route.
      Specified by:
      routeName in interface AgentRoute<A extends Agent>
    • pattern

      public swim.uri.UriPattern pattern()
      Description copied from interface: AgentRoute
      The UriPattern that every nodeUri corresponding to an instance of A must match.
      Specified by:
      pattern in interface AgentRoute<A extends Agent>
    • createAgent

      public abstract A createAgent(AgentContext context)
      Description copied from interface: AgentFactory
      Creates an instance of A with internal context context.
      Specified by:
      createAgent in interface AgentFactory<A extends Agent>
    • props

      public swim.structure.Value props(swim.uri.Uri nodeUri)
      Specified by:
      props in interface AgentFactory<A extends Agent>