- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.agent.AgentView
-
- All Implemented Interfaces:
swim.api.agent.AgentContext,swim.api.data.DataFactory,swim.api.downlink.DownlinkFactory,swim.api.lane.LaneFactory,swim.api.ref.SwimRef,CellContext,TierBinding,TierContext,swim.store.StoreContext,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 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 props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S extends swim.api.agent.Agent>
SaddTrait(String name, Class<S> agentClass)<S extends swim.api.agent.Agent>
SaddTrait(String name, swim.api.agent.AgentFactory<S> agentFactory)<S extends swim.api.agent.Agent>
SaddTrait(swim.structure.Value props, Class<S> agentClass)<S extends swim.api.agent.Agent>
SaddTrait(swim.structure.Value props, swim.api.agent.AgentFactory<S> agentFactory)swim.api.agent.Agentagent()swim.api.agent.AgentType<?>agentType()LinkBindingbindDownlink(swim.api.downlink.Downlink downlink)voidcloseDownlink(LinkBinding link)<V> swim.api.lane.CommandLane<V>commandLane()swim.api.data.DataFactorydata()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()voiderror(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()swim.api.lane.LanegetLane(swim.uri.Uri laneUri)swim.structure.ValuegetProp(String name)swim.structure.ValuegetProp(swim.structure.Value key)<S extends swim.api.agent.Agent>
SgetTrait(Class<S> agentClass)<S extends swim.api.agent.Agent>
SgetTrait(String name)<S extends swim.api.agent.Agent>
SgetTrait(swim.structure.Value props)swim.uri.UrihostUri()voidhttpDownlink(HttpBinding http)voidinfo(Object message)swim.store.ListDataBindinginjectListData(swim.store.ListDataBinding dataBinding)swim.store.MapDataBindinginjectMapData(swim.store.MapDataBinding dataBinding)<S> swim.store.SpatialDataBinding<S>injectSpatialData(swim.store.SpatialDataBinding<S> dataBinding)swim.store.ValueDataBindinginjectValueData(swim.store.ValueDataBinding dataBinding)<L,K,V>
swim.api.lane.JoinMapLane<L,K,V>joinMapLane()<K,V>
swim.api.lane.JoinValueLane<K,V>joinValueLane()swim.api.lane.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()voidopenDownlink(LinkBinding link)swim.api.lane.LaneopenLane(swim.uri.Uri laneUri, swim.api.lane.Lane lane)swim.store.ListDataBindingopenListData(swim.structure.Value name)swim.store.MapDataBindingopenMapData(swim.structure.Value name)<S> swim.store.SpatialDataBinding<S>openSpatialData(swim.structure.Value name, swim.math.Z2Form<S> shapeForm)swim.store.ValueDataBindingopenValueData(swim.structure.Value name)swim.api.policy.Policypolicy()swim.structure.Valueprops()voidpushDown(PushRequest pushRequest)voidremoveTrait(String name)voidremoveTrait(swim.structure.Value props)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()<V> swim.api.lane.SupplyLane<V>supplyLane()TierContexttierContext()voidtrace(Object message)swim.collections.FingerTrieSeq<swim.api.agent.Agent>traits()<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()-
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, downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, 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
-
Methods inherited from interface swim.api.ref.SwimRef
close, 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
-
props
protected final swim.structure.Value props
-
agent
protected swim.api.agent.Agent agent
-
-
Constructor Detail
-
AgentView
public AgentView(AgentModel node, 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)
-
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
-
agentType
public final swim.api.agent.AgentType<?> agentType()
- Specified by:
agentTypein 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
-
data
public swim.api.data.DataFactory data()
- Specified by:
datain interfaceCellContext
-
lane
public swim.api.lane.Lane lane()
- Specified by:
lanein interfaceswim.api.agent.AgentContext
-
link
public swim.api.Link link()
- Specified by:
linkin interfaceswim.api.agent.AgentContext
-
traits
public swim.collections.FingerTrieSeq<swim.api.agent.Agent> traits()
- Specified by:
traitsin interfaceswim.api.agent.AgentContext
-
getTrait
public <S extends swim.api.agent.Agent> S getTrait(swim.structure.Value props)
- Specified by:
getTraitin interfaceswim.api.agent.AgentContext
-
getTrait
public <S extends swim.api.agent.Agent> S getTrait(String name)
- Specified by:
getTraitin interfaceswim.api.agent.AgentContext
-
getTrait
public <S extends swim.api.agent.Agent> S getTrait(Class<S> agentClass)
- Specified by:
getTraitin interfaceswim.api.agent.AgentContext
-
addTrait
public <S extends swim.api.agent.Agent> S addTrait(swim.structure.Value props, swim.api.agent.AgentFactory<S> agentFactory)- Specified by:
addTraitin interfaceswim.api.agent.AgentContext
-
addTrait
public <S extends swim.api.agent.Agent> S addTrait(String name, swim.api.agent.AgentFactory<S> agentFactory)
- Specified by:
addTraitin interfaceswim.api.agent.AgentContext
-
addTrait
public <S extends swim.api.agent.Agent> S addTrait(swim.structure.Value props, Class<S> agentClass)- Specified by:
addTraitin interfaceswim.api.agent.AgentContext
-
addTrait
public <S extends swim.api.agent.Agent> S addTrait(String name, Class<S> agentClass)
- Specified by:
addTraitin interfaceswim.api.agent.AgentContext
-
removeTrait
public void removeTrait(swim.structure.Value props)
- Specified by:
removeTraitin interfaceswim.api.agent.AgentContext
-
removeTrait
public void removeTrait(String name)
- Specified by:
removeTraitin interfaceswim.api.agent.AgentContext
-
getLane
public swim.api.lane.Lane getLane(swim.uri.Uri laneUri)
- Specified by:
getLanein interfaceswim.api.agent.AgentContext
-
openLane
public swim.api.lane.Lane openLane(swim.uri.Uri laneUri, swim.api.lane.Lane lane)- Specified by:
openLanein 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
-
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
-
listData
public swim.api.data.ListData<swim.structure.Value> listData(swim.structure.Value name)
- Specified by:
listDatain interfaceswim.api.data.DataFactory
-
listData
public swim.api.data.ListData<swim.structure.Value> listData(String name)
- Specified by:
listDatain interfaceswim.api.data.DataFactory
-
mapData
public swim.api.data.MapData<swim.structure.Value,swim.structure.Value> mapData(swim.structure.Value name)
- Specified by:
mapDatain interfaceswim.api.data.DataFactory
-
mapData
public swim.api.data.MapData<swim.structure.Value,swim.structure.Value> mapData(String name)
- Specified by:
mapDatain interfaceswim.api.data.DataFactory
-
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.data.DataFactory
-
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.data.DataFactory
-
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.data.DataFactory
-
geospatialData
public swim.api.data.SpatialData<swim.structure.Value,swim.math.R2Shape,swim.structure.Value> geospatialData(String name)
- Specified by:
geospatialDatain interfaceswim.api.data.DataFactory
-
valueData
public swim.api.data.ValueData<swim.structure.Value> valueData(swim.structure.Value name)
- Specified by:
valueDatain interfaceswim.api.data.DataFactory
-
valueData
public swim.api.data.ValueData<swim.structure.Value> valueData(String name)
- Specified by:
valueDatain interfaceswim.api.data.DataFactory
-
openListData
public swim.store.ListDataBinding openListData(swim.structure.Value name)
- Specified by:
openListDatain interfaceswim.store.StoreContext
-
injectListData
public swim.store.ListDataBinding injectListData(swim.store.ListDataBinding dataBinding)
- Specified by:
injectListDatain interfaceswim.store.StoreContext
-
openMapData
public swim.store.MapDataBinding openMapData(swim.structure.Value name)
- Specified by:
openMapDatain interfaceswim.store.StoreContext
-
injectMapData
public swim.store.MapDataBinding injectMapData(swim.store.MapDataBinding dataBinding)
- Specified by:
injectMapDatain interfaceswim.store.StoreContext
-
openSpatialData
public <S> swim.store.SpatialDataBinding<S> openSpatialData(swim.structure.Value name, swim.math.Z2Form<S> shapeForm)- Specified by:
openSpatialDatain interfaceswim.store.StoreContext
-
injectSpatialData
public <S> swim.store.SpatialDataBinding<S> injectSpatialData(swim.store.SpatialDataBinding<S> dataBinding)
- Specified by:
injectSpatialDatain interfaceswim.store.StoreContext
-
openValueData
public swim.store.ValueDataBinding openValueData(swim.structure.Value name)
- Specified by:
openValueDatain interfaceswim.store.StoreContext
-
injectValueData
public swim.store.ValueDataBinding injectValueData(swim.store.ValueDataBinding dataBinding)
- Specified by:
injectValueDatain interfaceswim.store.StoreContext
-
bindDownlink
public LinkBinding bindDownlink(swim.api.downlink.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
-
httpDownlink
public void httpDownlink(HttpBinding http)
- Specified by:
httpDownlinkin interfaceCellContext
-
pushDown
public void pushDown(PushRequest pushRequest)
- Specified by:
pushDownin 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
-
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
-
-