java.lang.Object
swim.system.AbstractWarpRef
swim.system.AbstractTierBinding
swim.system.LaneView
swim.system.warp.WarpLaneView
swim.system.lane.SpatialLaneView<K,S,V>
- All Implemented Interfaces:
Iterable<SpatialMap.Entry<K,
,S, V>> DownlinkFactory
,Lane
,SpatialLane<K,
,S, V> WarpRef
,WarpLane
,Observable<Object>
,ObservableSpatialMap<K,
,S, V> SpatialMap<K,
,S, V> CellContext
,TierBinding
,Log
-
Nested Class Summary
Nested classes/interfaces inherited from interface swim.spatial.SpatialMap
SpatialMap.Entry<K,
S, V>, SpatialMap.SimpleEntry<K, S, V> -
Field Summary
Modifier and TypeFieldDescriptionprotected final AgentContext
protected SpatialData<K,
S, V> protected int
protected SpatialLaneModel<S>
Fields inherited from class swim.system.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
ConstructorDescriptionSpatialLaneView
(AgentContext agentContext, Form<K> keyForm, Z2Form<S> shapeForm, Form<V> valueForm) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
close()
boolean
containsKey
(Object key) boolean
containsKey
(K key, S shape) boolean
containsValue
(Object value) SpatialLane<K,
S, V> didCommand
(DidCommand didCommand) SpatialLane<K,
S, V> didMove
(DidMoveShape<K, S, V> didMove) SpatialLane<K,
S, V> didRemove
(DidRemoveShape<K, S, V> didRemove) SpatialLane<K,
S, V> didUpdate
(DidUpdateShape<K, S, V> didUpdate) boolean
dispatchDidClear
(Link link, boolean preemptive) boolean
dispatchDidMove
(Link link, K key, S newShape, V newValue, S oldShape, V oldValue, boolean preemptive) boolean
dispatchDidRemove
(Link link, K key, S shape, V oldValue, boolean preemptive) boolean
boolean
dispatchWillClear
(Link link, boolean preemptive) boolean
dispatchWillRemove
(Link link, K key, S shape, boolean preemptive) dispatchWillUpdate
(Link link, K key, S shape, V newValue, boolean preemptive) boolean
isEmpty()
final boolean
SpatialLane<K,
S, V> isResident
(boolean isResident) final boolean
SpatialLane<K,
S, V> isTransient
(boolean isTransient) iterator()
<K2> SpatialLane<K2,
S, V> keyForm()
<K2> SpatialLane<K2,
S, V> void
void
laneDidRemove
(K key, S shape) void
laneDidUpdate
(K key, S shape, V newValue, V oldValue) void
laneWillMove
(K key, S newShape, V newValue, S oldShape) void
laneWillRemove
(K key, S shape) laneWillUpdate
(K key, S shape, V newValue) void
setKeyForm
(Form<K> keyForm) void
setLaneBinding
(SpatialLaneModel<S> laneBinding) void
setValueForm
(Form<V> valueForm) int
size()
SpatialMap<K,
S, V> snapshot()
protected Object
typesafeObservers
(Object observers) <V2> SpatialLane<K,
S, V2> valueClass
(Class<V2> valueClass) <V2> SpatialLane<K,
S, V2> SpatialLane<K,
S, V> willCommand
(WillCommand willCommand) protected void
willLoad()
SpatialLane<K,
S, V> willMove
(WillMoveShape<K, S, V> willMove) SpatialLane<K,
S, V> willRemove
(WillRemoveShape<K, S> willRemove) SpatialLane<K,
S, V> willUpdate
(WillUpdateShape<K, S, V> willUpdate) willUplink
(WillUplink willUplink) Methods inherited from class swim.system.warp.WarpLaneView
dispatchDidCommand, dispatchDidEnter, dispatchDidLeave, dispatchDidUplink, dispatchWillCommand, dispatchWillEnter, dispatchWillLeave, dispatchWillUplink, laneDidCommand, laneDidEnter, laneDidLeave, laneDidUplink, laneWillCommand, laneWillEnter, laneWillLeave, laneWillUplink
Methods inherited from class swim.system.LaneView
bindDownlink, bottomLane, cellAddress, closeDownlink, debug, edgeName, error, fail, hostUri, info, laneContext, laneDidFail, laneUri, meshUri, nodeUri, openDownlink, openMetaDownlink, policy, pushDown, reportDown, schedule, stage, store, tierContext, trace, unwrapLane, warn
Methods inherited from class swim.system.AbstractTierBinding
activate, awaitStart, didClose, didFail, didLoad, didOpen, didStart, didStop, didUnload, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload, willClose, willOpen, willStart, willStop, willUnload
Methods inherited from class swim.system.AbstractWarpRef
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 java.lang.Iterable
forEach, spliterator
-
Field Details
-
agentContext
-
keyForm
-
shapeForm
-
valueForm
-
laneBinding
-
dataView
-
flags
protected int flags
-
-
Constructor Details
-
SpatialLaneView
-
-
Method Details
-
agentContext
- Specified by:
agentContext
in classLaneView
-
laneBinding
- Specified by:
laneBinding
in classLaneView
-
setLaneBinding
-
createLaneBinding
- Specified by:
createLaneBinding
in classLaneView
-
keyForm
- Specified by:
keyForm
in interfaceSpatialLane<K,
S, V>
-
keyForm
- Specified by:
keyForm
in interfaceSpatialLane<K,
S, V>
-
keyClass
- Specified by:
keyClass
in interfaceSpatialLane<K,
S, V>
-
setKeyForm
-
valueForm
- Specified by:
valueForm
in interfaceSpatialLane<K,
S, V>
-
valueForm
- Specified by:
valueForm
in interfaceSpatialLane<K,
S, V>
-
valueClass
- Specified by:
valueClass
in interfaceSpatialLane<K,
S, V>
-
setValueForm
-
typesafeObservers
-
isResident
public final boolean isResident()- Specified by:
isResident
in interfaceSpatialLane<K,
S, V>
-
isResident
- Specified by:
isResident
in interfaceSpatialLane<K,
S, V>
-
isTransient
public final boolean isTransient()- Specified by:
isTransient
in interfaceSpatialLane<K,
S, V>
-
isTransient
- Specified by:
isTransient
in interfaceSpatialLane<K,
S, V>
-
willLoad
protected void willLoad()- Overrides:
willLoad
in classAbstractTierBinding
-
close
public void close() -
observe
- Specified by:
observe
in interfaceLane
- Specified by:
observe
in interfaceObservable<K>
- Specified by:
observe
in interfaceObservableSpatialMap<K,
S, V> - Specified by:
observe
in interfaceSpatialLane<K,
S, V> - Specified by:
observe
in interfaceWarpLane
- Overrides:
observe
in classWarpLaneView
-
unobserve
- Specified by:
unobserve
in interfaceLane
- Specified by:
unobserve
in interfaceObservable<K>
- Specified by:
unobserve
in interfaceObservableSpatialMap<K,
S, V> - Specified by:
unobserve
in interfaceSpatialLane<K,
S, V> - Specified by:
unobserve
in interfaceWarpLane
- Overrides:
unobserve
in classWarpLaneView
-
willUpdate
- Specified by:
willUpdate
in interfaceObservableSpatialMap<K,
S, V> - Specified by:
willUpdate
in interfaceSpatialLane<K,
S, V>
-
didUpdate
- Specified by:
didUpdate
in interfaceObservableSpatialMap<K,
S, V> - Specified by:
didUpdate
in interfaceSpatialLane<K,
S, V>
-
willMove
- Specified by:
willMove
in interfaceObservableSpatialMap<K,
S, V> - Specified by:
willMove
in interfaceSpatialLane<K,
S, V>
-
didMove
- Specified by:
didMove
in interfaceObservableSpatialMap<K,
S, V> - Specified by:
didMove
in interfaceSpatialLane<K,
S, V>
-
willRemove
- Specified by:
willRemove
in interfaceObservableSpatialMap<K,
S, V> - Specified by:
willRemove
in interfaceSpatialLane<K,
S, V>
-
didRemove
- Specified by:
didRemove
in interfaceObservableSpatialMap<K,
S, V> - Specified by:
didRemove
in interfaceSpatialLane<K,
S, V>
-
willClear
- Specified by:
willClear
in interfaceObservableSpatialMap<K,
S, V> - Specified by:
willClear
in interfaceSpatialLane<K,
S, V>
-
didClear
- Specified by:
didClear
in interfaceObservableSpatialMap<K,
S, V> - Specified by:
didClear
in interfaceSpatialLane<K,
S, V>
-
willCommand
- Specified by:
willCommand
in interfaceSpatialLane<K,
S, V> - Specified by:
willCommand
in interfaceWarpLane
- Specified by:
willCommand
in classWarpLaneView
-
didCommand
- Specified by:
didCommand
in interfaceSpatialLane<K,
S, V> - Specified by:
didCommand
in interfaceWarpLane
- Specified by:
didCommand
in classWarpLaneView
-
willUplink
- Specified by:
willUplink
in interfaceSpatialLane<K,
S, V> - Specified by:
willUplink
in interfaceWarpLane
- Specified by:
willUplink
in classWarpLaneView
-
didUplink
- Specified by:
didUplink
in interfaceSpatialLane<K,
S, V> - Specified by:
didUplink
in interfaceWarpLane
- Specified by:
didUplink
in classWarpLaneView
-
willEnter
- Specified by:
willEnter
in interfaceSpatialLane<K,
S, V> - Specified by:
willEnter
in interfaceWarpLane
- Specified by:
willEnter
in classWarpLaneView
-
didEnter
- Specified by:
didEnter
in interfaceSpatialLane<K,
S, V> - Specified by:
didEnter
in interfaceWarpLane
- Specified by:
didEnter
in classWarpLaneView
-
willLeave
- Specified by:
willLeave
in interfaceSpatialLane<K,
S, V> - Specified by:
willLeave
in interfaceWarpLane
- Specified by:
willLeave
in classWarpLaneView
-
didLeave
- Specified by:
didLeave
in interfaceSpatialLane<K,
S, V> - Specified by:
didLeave
in interfaceWarpLane
- Specified by:
didLeave
in classWarpLaneView
-
dispatchWillUpdate
-
dispatchDidUpdate
-
dispatchWillMove
-
dispatchDidMove
-
dispatchWillRemove
-
dispatchDidRemove
-
dispatchWillClear
-
dispatchDidClear
-
laneWillUpdate
-
laneDidUpdate
-
laneWillMove
-
laneDidMove
-
laneWillRemove
-
laneDidRemove
-
laneWillClear
public void laneWillClear() -
laneDidClear
public void laneDidClear() -
snapshot
- Specified by:
snapshot
in interfaceSpatialLane<K,
S, V>
-
iterator
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceSpatialMap<K,
S, V>
-
size
public int size()- Specified by:
size
in interfaceSpatialMap<K,
S, V>
-
containsKey
- Specified by:
containsKey
in interfaceSpatialMap<K,
S, V>
-
containsKey
- Specified by:
containsKey
in interfaceSpatialMap<K,
S, V>
-
containsValue
- Specified by:
containsValue
in interfaceSpatialMap<K,
S, V>
-
get
- Specified by:
get
in interfaceSpatialMap<K,
S, V>
-
get
- Specified by:
get
in interfaceSpatialMap<K,
S, V>
-
put
- Specified by:
put
in interfaceSpatialMap<K,
S, V>
-
move
- Specified by:
move
in interfaceSpatialMap<K,
S, V>
-
remove
- Specified by:
remove
in interfaceSpatialMap<K,
S, V>
-
clear
public void clear()- Specified by:
clear
in interfaceSpatialMap<K,
S, V>
-
iterator
- Specified by:
iterator
in interfaceSpatialMap<K,
S, V>
-
keyIterator
- Specified by:
keyIterator
in interfaceSpatialMap<K,
S, V>
-
valueIterator
- Specified by:
valueIterator
in interfaceSpatialMap<K,
S, V>
-