- java.lang.Object
-
- swim.runtime.lane.LaneView
-
- swim.runtime.lane.SpatialLaneView<K,S,V>
-
- All Implemented Interfaces:
Iterable<swim.spatial.SpatialMap.Entry<K,S,V>>,swim.api.http.HttpLane<Object>,swim.api.lane.Lane,swim.api.lane.SpatialLane<K,S,V>,swim.observable.Observable<Object>,swim.observable.ObservableSpatialMap<K,S,V>,swim.spatial.SpatialMap<K,S,V>,swim.util.Log
public class SpatialLaneView<K,S,V> extends LaneView 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
-
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()SpatialLaneView<K,S,V>decodeRequest(swim.api.http.function.DecodeRequestHttp<Object> decodeRequest)swim.api.lane.SpatialLane<K,S,V>didClear(swim.observable.function.DidClear didClear)SpatialLaneView<K,S,V>didCommand(swim.api.lane.function.DidCommand didCommand)SpatialLaneView<K,S,V>didEnter(swim.api.lane.function.DidEnter didEnter)SpatialLaneView<K,S,V>didLeave(swim.api.lane.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)SpatialLaneView<K,S,V>didRequest(swim.api.http.function.DidRequestHttp<Object> didRequest)SpatialLaneView<K,S,V>didRespond(swim.api.http.function.DidRespondHttp<?> didRespond)swim.api.lane.SpatialLane<K,S,V>didUpdate(swim.observable.function.DidUpdateShape<K,S,V> didUpdate)SpatialLaneView<K,S,V>didUplink(swim.api.lane.function.DidUplink didUplink)protected 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)protected 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)SpatialLaneView<K,S,V>doRespond(swim.api.http.function.DoRespondHttp<Object> doRespond)Vget(Object key)Vget(K key, S shape)SpatialLaneModel<S>getLaneBinding()booleanisEmpty()booleanisResident()swim.api.lane.SpatialLane<K,S,V>isResident(boolean isResident)booleanisSigned()swim.api.lane.SpatialLane<K,S,V>isSigned(boolean isSigned)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()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.lane.function.WillCommand willCommand)SpatialLaneView<K,S,V>willEnter(swim.api.lane.function.WillEnter willEnter)SpatialLaneView<K,S,V>willLeave(swim.api.lane.function.WillLeave willLeave)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)SpatialLaneView<K,S,V>willRequest(swim.api.http.function.WillRequestHttp<?> willRequest)SpatialLaneView<K,S,V>willRespond(swim.api.http.function.WillRespondHttp<?> willRespond)swim.api.lane.SpatialLane<K,S,V>willUpdate(swim.observable.function.WillUpdateShape<K,S,V> willUpdate)SpatialLaneView<K,S,V>willUplink(swim.api.lane.function.WillUplink willUplink)-
Methods inherited from class swim.runtime.lane.LaneView
debug, dispatchDecodeRequest, dispatchDidCommand, dispatchDidEnter, dispatchDidLeave, dispatchDidRequest, dispatchDidRespond, dispatchDidUplink, dispatchDoRespond, dispatchWillCommand, dispatchWillEnter, dispatchWillLeave, dispatchWillRequest, dispatchWillRespond, dispatchWillUplink, error, hostUri, info, laneDecodeRequest, laneDidCommand, laneDidEnter, laneDidFail, laneDidLeave, laneDidRequest, laneDidRespond, laneDidUplink, laneDoRespond, laneUri, laneWillCommand, laneWillEnter, laneWillLeave, laneWillRequest, laneWillRespond, laneWillUplink, nodeUri, trace, unwrapLane, warn
-
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
-
getLaneBinding
public SpatialLaneModel<S> getLaneBinding()
- Specified by:
getLaneBindingin 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()
-
isSigned
public final boolean isSigned()
- Specified by:
isSignedin interfaceswim.api.lane.Lane
-
close
public void close()
-
observe
public SpatialLaneView<K,S,V> observe(Object observer)
- Specified by:
observein interfaceswim.api.http.HttpLane<K>- Specified by:
observein interfaceswim.api.lane.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>- Overrides:
observein classLaneView
-
unobserve
public SpatialLaneView<K,S,V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.http.HttpLane<K>- Specified by:
unobservein interfaceswim.api.lane.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>- Overrides:
unobservein classLaneView
-
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.lane.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.lane.Lane- Specified by:
willCommandin interfaceswim.api.lane.SpatialLane<K,S,V>- Specified by:
willCommandin classLaneView
-
didCommand
public SpatialLaneView<K,S,V> didCommand(swim.api.lane.function.DidCommand didCommand)
- Specified by:
didCommandin interfaceswim.api.lane.Lane- Specified by:
didCommandin interfaceswim.api.lane.SpatialLane<K,S,V>- Specified by:
didCommandin classLaneView
-
willUplink
public SpatialLaneView<K,S,V> willUplink(swim.api.lane.function.WillUplink willUplink)
- Specified by:
willUplinkin interfaceswim.api.lane.Lane- Specified by:
willUplinkin interfaceswim.api.lane.SpatialLane<K,S,V>- Specified by:
willUplinkin classLaneView
-
didUplink
public SpatialLaneView<K,S,V> didUplink(swim.api.lane.function.DidUplink didUplink)
-
willEnter
public SpatialLaneView<K,S,V> willEnter(swim.api.lane.function.WillEnter willEnter)
-
didEnter
public SpatialLaneView<K,S,V> didEnter(swim.api.lane.function.DidEnter didEnter)
-
willLeave
public SpatialLaneView<K,S,V> willLeave(swim.api.lane.function.WillLeave willLeave)
-
didLeave
public SpatialLaneView<K,S,V> didLeave(swim.api.lane.function.DidLeave didLeave)
-
decodeRequest
public SpatialLaneView<K,S,V> decodeRequest(swim.api.http.function.DecodeRequestHttp<Object> decodeRequest)
-
willRequest
public SpatialLaneView<K,S,V> willRequest(swim.api.http.function.WillRequestHttp<?> willRequest)
-
didRequest
public SpatialLaneView<K,S,V> didRequest(swim.api.http.function.DidRequestHttp<Object> didRequest)
-
doRespond
public SpatialLaneView<K,S,V> doRespond(swim.api.http.function.DoRespondHttp<Object> doRespond)
-
willRespond
public SpatialLaneView<K,S,V> willRespond(swim.api.http.function.WillRespondHttp<?> willRespond)
-
didRespond
public SpatialLaneView<K,S,V> didRespond(swim.api.http.function.DidRespondHttp<?> didRespond)
-
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
protected boolean dispatchWillClear(swim.api.Link link, boolean preemptive)
-
dispatchDidClear
protected 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)
-
-