- java.lang.Object
-
- swim.api.agent.AbstractAgentType<A>
-
- All Implemented Interfaces:
AgentFactory<A>,AgentType<A>
public abstract class AbstractAgentType<A extends Agent> extends Object implements AgentType<A>
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentTypeContextcontext
-
Constructor Summary
Constructors Constructor Description AbstractAgentType()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AcreateAgent(AgentContext context)Creates an instance ofAwith internal contextcontext.AgentTypeContextgetAgentTypeContext()The internal context used to provide concrete implementations to mostAgentTypemethods.Stringname()TODOswim.uri.UriPatternroute()TheUriPatternthat everynodeUricorresponding to an instance ofAmust match.voidsetAgentTypeContext(AgentTypeContext context)Updates the internal context used to provide concrete implementations to mostAgentTypemethods.abstract Class<? extends A>type()The JavaclassofA.
-
-
-
Field Detail
-
context
protected AgentTypeContext context
-
-
Method Detail
-
getAgentTypeContext
public AgentTypeContext getAgentTypeContext()
Description copied from interface:AgentTypeThe internal context used to provide concrete implementations to mostAgentTypemethods.- Specified by:
getAgentTypeContextin interfaceAgentType<A extends Agent>
-
setAgentTypeContext
public void setAgentTypeContext(AgentTypeContext context)
Description copied from interface:AgentTypeUpdates the internal context used to provide concrete implementations to mostAgentTypemethods.- Specified by:
setAgentTypeContextin interfaceAgentType<A extends Agent>
-
route
public swim.uri.UriPattern route()
Description copied from interface:AgentTypeTheUriPatternthat everynodeUricorresponding to an instance ofAmust match.
-
type
public abstract Class<? extends A> type()
Description copied from interface:AgentTypeThe JavaclassofA.
-
createAgent
public abstract A createAgent(AgentContext context)
Description copied from interface:AgentFactoryCreates an instance ofAwith internal contextcontext.- Specified by:
createAgentin interfaceAgentFactory<A extends Agent>
-
-