- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.LaneView
-
- swim.runtime.warp.WarpLaneView
-
- swim.runtime.lane.SpatialLaneView<K,S,V>
-
- All Implemented Interfaces:
Iterable<swim.spatial.SpatialMap.Entry<K,S,V>>,swim.api.downlink.DownlinkFactory,swim.api.Lane,swim.api.lane.SpatialLane<K,S,V>,swim.api.ref.SwimRef,swim.api.warp.WarpLane,swim.observable.Observable<Object>,swim.observable.ObservableSpatialMap<K,S,V>,CellContext,TierBinding,swim.spatial.SpatialMap<K,S,V>,swim.util.Log
public class SpatialLaneView<K,S,V> extends WarpLaneView implements swim.api.lane.SpatialLane<K,S,V>
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.api.agent.AgentContextagentContextprotected swim.api.data.SpatialData<K,S,V>dataViewprotected intflagsprotected swim.structure.Form<K>keyFormprotected SpatialLaneModel<S>laneBindingprotected swim.math.Z2Form<S>shapeFormprotected swim.structure.Form<V>valueForm-
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 SpatialLaneView(swim.api.agent.AgentContext agentContext, swim.structure.Form<K> keyForm, swim.math.Z2Form<S> shapeForm, swim.structure.Form<V> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description swim.api.agent.AgentContextagentContext()voidclear()voidclose()booleancontainsKey(Object key)booleancontainsKey(K key, S shape)booleancontainsValue(Object value)LaneBindingcreateLaneBinding()swim.api.lane.SpatialLane<K,S,V>didClear(swim.observable.function.DidClear didClear)SpatialLaneView<K,S,V>didCommand(swim.api.warp.function.DidCommand didCommand)SpatialLaneView<K,S,V>didEnter(swim.api.warp.function.DidEnter didEnter)SpatialLaneView<K,S,V>didLeave(swim.api.warp.function.DidLeave didLeave)swim.api.lane.SpatialLane<K,S,V>didMove(swim.observable.function.DidMoveShape<K,S,V> didMove)swim.api.lane.SpatialLane<K,S,V>didRemove(swim.observable.function.DidRemoveShape<K,S,V> didRemove)swim.api.lane.SpatialLane<K,S,V>didUpdate(swim.observable.function.DidUpdateShape<K,S,V> didUpdate)SpatialLaneView<K,S,V>didUplink(swim.api.warp.function.DidUplink didUplink)booleandispatchDidClear(swim.api.Link link, boolean preemptive)booleandispatchDidMove(swim.api.Link link, K key, S newShape, V newValue, S oldShape, V oldValue, boolean preemptive)booleandispatchDidRemove(swim.api.Link link, K key, S shape, V oldValue, boolean preemptive)booleandispatchDidUpdate(swim.api.Link link, K key, S shape, V newValue, V oldValue, boolean preemptive)booleandispatchWillClear(swim.api.Link link, boolean preemptive)Map.Entry<Boolean,V>dispatchWillMove(swim.api.Link link, K key, S newShape, V newValue, S oldShape, boolean preemptive)booleandispatchWillRemove(swim.api.Link link, K key, S shape, boolean preemptive)Map.Entry<Boolean,V>dispatchWillUpdate(swim.api.Link link, K key, S shape, V newValue, boolean preemptive)Vget(Object key)Vget(K key, S shape)booleanisEmpty()booleanisResident()swim.api.lane.SpatialLane<K,S,V>isResident(boolean isResident)booleanisTransient()swim.api.lane.SpatialLane<K,S,V>isTransient(boolean isTransient)Iterator<swim.spatial.SpatialMap.Entry<K,S,V>>iterator()Iterator<swim.spatial.SpatialMap.Entry<K,S,V>>iterator(S shape)<K2> swim.api.lane.SpatialLane<K2,S,V>keyClass(Class<K2> keyClass)swim.structure.Form<K>keyForm()<K2> swim.api.lane.SpatialLane<K2,S,V>keyForm(swim.structure.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(swim.structure.Form<K> keyForm)voidsetLaneBinding(SpatialLaneModel<S> laneBinding)voidsetValueForm(swim.structure.Form<V> valueForm)intsize()swim.spatial.SpatialMap<K,S,V>snapshot()protected ObjecttypesafeObservers(Object observers)SpatialLaneView<K,S,V>unobserve(Object observer)<V2> swim.api.lane.SpatialLane<K,S,V2>valueClass(Class<V2> valueClass)swim.structure.Form<V>valueForm()<V2> swim.api.lane.SpatialLane<K,S,V2>valueForm(swim.structure.Form<V2> valueForm)Iterator<V>valueIterator()swim.api.lane.SpatialLane<K,S,V>willClear(swim.observable.function.WillClear willClear)SpatialLaneView<K,S,V>willCommand(swim.api.warp.function.WillCommand willCommand)SpatialLaneView<K,S,V>willEnter(swim.api.warp.function.WillEnter willEnter)SpatialLaneView<K,S,V>willLeave(swim.api.warp.function.WillLeave willLeave)protected voidwillLoad()swim.api.lane.SpatialLane<K,S,V>willMove(swim.observable.function.WillMoveShape<K,S,V> willMove)swim.api.lane.SpatialLane<K,S,V>willRemove(swim.observable.function.WillRemoveShape<K,S> willRemove)swim.api.lane.SpatialLane<K,S,V>willUpdate(swim.observable.function.WillUpdateShape<K,S,V> willUpdate)SpatialLaneView<K,S,V>willUplink(swim.api.warp.function.WillUplink willUplink)-
Methods inherited from class swim.runtime.warp.WarpLaneView
dispatchDidCommand, dispatchDidEnter, dispatchDidLeave, dispatchDidUplink, dispatchWillCommand, dispatchWillEnter, dispatchWillLeave, dispatchWillUplink, laneDidCommand, laneDidEnter, laneDidLeave, laneDidUplink, laneWillCommand, laneWillEnter, laneWillLeave, laneWillUplink
-
Methods inherited from class swim.runtime.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.runtime.AbstractTierBinding
activate, 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.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 java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
agentContext
protected final swim.api.agent.AgentContext agentContext
-
keyForm
protected swim.structure.Form<K> keyForm
-
shapeForm
protected swim.math.Z2Form<S> shapeForm
-
valueForm
protected swim.structure.Form<V> valueForm
-
laneBinding
protected SpatialLaneModel<S> laneBinding
-
flags
protected int flags
-
-
Method Detail
-
agentContext
public swim.api.agent.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 swim.structure.Form<K> keyForm()
-
setKeyForm
public void setKeyForm(swim.structure.Form<K> keyForm)
-
valueForm
public swim.structure.Form<V> valueForm()
-
valueForm
public <V2> swim.api.lane.SpatialLane<K,S,V2> valueForm(swim.structure.Form<V2> valueForm)
-
setValueForm
public void setValueForm(swim.structure.Form<V> valueForm)
-
isResident
public final boolean isResident()
-
isTransient
public final boolean isTransient()
-
willLoad
protected void willLoad()
- Overrides:
willLoadin classAbstractTierBinding
-
close
public void close()
- Specified by:
closein interfaceswim.api.Lane- Specified by:
closein interfaceswim.api.ref.SwimRef- Specified by:
closein interfaceTierBinding- Specified by:
closein classLaneView
-
observe
public SpatialLaneView<K,S,V> observe(Object observer)
- Specified by:
observein interfaceswim.api.Lane- Specified by:
observein interfaceswim.observable.Observable<K>- Specified by:
observein interfaceswim.observable.ObservableSpatialMap<K,S,V>- Specified by:
observein interfaceswim.api.lane.SpatialLane<K,S,V>- Specified by:
observein interfaceswim.api.warp.WarpLane- Overrides:
observein classWarpLaneView
-
unobserve
public SpatialLaneView<K,S,V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.Lane- Specified by:
unobservein interfaceswim.observable.Observable<K>- Specified by:
unobservein interfaceswim.observable.ObservableSpatialMap<K,S,V>- Specified by:
unobservein interfaceswim.api.lane.SpatialLane<K,S,V>- Specified by:
unobservein interfaceswim.api.warp.WarpLane- Overrides:
unobservein classWarpLaneView
-
willUpdate
public swim.api.lane.SpatialLane<K,S,V> willUpdate(swim.observable.function.WillUpdateShape<K,S,V> willUpdate)
-
didUpdate
public swim.api.lane.SpatialLane<K,S,V> didUpdate(swim.observable.function.DidUpdateShape<K,S,V> didUpdate)
-
willMove
public swim.api.lane.SpatialLane<K,S,V> willMove(swim.observable.function.WillMoveShape<K,S,V> willMove)
-
didMove
public swim.api.lane.SpatialLane<K,S,V> didMove(swim.observable.function.DidMoveShape<K,S,V> didMove)
-
willRemove
public swim.api.lane.SpatialLane<K,S,V> willRemove(swim.observable.function.WillRemoveShape<K,S> willRemove)
-
didRemove
public swim.api.lane.SpatialLane<K,S,V> didRemove(swim.observable.function.DidRemoveShape<K,S,V> didRemove)
-
willClear
public swim.api.lane.SpatialLane<K,S,V> willClear(swim.observable.function.WillClear willClear)
-
didClear
public swim.api.lane.SpatialLane<K,S,V> didClear(swim.observable.function.DidClear didClear)
-
willCommand
public SpatialLaneView<K,S,V> willCommand(swim.api.warp.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.lane.SpatialLane<K,S,V>- Specified by:
willCommandin interfaceswim.api.warp.WarpLane- Specified by:
willCommandin classWarpLaneView
-
didCommand
public SpatialLaneView<K,S,V> didCommand(swim.api.warp.function.DidCommand didCommand)
- Specified by:
didCommandin interfaceswim.api.lane.SpatialLane<K,S,V>- Specified by:
didCommandin interfaceswim.api.warp.WarpLane- Specified by:
didCommandin classWarpLaneView
-
willUplink
public SpatialLaneView<K,S,V> willUplink(swim.api.warp.function.WillUplink willUplink)
- Specified by:
willUplinkin interfaceswim.api.lane.SpatialLane<K,S,V>- Specified by:
willUplinkin interfaceswim.api.warp.WarpLane- Specified by:
willUplinkin classWarpLaneView
-
didUplink
public SpatialLaneView<K,S,V> didUplink(swim.api.warp.function.DidUplink didUplink)
- Specified by:
didUplinkin interfaceswim.api.lane.SpatialLane<K,S,V>- Specified by:
didUplinkin interfaceswim.api.warp.WarpLane- Specified by:
didUplinkin classWarpLaneView
-
willEnter
public SpatialLaneView<K,S,V> willEnter(swim.api.warp.function.WillEnter willEnter)
- Specified by:
willEnterin interfaceswim.api.lane.SpatialLane<K,S,V>- Specified by:
willEnterin interfaceswim.api.warp.WarpLane- Specified by:
willEnterin classWarpLaneView
-
didEnter
public SpatialLaneView<K,S,V> didEnter(swim.api.warp.function.DidEnter didEnter)
- Specified by:
didEnterin interfaceswim.api.lane.SpatialLane<K,S,V>- Specified by:
didEnterin interfaceswim.api.warp.WarpLane- Specified by:
didEnterin classWarpLaneView
-
willLeave
public SpatialLaneView<K,S,V> willLeave(swim.api.warp.function.WillLeave willLeave)
- Specified by:
willLeavein interfaceswim.api.lane.SpatialLane<K,S,V>- Specified by:
willLeavein interfaceswim.api.warp.WarpLane- Specified by:
willLeavein classWarpLaneView
-
didLeave
public SpatialLaneView<K,S,V> didLeave(swim.api.warp.function.DidLeave didLeave)
- Specified by:
didLeavein interfaceswim.api.lane.SpatialLane<K,S,V>- Specified by:
didLeavein interfaceswim.api.warp.WarpLane- Specified by:
didLeavein classWarpLaneView
-
dispatchWillUpdate
public Map.Entry<Boolean,V> dispatchWillUpdate(swim.api.Link link, K key, S shape, V newValue, boolean preemptive)
-
dispatchDidUpdate
public boolean dispatchDidUpdate(swim.api.Link link, K key, S shape, V newValue, V oldValue, boolean preemptive)
-
dispatchWillMove
public Map.Entry<Boolean,V> dispatchWillMove(swim.api.Link link, K key, S newShape, V newValue, S oldShape, boolean preemptive)
-
dispatchDidMove
public boolean dispatchDidMove(swim.api.Link link, K key, S newShape, V newValue, S oldShape, V oldValue, boolean preemptive)
-
dispatchWillRemove
public boolean dispatchWillRemove(swim.api.Link link, K key, S shape, boolean preemptive)
-
dispatchDidRemove
public boolean dispatchDidRemove(swim.api.Link link, K key, S shape, V oldValue, boolean preemptive)
-
dispatchWillClear
public boolean dispatchWillClear(swim.api.Link link, boolean preemptive)
-
dispatchDidClear
public boolean dispatchDidClear(swim.api.Link link, boolean preemptive)
-
laneWillClear
public void laneWillClear()
-
laneDidClear
public void laneDidClear()
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(Object key)
-
containsValue
public boolean containsValue(Object value)
-
-