- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.LaneView
-
- swim.runtime.warp.WarpLaneView
-
- swim.runtime.lane.DemandMapLaneView<K,V>
-
- All Implemented Interfaces:
DownlinkFactory
,Lane
,DemandMapLane<K,V>
,SwimRef
,WarpLane
,Observable<Object>
,CellContext
,TierBinding
,Log
public class DemandMapLaneView<K,V> extends WarpLaneView implements DemandMapLane<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentContext
agentContext
protected Form<K>
keyForm
protected DemandMapLaneModel
laneBinding
protected 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 DemandMapLaneView(AgentContext agentContext, Form<K> keyForm, Form<V> valueForm)
DemandMapLaneView(AgentContext agentContext, Form<K> keyForm, Form<V> valueForm, Object observers)
-
Method Summary
-
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, closeDownlink, debug, error, hostUri, info, laneContext, laneDidFail, laneUri, meshUri, nodeUri, openDownlink, policy, pushDown, 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, willLoad, willOpen, willStart, willStop, willUnload
-
Methods inherited from class swim.runtime.AbstractSwimRef
command, command, command, command, command, command, command, command, downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, downlinkWs, hostRef, hostRef, laneRef, laneRef, laneRef, laneRef, nodeRef, nodeRef, nodeRef, nodeRef
-
-
-
-
Field Detail
-
agentContext
protected final AgentContext agentContext
-
laneBinding
protected DemandMapLaneModel laneBinding
-
-
Method Detail
-
agentContext
public AgentContext agentContext()
- Specified by:
agentContext
in classLaneView
-
laneBinding
public DemandMapLaneModel laneBinding()
- Specified by:
laneBinding
in classLaneView
-
createLaneBinding
public DemandMapLaneModel createLaneBinding()
- Specified by:
createLaneBinding
in classLaneView
-
keyForm
public <K2> DemandMapLaneView<K2,V> keyForm(Form<K2> keyForm)
- Specified by:
keyForm
in interfaceDemandMapLane<K,V>
-
keyClass
public <K2> DemandMapLaneView<K2,V> keyClass(Class<K2> keyClass)
- Specified by:
keyClass
in interfaceDemandMapLane<K,V>
-
valueForm
public <V2> DemandMapLaneView<K,V2> valueForm(Form<V2> valueForm)
- Specified by:
valueForm
in interfaceDemandMapLane<K,V>
-
valueClass
public <V2> DemandMapLaneView<K,V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClass
in interfaceDemandMapLane<K,V>
-
close
public void close()
-
observe
public DemandMapLaneView<K,V> observe(Object observer)
- Specified by:
observe
in interfaceDemandMapLane<K,V>
- Specified by:
observe
in interfaceLane
- Specified by:
observe
in interfaceObservable<K>
- Specified by:
observe
in interfaceWarpLane
- Overrides:
observe
in classWarpLaneView
-
unobserve
public DemandMapLaneView<K,V> unobserve(Object observer)
- Specified by:
unobserve
in interfaceDemandMapLane<K,V>
- Specified by:
unobserve
in interfaceLane
- Specified by:
unobserve
in interfaceObservable<K>
- Specified by:
unobserve
in interfaceWarpLane
- Overrides:
unobserve
in classWarpLaneView
-
onCue
public DemandMapLaneView<K,V> onCue(OnCueKey<K,V> onCue)
- Specified by:
onCue
in interfaceDemandMapLane<K,V>
-
onSync
public DemandMapLaneView<K,V> onSync(OnSyncMap<K,V> onSync)
- Specified by:
onSync
in interfaceDemandMapLane<K,V>
-
willCommand
public DemandMapLaneView<K,V> willCommand(WillCommand willCommand)
- Specified by:
willCommand
in interfaceDemandMapLane<K,V>
- Specified by:
willCommand
in interfaceWarpLane
- Specified by:
willCommand
in classWarpLaneView
-
didCommand
public DemandMapLaneView<K,V> didCommand(DidCommand didCommand)
- Specified by:
didCommand
in interfaceDemandMapLane<K,V>
- Specified by:
didCommand
in interfaceWarpLane
- Specified by:
didCommand
in classWarpLaneView
-
willUplink
public DemandMapLaneView<K,V> willUplink(WillUplink willUplink)
- Specified by:
willUplink
in interfaceDemandMapLane<K,V>
- Specified by:
willUplink
in interfaceWarpLane
- Specified by:
willUplink
in classWarpLaneView
-
didUplink
public DemandMapLaneView<K,V> didUplink(DidUplink didUplink)
- Specified by:
didUplink
in interfaceDemandMapLane<K,V>
- Specified by:
didUplink
in interfaceWarpLane
- Specified by:
didUplink
in classWarpLaneView
-
willEnter
public DemandMapLaneView<K,V> willEnter(WillEnter willEnter)
- Specified by:
willEnter
in interfaceDemandMapLane<K,V>
- Specified by:
willEnter
in interfaceWarpLane
- Specified by:
willEnter
in classWarpLaneView
-
didEnter
public DemandMapLaneView<K,V> didEnter(DidEnter didEnter)
- Specified by:
didEnter
in interfaceDemandMapLane<K,V>
- Specified by:
didEnter
in interfaceWarpLane
- Specified by:
didEnter
in classWarpLaneView
-
willLeave
public DemandMapLaneView<K,V> willLeave(WillLeave willLeave)
- Specified by:
willLeave
in interfaceDemandMapLane<K,V>
- Specified by:
willLeave
in interfaceWarpLane
- Specified by:
willLeave
in classWarpLaneView
-
didLeave
public DemandMapLaneView<K,V> didLeave(DidLeave didLeave)
- Specified by:
didLeave
in interfaceDemandMapLane<K,V>
- Specified by:
didLeave
in interfaceWarpLane
- Specified by:
didLeave
in classWarpLaneView
-
dispatchOnCue
public V dispatchOnCue(K key, WarpUplink uplink)
-
dispatchOnSync
public Iterator<Map.Entry<K,V>> dispatchOnSync(WarpUplink uplink)
-
cue
public void cue(K key)
- Specified by:
cue
in interfaceDemandMapLane<K,V>
-
remove
public void remove(K key)
- Specified by:
remove
in interfaceDemandMapLane<K,V>
-
-