- java.lang.Object
-
- swim.api.agent.AbstractAgentType<A>
-
- All Implemented Interfaces:
AgentFactory<A>
,AgentType<A>
- Direct Known Subclasses:
AgentClass
public abstract class AbstractAgentType<A extends Agent> extends Object implements AgentType<A>
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentTypeContext
context
-
Constructor Summary
Constructors Constructor Description AbstractAgentType()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AgentTypeContext
agentTypeContext()
The internal context used to provide concrete implementations to mostAgentType
methods.abstract A
createAgent(AgentContext context)
Creates an instance ofA
with internal contextcontext
.String
name()
TODOUriPattern
route()
TheUriPattern
that everynodeUri
corresponding to an instance ofA
must match.void
setAgentTypeContext(AgentTypeContext context)
Updates the internal context used to provide concrete implementations to mostAgentType
methods.abstract Class<? extends A>
type()
The Javaclass
ofA
.
-
-
-
Field Detail
-
context
protected AgentTypeContext context
-
-
Method Detail
-
agentTypeContext
public AgentTypeContext agentTypeContext()
Description copied from interface:AgentType
The internal context used to provide concrete implementations to mostAgentType
methods.- Specified by:
agentTypeContext
in interfaceAgentType<A extends Agent>
-
setAgentTypeContext
public void setAgentTypeContext(AgentTypeContext context)
Description copied from interface:AgentType
Updates the internal context used to provide concrete implementations to mostAgentType
methods.- Specified by:
setAgentTypeContext
in interfaceAgentType<A extends Agent>
-
route
public UriPattern route()
Description copied from interface:AgentType
TheUriPattern
that everynodeUri
corresponding to an instance ofA
must match.
-
type
public abstract Class<? extends A> type()
Description copied from interface:AgentType
The Javaclass
ofA
.
-
createAgent
public abstract A createAgent(AgentContext context)
Description copied from interface:AgentFactory
Creates an instance ofA
with internal contextcontext
.- Specified by:
createAgent
in interfaceAgentFactory<A extends Agent>
-
-