- 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
public class SpatialLaneView<K,S,V> extends WarpLaneView implements SpatialLane<K,S,V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface swim.spatial.SpatialMap
SpatialMap.Entry<K,S,V>, SpatialMap.SimpleEntry<K,S,V>
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentContextagentContextprotected SpatialData<K,S,V>dataViewprotected intflagsprotected Form<K>keyFormprotected SpatialLaneModel<S>laneBindingprotected Z2Form<S>shapeFormprotected Form<V>valueForm-
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
Constructors Constructor Description SpatialLaneView(AgentContext agentContext, Form<K> keyForm, Z2Form<S> shapeForm, Form<V> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentContextagentContext()voidclear()voidclose()booleancontainsKey(Object key)booleancontainsKey(K key, S shape)booleancontainsValue(Object value)LaneBindingcreateLaneBinding()SpatialLane<K,S,V>didClear(DidClear didClear)SpatialLaneView<K,S,V>didCommand(DidCommand didCommand)SpatialLaneView<K,S,V>didEnter(DidEnter didEnter)SpatialLaneView<K,S,V>didLeave(DidLeave didLeave)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)SpatialLaneView<K,S,V>didUplink(DidUplink didUplink)booleandispatchDidClear(Link link, boolean preemptive)booleandispatchDidMove(Link link, K key, S newShape, V newValue, S oldShape, V oldValue, boolean preemptive)booleandispatchDidRemove(Link link, K key, S shape, V oldValue, boolean preemptive)booleandispatchDidUpdate(Link link, K key, S shape, V newValue, V oldValue, boolean preemptive)booleandispatchWillClear(Link link, boolean preemptive)Map.Entry<Boolean,V>dispatchWillMove(Link link, K key, S newShape, V newValue, S oldShape, boolean preemptive)booleandispatchWillRemove(Link link, K key, S shape, boolean preemptive)Map.Entry<Boolean,V>dispatchWillUpdate(Link link, K key, S shape, V newValue, boolean preemptive)Vget(Object key)Vget(K key, S shape)booleanisEmpty()booleanisResident()SpatialLane<K,S,V>isResident(boolean isResident)booleanisTransient()SpatialLane<K,S,V>isTransient(boolean isTransient)Iterator<SpatialMap.Entry<K,S,V>>iterator()Iterator<SpatialMap.Entry<K,S,V>>iterator(S shape)<K2> SpatialLane<K2,S,V>keyClass(Class<K2> keyClass)Form<K>keyForm()<K2> SpatialLane<K2,S,V>keyForm(Form<K2> keyForm)Iterator<K>keyIterator()SpatialLaneModel<S>laneBinding()voidlaneDidClear()VlaneDidMove(K key, S newShape, V newValue, S oldShape, V oldValue)voidlaneDidRemove(K key, S shape)voidlaneDidUpdate(K key, S shape, V newValue, V oldValue)voidlaneWillClear()VlaneWillMove(K key, S newShape, V newValue, S oldShape)voidlaneWillRemove(K key, S shape)VlaneWillUpdate(K key, S shape, V newValue)Vmove(K key, S oldShape, S newShape, V newValue)SpatialLaneView<K,S,V>observe(Object observer)Vput(K key, S shape, V newValue)Vremove(K key, S shape)voidsetKeyForm(Form<K> keyForm)voidsetLaneBinding(SpatialLaneModel<S> laneBinding)voidsetValueForm(Form<V> valueForm)intsize()SpatialMap<K,S,V>snapshot()protected ObjecttypesafeObservers(Object observers)SpatialLaneView<K,S,V>unobserve(Object observer)<V2> SpatialLane<K,S,V2>valueClass(Class<V2> valueClass)Form<V>valueForm()<V2> SpatialLane<K,S,V2>valueForm(Form<V2> valueForm)Iterator<V>valueIterator()SpatialLane<K,S,V>willClear(WillClear willClear)SpatialLaneView<K,S,V>willCommand(WillCommand willCommand)SpatialLaneView<K,S,V>willEnter(WillEnter willEnter)SpatialLaneView<K,S,V>willLeave(WillLeave willLeave)protected voidwillLoad()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)SpatialLaneView<K,S,V>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 Detail
-
agentContext
protected final AgentContext agentContext
-
laneBinding
protected SpatialLaneModel<S> laneBinding
-
dataView
protected SpatialData<K,S,V> dataView
-
flags
protected int flags
-
-
Method Detail
-
agentContext
public AgentContext agentContext()
- Specified by:
agentContextin classLaneView
-
laneBinding
public SpatialLaneModel<S> laneBinding()
- Specified by:
laneBindingin classLaneView
-
setLaneBinding
public void setLaneBinding(SpatialLaneModel<S> laneBinding)
-
createLaneBinding
public LaneBinding createLaneBinding()
- Specified by:
createLaneBindingin classLaneView
-
keyForm
public <K2> SpatialLane<K2,S,V> keyForm(Form<K2> keyForm)
- Specified by:
keyFormin interfaceSpatialLane<K,S,V>
-
keyClass
public <K2> SpatialLane<K2,S,V> keyClass(Class<K2> keyClass)
- Specified by:
keyClassin interfaceSpatialLane<K,S,V>
-
valueForm
public <V2> SpatialLane<K,S,V2> valueForm(Form<V2> valueForm)
- Specified by:
valueFormin interfaceSpatialLane<K,S,V>
-
valueClass
public <V2> SpatialLane<K,S,V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClassin interfaceSpatialLane<K,S,V>
-
isResident
public final boolean isResident()
- Specified by:
isResidentin interfaceSpatialLane<K,S,V>
-
isResident
public SpatialLane<K,S,V> isResident(boolean isResident)
- Specified by:
isResidentin interfaceSpatialLane<K,S,V>
-
isTransient
public final boolean isTransient()
- Specified by:
isTransientin interfaceSpatialLane<K,S,V>
-
isTransient
public SpatialLane<K,S,V> isTransient(boolean isTransient)
- Specified by:
isTransientin interfaceSpatialLane<K,S,V>
-
willLoad
protected void willLoad()
- Overrides:
willLoadin classAbstractTierBinding
-
close
public void close()
-
observe
public SpatialLaneView<K,S,V> observe(Object observer)
- Specified by:
observein interfaceLane- Specified by:
observein interfaceObservable<K>- Specified by:
observein interfaceObservableSpatialMap<K,S,V>- Specified by:
observein interfaceSpatialLane<K,S,V>- Specified by:
observein interfaceWarpLane- Overrides:
observein classWarpLaneView
-
unobserve
public SpatialLaneView<K,S,V> unobserve(Object observer)
- Specified by:
unobservein interfaceLane- Specified by:
unobservein interfaceObservable<K>- Specified by:
unobservein interfaceObservableSpatialMap<K,S,V>- Specified by:
unobservein interfaceSpatialLane<K,S,V>- Specified by:
unobservein interfaceWarpLane- Overrides:
unobservein classWarpLaneView
-
willUpdate
public SpatialLane<K,S,V> willUpdate(WillUpdateShape<K,S,V> willUpdate)
- Specified by:
willUpdatein interfaceObservableSpatialMap<K,S,V>- Specified by:
willUpdatein interfaceSpatialLane<K,S,V>
-
didUpdate
public SpatialLane<K,S,V> didUpdate(DidUpdateShape<K,S,V> didUpdate)
- Specified by:
didUpdatein interfaceObservableSpatialMap<K,S,V>- Specified by:
didUpdatein interfaceSpatialLane<K,S,V>
-
willMove
public SpatialLane<K,S,V> willMove(WillMoveShape<K,S,V> willMove)
- Specified by:
willMovein interfaceObservableSpatialMap<K,S,V>- Specified by:
willMovein interfaceSpatialLane<K,S,V>
-
didMove
public SpatialLane<K,S,V> didMove(DidMoveShape<K,S,V> didMove)
- Specified by:
didMovein interfaceObservableSpatialMap<K,S,V>- Specified by:
didMovein interfaceSpatialLane<K,S,V>
-
willRemove
public SpatialLane<K,S,V> willRemove(WillRemoveShape<K,S> willRemove)
- Specified by:
willRemovein interfaceObservableSpatialMap<K,S,V>- Specified by:
willRemovein interfaceSpatialLane<K,S,V>
-
didRemove
public SpatialLane<K,S,V> didRemove(DidRemoveShape<K,S,V> didRemove)
- Specified by:
didRemovein interfaceObservableSpatialMap<K,S,V>- Specified by:
didRemovein interfaceSpatialLane<K,S,V>
-
willClear
public SpatialLane<K,S,V> willClear(WillClear willClear)
- Specified by:
willClearin interfaceObservableSpatialMap<K,S,V>- Specified by:
willClearin interfaceSpatialLane<K,S,V>
-
didClear
public SpatialLane<K,S,V> didClear(DidClear didClear)
- Specified by:
didClearin interfaceObservableSpatialMap<K,S,V>- Specified by:
didClearin interfaceSpatialLane<K,S,V>
-
willCommand
public SpatialLaneView<K,S,V> willCommand(WillCommand willCommand)
- Specified by:
willCommandin interfaceSpatialLane<K,S,V>- Specified by:
willCommandin interfaceWarpLane- Specified by:
willCommandin classWarpLaneView
-
didCommand
public SpatialLaneView<K,S,V> didCommand(DidCommand didCommand)
- Specified by:
didCommandin interfaceSpatialLane<K,S,V>- Specified by:
didCommandin interfaceWarpLane- Specified by:
didCommandin classWarpLaneView
-
willUplink
public SpatialLaneView<K,S,V> willUplink(WillUplink willUplink)
- Specified by:
willUplinkin interfaceSpatialLane<K,S,V>- Specified by:
willUplinkin interfaceWarpLane- Specified by:
willUplinkin classWarpLaneView
-
didUplink
public SpatialLaneView<K,S,V> didUplink(DidUplink didUplink)
- Specified by:
didUplinkin interfaceSpatialLane<K,S,V>- Specified by:
didUplinkin interfaceWarpLane- Specified by:
didUplinkin classWarpLaneView
-
willEnter
public SpatialLaneView<K,S,V> willEnter(WillEnter willEnter)
- Specified by:
willEnterin interfaceSpatialLane<K,S,V>- Specified by:
willEnterin interfaceWarpLane- Specified by:
willEnterin classWarpLaneView
-
didEnter
public SpatialLaneView<K,S,V> didEnter(DidEnter didEnter)
- Specified by:
didEnterin interfaceSpatialLane<K,S,V>- Specified by:
didEnterin interfaceWarpLane- Specified by:
didEnterin classWarpLaneView
-
willLeave
public SpatialLaneView<K,S,V> willLeave(WillLeave willLeave)
- Specified by:
willLeavein interfaceSpatialLane<K,S,V>- Specified by:
willLeavein interfaceWarpLane- Specified by:
willLeavein classWarpLaneView
-
didLeave
public SpatialLaneView<K,S,V> didLeave(DidLeave didLeave)
- Specified by:
didLeavein interfaceSpatialLane<K,S,V>- Specified by:
didLeavein interfaceWarpLane- Specified by:
didLeavein classWarpLaneView
-
dispatchWillUpdate
public Map.Entry<Boolean,V> dispatchWillUpdate(Link link, K key, S shape, V newValue, boolean preemptive)
-
dispatchDidUpdate
public boolean dispatchDidUpdate(Link link, K key, S shape, V newValue, V oldValue, boolean preemptive)
-
dispatchWillMove
public Map.Entry<Boolean,V> dispatchWillMove(Link link, K key, S newShape, V newValue, S oldShape, boolean preemptive)
-
dispatchDidMove
public boolean dispatchDidMove(Link link, K key, S newShape, V newValue, S oldShape, V oldValue, boolean preemptive)
-
dispatchWillRemove
public boolean dispatchWillRemove(Link link, K key, S shape, boolean preemptive)
-
dispatchDidRemove
public boolean dispatchDidRemove(Link link, K key, S shape, V oldValue, boolean preemptive)
-
dispatchWillClear
public boolean dispatchWillClear(Link link, boolean preemptive)
-
dispatchDidClear
public boolean dispatchDidClear(Link link, boolean preemptive)
-
laneWillClear
public void laneWillClear()
-
laneDidClear
public void laneDidClear()
-
snapshot
public SpatialMap<K,S,V> snapshot()
- Specified by:
snapshotin interfaceSpatialLane<K,S,V>
-
iterator
public Iterator<SpatialMap.Entry<K,S,V>> iterator()
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceSpatialMap<K,S,V>
-
size
public int size()
- Specified by:
sizein interfaceSpatialMap<K,S,V>
-
containsKey
public boolean containsKey(K key, S shape)
- Specified by:
containsKeyin interfaceSpatialMap<K,S,V>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceSpatialMap<K,S,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceSpatialMap<K,S,V>
-
move
public V move(K key, S oldShape, S newShape, V newValue)
- Specified by:
movein interfaceSpatialMap<K,S,V>
-
clear
public void clear()
- Specified by:
clearin interfaceSpatialMap<K,S,V>
-
iterator
public Iterator<SpatialMap.Entry<K,S,V>> iterator(S shape)
- Specified by:
iteratorin interfaceSpatialMap<K,S,V>
-
keyIterator
public Iterator<K> keyIterator()
- Specified by:
keyIteratorin interfaceSpatialMap<K,S,V>
-
valueIterator
public Iterator<V> valueIterator()
- Specified by:
valueIteratorin interfaceSpatialMap<K,S,V>
-
-