- All Superinterfaces:
DownlinkFactory,LaneFactory,Log,Store,WarpRef
- All Known Implementing Classes:
AgentView
Internal context that enables URI-based addressability, contextual
Lane and Store creation mechanisms, logging, and scheduling to some
Agent.-
Method Summary
Modifier and TypeMethodDescriptionagentId()agents()The multi-threaded executionStageon which thisAgentContextcan run asynchronous operations.voidcloseAgent(String name) voidcloseAgent(Value id) <A extends Agent>
AReturns theLanebelonging to theAgentmanaged by thisAgentContextthat is addressable bylaneUri, ornullif no suchLaneexists.Returns the value ofnameinprops().Returns the value ofkeyinprops().hostUri()ThehostUriof theAgentmanaged by thisAgentContext.lane()Returns the currently executing lane, or null if not currently executing a lane or link callback.link()Returns the currently executing link, or null if not currently executing a link callback.nodeUri()ThenodeUriof theAgentmanaged by thisAgentContext.<A extends Agent>
A<A extends Agent>
AopenAgent(String name, AgentFactory<A> agentFactory) <A extends Agent>
A<A extends Agent>
AopenAgent(Value id, AgentFactory<A> agentFactory) <A extends Agent>
A<A extends Agent>
AopenAgent(Value id, Value props, AgentFactory<A> agentFactory) RegisterslanewithlaneUriand returnslane.props()ARecordthat maps every dynamic property innodeUri(), as defined byAgentRoute.pattern(), to its value.schedule()TheSchedulethat thisAgentContextis bound to.stage()The single-threaded executionStageon which thisAgentContextruns its application logic.Methods inherited from interface swim.api.downlink.DownlinkFactory
downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, downlinkWsMethods inherited from interface swim.api.lane.LaneFactory
commandLane, demandLane, demandMapLane, geospatialLane, httpLane, joinMapLane, joinValueLane, listLane, mapLane, spatialLane, supplyLane, valueLane, wsLaneMethods inherited from interface swim.api.store.Store
geospatialData, geospatialData, listData, listData, mapData, mapData, spatialData, spatialData, valueData, valueData
-
Method Details
-
hostUri
Uri hostUri()ThehostUriof theAgentmanaged by thisAgentContext. -
nodeUri
Uri nodeUri()ThenodeUriof theAgentmanaged by thisAgentContext. -
agentId
Value agentId() -
props
Value props()ARecordthat maps every dynamic property innodeUri(), as defined byAgentRoute.pattern(), to its value. An empty result indicates thatnodeUricontains no dynamic components. -
getProp
Returns the value ofkeyinprops(). -
getProp
Returns the value ofnameinprops(). -
schedule
Schedule schedule()TheSchedulethat thisAgentContextis bound to. -
stage
Stage stage()The single-threaded executionStageon which thisAgentContextruns its application logic. -
asyncStage
Stage asyncStage()The multi-threaded executionStageon which thisAgentContextcan run asynchronous operations. -
lane
Lane lane()Returns the currently executing lane, or null if not currently executing a lane or link callback. -
link
Link link()Returns the currently executing link, or null if not currently executing a link callback. -
getLane
Returns theLanebelonging to theAgentmanaged by thisAgentContextthat is addressable bylaneUri, ornullif no suchLaneexists. -
openLane
RegisterslanewithlaneUriand returnslane. -
agents
FingerTrieSeq<Agent> agents() -
getAgent
-
getAgent
-
getAgent
-
openAgent
-
openAgent
-
openAgent
-
openAgent
-
openAgent
-
openAgent
-
closeAgent
-
closeAgent
-