- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.agent.AgentView
-
- All Implemented Interfaces:
swim.api.agent.AgentContext,swim.api.downlink.DownlinkFactory,swim.api.lane.LaneFactory,swim.api.ref.SwimRef,swim.api.store.Store,CellContext,TierBinding,TierContext,swim.util.Log
public class AgentView extends AbstractTierBinding implements TierContext, swim.api.agent.AgentContext
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.api.agent.Agentagentprotected swim.structure.Valueidprotected AgentModelnodeprotected swim.structure.Valueprops-
Fields inherited from class swim.runtime.AbstractTierBinding
CLOSED_PHASE, CLOSED_STATE, CLOSING_STATE, FAILED_STATE, FAILING_STATE, LOADED_PHASE, LOADED_STATE, LOADING_STATE, OPENED_PHASE, OPENED_STATE, OPENING_STATE, PHASE_MASK, PHASE_SHIFT, RECOVERING_STATE, STARTED_PHASE, STARTED_STATE, STARTING_STATE, STATE_MASK, status, STATUS, STOPPING_STATE, UNLOADING_STATE
-
-
Constructor Summary
Constructors Constructor Description AgentView(AgentModel node, swim.structure.Value id, swim.structure.Value props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description swim.api.agent.Agentagent()swim.structure.ValueagentId()swim.collections.FingerTrieSeq<swim.api.agent.Agent>agents()swim.concurrent.StageasyncStage()LinkBindingbindDownlink(swim.api.Downlink downlink)<T> TbottomNode(Class<T> nodeClass)NodeAddresscellAddress()voidcloseAgent(String name)voidcloseAgent(swim.structure.Value id)voidcloseDownlink(LinkBinding link)<V> swim.api.lane.CommandLane<V>commandLane()<A extends swim.api.agent.Agent>
swim.api.agent.AgentFactory<A>createAgentFactory(Class<? extends A> agentClass)voiddebug(Object message)<V> swim.api.lane.DemandLane<V>demandLane()<K,V>
swim.api.lane.DemandMapLane<K,V>demandMapLane()voiddidClose()voiddidFail(Throwable error)voiddidLoad()voiddidOpen()voiddidStart()voiddidStop()voiddidUnload()StringedgeName()voiderror(Object message)voidfail(Object message)swim.api.data.SpatialData<swim.structure.Value,swim.math.R2Shape,swim.structure.Value>geospatialData(String name)swim.api.data.SpatialData<swim.structure.Value,swim.math.R2Shape,swim.structure.Value>geospatialData(swim.structure.Value name)<K,V>
swim.api.lane.SpatialLane<K,swim.math.R2Shape,V>geospatialLane()<A extends swim.api.agent.Agent>
AgetAgent(Class<? extends A> agentClass)swim.api.agent.AgentgetAgent(String name)swim.api.agent.AgentgetAgent(swim.structure.Value id)swim.api.LanegetLane(swim.uri.Uri laneUri)swim.structure.ValuegetProp(String name)swim.structure.ValuegetProp(swim.structure.Value key)swim.uri.UrihostUri()<V> swim.api.http.HttpLane<V>httpLane()voidinfo(Object message)<L,K,V>
swim.api.lane.JoinMapLane<L,K,V>joinMapLane()<K,V>
swim.api.lane.JoinValueLane<K,V>joinValueLane()swim.api.Lanelane()swim.api.Linklink()swim.api.data.ListData<swim.structure.Value>listData(String name)swim.api.data.ListData<swim.structure.Value>listData(swim.structure.Value name)<V> swim.api.lane.ListLane<V>listLane()swim.api.data.MapData<swim.structure.Value,swim.structure.Value>mapData(String name)swim.api.data.MapData<swim.structure.Value,swim.structure.Value>mapData(swim.structure.Value name)<K,V>
swim.api.lane.MapLane<K,V>mapLane()swim.uri.UrimeshUri()swim.uri.UrinodeUri()<A extends swim.api.agent.Agent>
AopenAgent(String name, Class<? extends A> agentClass)<A extends swim.api.agent.Agent>
AopenAgent(String name, swim.api.agent.AgentFactory<A> agentFactory)<A extends swim.api.agent.Agent>
AopenAgent(swim.structure.Value id, Class<? extends A> agentClass)<A extends swim.api.agent.Agent>
AopenAgent(swim.structure.Value id, swim.api.agent.AgentFactory<A> agentFactory)<A extends swim.api.agent.Agent>
AopenAgent(swim.structure.Value id, swim.structure.Value props, Class<? extends A> agentClass)<A extends swim.api.agent.Agent>
AopenAgent(swim.structure.Value id, swim.structure.Value props, swim.api.agent.AgentFactory<A> agentFactory)voidopenDownlink(LinkBinding link)swim.api.LaneopenLane(swim.uri.Uri laneUri, swim.api.Lane lane)voidopenMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)swim.api.policy.Policypolicy()swim.structure.Valueprops()voidpushDown(Push<?> push)voidreportDown(Metric metric)swim.concurrent.Scheduleschedule()<S> swim.api.data.SpatialData<swim.structure.Value,S,swim.structure.Value>spatialData(String name, swim.math.Z2Form<S> shapeForm)<S> swim.api.data.SpatialData<swim.structure.Value,S,swim.structure.Value>spatialData(swim.structure.Value name, swim.math.Z2Form<S> shapeForm)<K,S,V>
swim.api.lane.SpatialLane<K,S,V>spatialLane(swim.math.Z2Form<S> shapeForm)swim.concurrent.Stagestage()swim.store.StoreBindingstore()<V> swim.api.lane.SupplyLane<V>supplyLane()TierContexttierContext()voidtrace(Object message)<T> TunwrapNode(Class<T> nodeClass)swim.api.data.ValueData<swim.structure.Value>valueData(String name)swim.api.data.ValueData<swim.structure.Value>valueData(swim.structure.Value name)<V> swim.api.lane.ValueLane<V>valueLane()voidwarn(Object message)voidwillClose()voidwillLoad()voidwillOpen()voidwillStart()voidwillStop()voidwillUnload()<I,O>
swim.api.ws.WsLane<I,O>wsLane()-
Methods inherited from class swim.runtime.AbstractTierBinding
activate, close, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload
-
Methods inherited from class swim.runtime.AbstractSwimRef
command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, downlinkWs, hostRef, hostRef, laneRef, laneRef, laneRef, laneRef, nodeRef, nodeRef, nodeRef, nodeRef
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.api.downlink.DownlinkFactory
downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, downlinkWs
-
Methods inherited from interface swim.api.ref.SwimRef
close, command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, hostRef, hostRef, laneRef, laneRef, laneRef, laneRef, nodeRef, nodeRef, nodeRef, nodeRef
-
Methods inherited from interface swim.runtime.TierContext
close
-
-
-
-
Field Detail
-
node
protected final AgentModel node
-
id
protected final swim.structure.Value id
-
props
protected final swim.structure.Value props
-
agent
protected swim.api.agent.Agent agent
-
-
Constructor Detail
-
AgentView
public AgentView(AgentModel node, swim.structure.Value id, swim.structure.Value props)
-
-
Method Detail
-
agent
public final swim.api.agent.Agent agent()
-
tierContext
public TierContext tierContext()
- Specified by:
tierContextin interfaceTierBinding- Specified by:
tierContextin classAbstractTierBinding
-
unwrapNode
public <T> T unwrapNode(Class<T> nodeClass)
-
bottomNode
public <T> T bottomNode(Class<T> nodeClass)
-
cellAddress
public NodeAddress cellAddress()
- Specified by:
cellAddressin interfaceCellContext
-
edgeName
public final String edgeName()
- Specified by:
edgeNamein interfaceCellContext
-
meshUri
public final swim.uri.Uri meshUri()
- Specified by:
meshUriin interfaceCellContext
-
hostUri
public final swim.uri.Uri hostUri()
- Specified by:
hostUriin interfaceswim.api.agent.AgentContext
-
nodeUri
public final swim.uri.Uri nodeUri()
- Specified by:
nodeUriin interfaceswim.api.agent.AgentContext
-
agentId
public final swim.structure.Value agentId()
- Specified by:
agentIdin interfaceswim.api.agent.AgentContext
-
props
public final swim.structure.Value props()
- Specified by:
propsin interfaceswim.api.agent.AgentContext
-
getProp
public swim.structure.Value getProp(swim.structure.Value key)
- Specified by:
getPropin interfaceswim.api.agent.AgentContext
-
getProp
public swim.structure.Value getProp(String name)
- Specified by:
getPropin interfaceswim.api.agent.AgentContext
-
policy
public swim.api.policy.Policy policy()
- Specified by:
policyin interfaceCellContext
-
schedule
public swim.concurrent.Schedule schedule()
- Specified by:
schedulein interfaceswim.api.agent.AgentContext- Specified by:
schedulein interfaceCellContext
-
stage
public swim.concurrent.Stage stage()
- Specified by:
stagein interfaceswim.api.agent.AgentContext- Specified by:
stagein interfaceCellContext
-
asyncStage
public swim.concurrent.Stage asyncStage()
- Specified by:
asyncStagein interfaceswim.api.agent.AgentContext
-
store
public swim.store.StoreBinding store()
- Specified by:
storein interfaceCellContext
-
lane
public swim.api.Lane lane()
- Specified by:
lanein interfaceswim.api.agent.AgentContext
-
link
public swim.api.Link link()
- Specified by:
linkin interfaceswim.api.agent.AgentContext
-
getLane
public swim.api.Lane getLane(swim.uri.Uri laneUri)
- Specified by:
getLanein interfaceswim.api.agent.AgentContext
-
openLane
public swim.api.Lane openLane(swim.uri.Uri laneUri, swim.api.Lane lane)- Specified by:
openLanein interfaceswim.api.agent.AgentContext
-
agents
public swim.collections.FingerTrieSeq<swim.api.agent.Agent> agents()
- Specified by:
agentsin interfaceswim.api.agent.AgentContext
-
getAgent
public swim.api.agent.Agent getAgent(swim.structure.Value id)
- Specified by:
getAgentin interfaceswim.api.agent.AgentContext
-
getAgent
public swim.api.agent.Agent getAgent(String name)
- Specified by:
getAgentin interfaceswim.api.agent.AgentContext
-
getAgent
public <A extends swim.api.agent.Agent> A getAgent(Class<? extends A> agentClass)
- Specified by:
getAgentin interfaceswim.api.agent.AgentContext
-
createAgentFactory
public <A extends swim.api.agent.Agent> swim.api.agent.AgentFactory<A> createAgentFactory(Class<? extends A> agentClass)
-
openAgent
public <A extends swim.api.agent.Agent> A openAgent(swim.structure.Value id, swim.structure.Value props, swim.api.agent.AgentFactory<A> agentFactory)- Specified by:
openAgentin interfaceswim.api.agent.AgentContext
-
openAgent
public <A extends swim.api.agent.Agent> A openAgent(swim.structure.Value id, swim.api.agent.AgentFactory<A> agentFactory)- Specified by:
openAgentin interfaceswim.api.agent.AgentContext
-
openAgent
public <A extends swim.api.agent.Agent> A openAgent(String name, swim.api.agent.AgentFactory<A> agentFactory)
- Specified by:
openAgentin interfaceswim.api.agent.AgentContext
-
openAgent
public <A extends swim.api.agent.Agent> A openAgent(swim.structure.Value id, swim.structure.Value props, Class<? extends A> agentClass)- Specified by:
openAgentin interfaceswim.api.agent.AgentContext
-
openAgent
public <A extends swim.api.agent.Agent> A openAgent(swim.structure.Value id, Class<? extends A> agentClass)- Specified by:
openAgentin interfaceswim.api.agent.AgentContext
-
openAgent
public <A extends swim.api.agent.Agent> A openAgent(String name, Class<? extends A> agentClass)
- Specified by:
openAgentin interfaceswim.api.agent.AgentContext
-
closeAgent
public void closeAgent(swim.structure.Value id)
- Specified by:
closeAgentin interfaceswim.api.agent.AgentContext
-
closeAgent
public void closeAgent(String name)
- Specified by:
closeAgentin interfaceswim.api.agent.AgentContext
-
commandLane
public <V> swim.api.lane.CommandLane<V> commandLane()
- Specified by:
commandLanein interfaceswim.api.lane.LaneFactory
-
demandLane
public <V> swim.api.lane.DemandLane<V> demandLane()
- Specified by:
demandLanein interfaceswim.api.lane.LaneFactory
-
demandMapLane
public <K,V> swim.api.lane.DemandMapLane<K,V> demandMapLane()
- Specified by:
demandMapLanein interfaceswim.api.lane.LaneFactory
-
httpLane
public <V> swim.api.http.HttpLane<V> httpLane()
- Specified by:
httpLanein interfaceswim.api.lane.LaneFactory
-
joinMapLane
public <L,K,V> swim.api.lane.JoinMapLane<L,K,V> joinMapLane()
- Specified by:
joinMapLanein interfaceswim.api.lane.LaneFactory
-
joinValueLane
public <K,V> swim.api.lane.JoinValueLane<K,V> joinValueLane()
- Specified by:
joinValueLanein interfaceswim.api.lane.LaneFactory
-
listLane
public <V> swim.api.lane.ListLane<V> listLane()
- Specified by:
listLanein interfaceswim.api.lane.LaneFactory
-
mapLane
public <K,V> swim.api.lane.MapLane<K,V> mapLane()
- Specified by:
mapLanein interfaceswim.api.lane.LaneFactory
-
spatialLane
public <K,S,V> swim.api.lane.SpatialLane<K,S,V> spatialLane(swim.math.Z2Form<S> shapeForm)
- Specified by:
spatialLanein interfaceswim.api.lane.LaneFactory
-
geospatialLane
public <K,V> swim.api.lane.SpatialLane<K,swim.math.R2Shape,V> geospatialLane()
- Specified by:
geospatialLanein interfaceswim.api.lane.LaneFactory
-
supplyLane
public <V> swim.api.lane.SupplyLane<V> supplyLane()
- Specified by:
supplyLanein interfaceswim.api.lane.LaneFactory
-
valueLane
public <V> swim.api.lane.ValueLane<V> valueLane()
- Specified by:
valueLanein interfaceswim.api.lane.LaneFactory
-
wsLane
public <I,O> swim.api.ws.WsLane<I,O> wsLane()
- Specified by:
wsLanein interfaceswim.api.lane.LaneFactory
-
listData
public swim.api.data.ListData<swim.structure.Value> listData(swim.structure.Value name)
- Specified by:
listDatain interfaceswim.api.store.Store
-
listData
public swim.api.data.ListData<swim.structure.Value> listData(String name)
- Specified by:
listDatain interfaceswim.api.store.Store
-
mapData
public swim.api.data.MapData<swim.structure.Value,swim.structure.Value> mapData(swim.structure.Value name)
- Specified by:
mapDatain interfaceswim.api.store.Store
-
mapData
public swim.api.data.MapData<swim.structure.Value,swim.structure.Value> mapData(String name)
- Specified by:
mapDatain interfaceswim.api.store.Store
-
spatialData
public <S> swim.api.data.SpatialData<swim.structure.Value,S,swim.structure.Value> spatialData(swim.structure.Value name, swim.math.Z2Form<S> shapeForm)- Specified by:
spatialDatain interfaceswim.api.store.Store
-
spatialData
public <S> swim.api.data.SpatialData<swim.structure.Value,S,swim.structure.Value> spatialData(String name, swim.math.Z2Form<S> shapeForm)
- Specified by:
spatialDatain interfaceswim.api.store.Store
-
geospatialData
public swim.api.data.SpatialData<swim.structure.Value,swim.math.R2Shape,swim.structure.Value> geospatialData(swim.structure.Value name)
- Specified by:
geospatialDatain interfaceswim.api.store.Store
-
geospatialData
public swim.api.data.SpatialData<swim.structure.Value,swim.math.R2Shape,swim.structure.Value> geospatialData(String name)
- Specified by:
geospatialDatain interfaceswim.api.store.Store
-
valueData
public swim.api.data.ValueData<swim.structure.Value> valueData(swim.structure.Value name)
- Specified by:
valueDatain interfaceswim.api.store.Store
-
valueData
public swim.api.data.ValueData<swim.structure.Value> valueData(String name)
- Specified by:
valueDatain interfaceswim.api.store.Store
-
bindDownlink
public LinkBinding bindDownlink(swim.api.Downlink downlink)
- Specified by:
bindDownlinkin interfaceCellContext
-
openDownlink
public void openDownlink(LinkBinding link)
- Specified by:
openDownlinkin interfaceCellContext
-
closeDownlink
public void closeDownlink(LinkBinding link)
- Specified by:
closeDownlinkin interfaceCellContext
-
pushDown
public void pushDown(Push<?> push)
- Specified by:
pushDownin interfaceCellContext
-
reportDown
public void reportDown(Metric metric)
- Specified by:
reportDownin interfaceCellContext
-
openMetaDownlink
public void openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
- Specified by:
openMetaDownlinkin interfaceCellContext
-
trace
public void trace(Object message)
- Specified by:
tracein interfaceswim.util.Log
-
debug
public void debug(Object message)
- Specified by:
debugin interfaceswim.util.Log
-
info
public void info(Object message)
- Specified by:
infoin interfaceswim.util.Log
-
warn
public void warn(Object message)
- Specified by:
warnin interfaceswim.util.Log
-
error
public void error(Object message)
- Specified by:
errorin interfaceswim.util.Log
-
fail
public void fail(Object message)
- Specified by:
failin interfaceswim.util.Log
-
willOpen
public void willOpen()
- Specified by:
willOpenin interfaceTierContext- Overrides:
willOpenin classAbstractTierBinding
-
didOpen
public void didOpen()
- Specified by:
didOpenin interfaceTierContext- Overrides:
didOpenin classAbstractTierBinding
-
willLoad
public void willLoad()
- Specified by:
willLoadin interfaceTierContext- Overrides:
willLoadin classAbstractTierBinding
-
didLoad
public void didLoad()
- Specified by:
didLoadin interfaceTierContext- Overrides:
didLoadin classAbstractTierBinding
-
willStart
public void willStart()
- Specified by:
willStartin interfaceTierContext- Overrides:
willStartin classAbstractTierBinding
-
didStart
public void didStart()
- Specified by:
didStartin interfaceTierContext- Overrides:
didStartin classAbstractTierBinding
-
willStop
public void willStop()
- Specified by:
willStopin interfaceTierContext- Overrides:
willStopin classAbstractTierBinding
-
didStop
public void didStop()
- Specified by:
didStopin interfaceTierContext- Overrides:
didStopin classAbstractTierBinding
-
willUnload
public void willUnload()
- Specified by:
willUnloadin interfaceTierContext- Overrides:
willUnloadin classAbstractTierBinding
-
didUnload
public void didUnload()
- Specified by:
didUnloadin interfaceTierContext- Overrides:
didUnloadin classAbstractTierBinding
-
willClose
public void willClose()
- Specified by:
willClosein interfaceTierContext- Overrides:
willClosein classAbstractTierBinding
-
didClose
public void didClose()
- Specified by:
didClosein interfaceTierBinding- Overrides:
didClosein classAbstractTierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFailin interfaceTierBinding- Overrides:
didFailin classAbstractTierBinding
-
-