- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.lane.LaneModel<SpatialLaneView<?,S,?>,SpatialLaneUplink<S>>
-
- swim.runtime.lane.SpatialLaneModel<S>
-
- All Implemented Interfaces:
swim.api.downlink.DownlinkFactory,swim.api.ref.SwimRef,CellBinding,CellContext,LaneBinding,TierBinding,swim.store.StoreBinding,swim.store.StoreContext,swim.util.Log
public class SpatialLaneModel<S> extends LaneModel<SpatialLaneView<?,S,?>,SpatialLaneUplink<S>>
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.api.data.SpatialData<swim.structure.Value,S,swim.structure.Value>dataprotected intflagsprotected swim.math.Z2Form<S>shapeForm-
Fields inherited from class swim.runtime.lane.LaneModel
laneContext
-
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 SpatialLaneModel(swim.math.Z2Form<S> shapeForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear(SpatialLaneView<?,S,?> view)protected SpatialLaneUplink<S>createUplink(LinkBinding link)protected voidcueDownKey(swim.structure.Value key)protected voiddidOpenLaneView(SpatialLaneView<?,S,?> view)swim.structure.Valueget(swim.structure.Value key)booleanisResident()SpatialLaneModel<S>isResident(boolean isResident)booleanisSigned()SpatialLaneModel<S>isSigned(boolean isSigned)booleanisTransient()SpatialLaneModel<S>isTransient(boolean isTransient)Iterator<swim.spatial.SpatialMap.Entry<swim.structure.Value,S,swim.structure.Value>>iterator()Iterator<swim.spatial.SpatialMap.Entry<swim.structure.Value,S,swim.structure.Value>>iterator(S shape)<K,V>
Vmove(SpatialLaneView<K,S,V> view, K keyObject, S oldShapeObject, S newShapeObject, V newObject)voidonCommand(swim.warp.CommandMessage message)protected voidopenStore()<K,V>
Vput(SpatialLaneView<K,S,V> view, K keyObject, S shapeObject, V newObject)<K,V>
Vremove(SpatialLaneView<K,S,V> view, K keyObject, S shapeObject)voidsetLaneContext(LaneContext laneContext)-
Methods inherited from class swim.runtime.lane.LaneModel
agentKey, bindDownlink, closeData, closeDownlink, closeLaneView, closeUplink, cueDown, data, dataBindings, debug, decodeRequest, didClose, didCloseLaneView, didEnter, didFail, didLeave, didRequest, didRespond, didUplink, doRespond, error, getLaneView, getUplink, getUplinks, hostUri, httpDownlink, httpUplink, info, injectListData, injectMapData, injectSpatialData, injectValueData, laneContext, laneUri, meshUri, nodeUri, openDownlink, openLaneView, openListData, openMapData, openSpatialData, openUplink, openValueData, partKey, policy, pushDown, pushUp, pushUpCommand, schedule, sendDown, stage, tierContext, trace, unwrapLane, warn, willClose, willLoad, willOpen, willRequest, willRespond, willStart, willStop, willUnload
-
Methods inherited from class swim.runtime.AbstractTierBinding
activate, close, didLoad, didOpen, didStart, didStop, didUnload, 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
-
-
-
-
Constructor Detail
-
SpatialLaneModel
public SpatialLaneModel(swim.math.Z2Form<S> shapeForm)
-
-
Method Detail
-
createUplink
protected SpatialLaneUplink<S> createUplink(LinkBinding link)
- Specified by:
createUplinkin classLaneModel<SpatialLaneView<?,S,?>,SpatialLaneUplink<S>>
-
setLaneContext
public void setLaneContext(LaneContext laneContext)
- Specified by:
setLaneContextin interfaceLaneBinding- Overrides:
setLaneContextin classLaneModel<SpatialLaneView<?,S,?>,SpatialLaneUplink<S>>
-
openStore
protected void openStore()
-
onCommand
public void onCommand(swim.warp.CommandMessage message)
- Overrides:
onCommandin classLaneModel<SpatialLaneView<?,S,?>,SpatialLaneUplink<S>>
-
cueDownKey
protected void cueDownKey(swim.structure.Value key)
-
didOpenLaneView
protected void didOpenLaneView(SpatialLaneView<?,S,?> view)
- Specified by:
didOpenLaneViewin classLaneModel<SpatialLaneView<?,S,?>,SpatialLaneUplink<S>>
-
isResident
public final boolean isResident()
-
isResident
public SpatialLaneModel<S> isResident(boolean isResident)
-
isTransient
public final boolean isTransient()
-
isTransient
public SpatialLaneModel<S> isTransient(boolean isTransient)
-
isSigned
public final boolean isSigned()
-
isSigned
public SpatialLaneModel<S> isSigned(boolean isSigned)
-
get
public swim.structure.Value get(swim.structure.Value key)
-
put
public <K,V> V put(SpatialLaneView<K,S,V> view, K keyObject, S shapeObject, V newObject)
-
move
public <K,V> V move(SpatialLaneView<K,S,V> view, K keyObject, S oldShapeObject, S newShapeObject, V newObject)
-
remove
public <K,V> V remove(SpatialLaneView<K,S,V> view, K keyObject, S shapeObject)
-
clear
public void clear(SpatialLaneView<?,S,?> view)
-
iterator
public Iterator<swim.spatial.SpatialMap.Entry<swim.structure.Value,S,swim.structure.Value>> iterator(S shape)
-
-