- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.lane.LaneModel<MapLaneView<?,?>,MapLaneUplink>
-
- swim.runtime.lane.MapLaneModel
-
- 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 MapLaneModel extends LaneModel<MapLaneView<?,?>,MapLaneUplink>
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.api.data.MapData<swim.structure.Value,swim.structure.Value>dataprotected intflags-
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 MapLaneModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear(MapLaneView<?,?> view)protected MapLaneUplinkcreateUplink(LinkBinding link)protected voidcueDownKey(swim.structure.Value key)protected voiddidOpenLaneView(MapLaneView<?,?> view)voiddrop(MapLaneView<?,?> view, int lower)swim.structure.Valueget(swim.structure.Value key)booleanisResident()MapLaneModelisResident(boolean isResident)booleanisSigned()MapLaneModelisSigned(boolean isSigned)booleanisTransient()MapLaneModelisTransient(boolean isTransient)Iterator<Map.Entry<swim.structure.Value,swim.structure.Value>>iterator()voidonCommand(swim.warp.CommandMessage message)protected voidopenStore()<K,V>
Vput(MapLaneView<K,V> view, K keyObject, V newObject)<K,V>
Vremove(MapLaneView<K,V> view, K keyObject)voidsetLaneContext(LaneContext laneContext)voidtake(MapLaneView<?,?> view, int upper)-
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
-
-
-
-
Method Detail
-
createUplink
protected MapLaneUplink createUplink(LinkBinding link)
- Specified by:
createUplinkin classLaneModel<MapLaneView<?,?>,MapLaneUplink>
-
setLaneContext
public void setLaneContext(LaneContext laneContext)
- Specified by:
setLaneContextin interfaceLaneBinding- Overrides:
setLaneContextin classLaneModel<MapLaneView<?,?>,MapLaneUplink>
-
openStore
protected void openStore()
-
didOpenLaneView
protected void didOpenLaneView(MapLaneView<?,?> view)
- Specified by:
didOpenLaneViewin classLaneModel<MapLaneView<?,?>,MapLaneUplink>
-
onCommand
public void onCommand(swim.warp.CommandMessage message)
- Overrides:
onCommandin classLaneModel<MapLaneView<?,?>,MapLaneUplink>
-
cueDownKey
protected void cueDownKey(swim.structure.Value key)
-
isResident
public final boolean isResident()
-
isResident
public MapLaneModel isResident(boolean isResident)
-
isTransient
public final boolean isTransient()
-
isTransient
public MapLaneModel isTransient(boolean isTransient)
-
isSigned
public final boolean isSigned()
-
isSigned
public MapLaneModel isSigned(boolean isSigned)
-
get
public swim.structure.Value get(swim.structure.Value key)
-
put
public <K,V> V put(MapLaneView<K,V> view, K keyObject, V newObject)
-
remove
public <K,V> V remove(MapLaneView<K,V> view, K keyObject)
-
drop
public void drop(MapLaneView<?,?> view, int lower)
-
take
public void take(MapLaneView<?,?> view, int upper)
-
clear
public void clear(MapLaneView<?,?> view)
-
-