Module swim.api

Class AbstractAgentType<A extends Agent>

    • Constructor Detail

      • AbstractAgentType

        public AbstractAgentType()
    • Method Detail

      • setAgentTypeContext

        public void setAgentTypeContext​(AgentTypeContext context)
        Description copied from interface: AgentType
        Updates the internal context used to provide concrete implementations to most AgentType methods.
        Specified by:
        setAgentTypeContext in interface AgentType<A extends Agent>
      • route

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

        public abstract Class<? extends A> type()
        Description copied from interface: AgentType
        The Java class of A.
        Specified by:
        type in interface AgentType<A extends Agent>