- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.LaneView
-
- swim.runtime.warp.WarpLaneView
-
- swim.runtime.lane.DemandLaneView<V>
-
- All Implemented Interfaces:
DownlinkFactory
,Lane
,DemandLane<V>
,SwimRef
,WarpLane
,Observable<Object>
,CellContext
,TierBinding
,Log
public class DemandLaneView<V> extends WarpLaneView implements DemandLane<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentContext
agentContext
protected DemandLaneModel
laneBinding
protected OnCue<V>
onCue
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 DemandLaneView(AgentContext agentContext, Form<V> valueForm)
DemandLaneView(AgentContext agentContext, Form<V> valueForm, Object observers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentContext
agentContext()
void
close()
DemandLaneModel
createLaneBinding()
void
cue()
DemandLaneView<V>
didCommand(DidCommand didCommand)
DemandLaneView<V>
didEnter(DidEnter didEnter)
DemandLaneView<V>
didLeave(DidLeave didLeave)
DemandLaneView<V>
didUplink(DidUplink didUplink)
V
dispatchOnCue(WarpUplink uplink)
DemandLaneModel
laneBinding()
DemandLaneView<V>
observe(Object observer)
DemandLaneView<V>
onCue(OnCue<V> onCue)
void
setValueForm(Form<V> valueForm)
protected Object
typesafeObservers(Object observers)
DemandLaneView<V>
unobserve(Object observer)
<V2> DemandLaneView<V2>
valueClass(Class<V2> valueClass)
Form<V>
valueForm()
<V2> DemandLaneView<V2>
valueForm(Form<V2> valueForm)
DemandLaneView<V>
willCommand(WillCommand willCommand)
DemandLaneView<V>
willEnter(WillEnter willEnter)
DemandLaneView<V>
willLeave(WillLeave willLeave)
DemandLaneView<V>
willUplink(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, 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 DemandLaneModel laneBinding
-
-
Constructor Detail
-
DemandLaneView
public DemandLaneView(AgentContext agentContext, Form<V> valueForm, Object observers)
-
DemandLaneView
public DemandLaneView(AgentContext agentContext, Form<V> valueForm)
-
-
Method Detail
-
agentContext
public AgentContext agentContext()
- Specified by:
agentContext
in classLaneView
-
laneBinding
public DemandLaneModel laneBinding()
- Specified by:
laneBinding
in classLaneView
-
createLaneBinding
public DemandLaneModel createLaneBinding()
- Specified by:
createLaneBinding
in classLaneView
-
valueForm
public final Form<V> valueForm()
- Specified by:
valueForm
in interfaceDemandLane<V>
-
valueForm
public <V2> DemandLaneView<V2> valueForm(Form<V2> valueForm)
- Specified by:
valueForm
in interfaceDemandLane<V>
-
valueClass
public <V2> DemandLaneView<V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClass
in interfaceDemandLane<V>
-
close
public void close()
-
observe
public DemandLaneView<V> observe(Object observer)
- Specified by:
observe
in interfaceDemandLane<V>
- Specified by:
observe
in interfaceLane
- Specified by:
observe
in interfaceObservable<V>
- Specified by:
observe
in interfaceWarpLane
- Overrides:
observe
in classWarpLaneView
-
unobserve
public DemandLaneView<V> unobserve(Object observer)
- Specified by:
unobserve
in interfaceDemandLane<V>
- Specified by:
unobserve
in interfaceLane
- Specified by:
unobserve
in interfaceObservable<V>
- Specified by:
unobserve
in interfaceWarpLane
- Overrides:
unobserve
in classWarpLaneView
-
onCue
public DemandLaneView<V> onCue(OnCue<V> onCue)
- Specified by:
onCue
in interfaceDemandLane<V>
-
willCommand
public DemandLaneView<V> willCommand(WillCommand willCommand)
- Specified by:
willCommand
in interfaceDemandLane<V>
- Specified by:
willCommand
in interfaceWarpLane
- Specified by:
willCommand
in classWarpLaneView
-
didCommand
public DemandLaneView<V> didCommand(DidCommand didCommand)
- Specified by:
didCommand
in interfaceDemandLane<V>
- Specified by:
didCommand
in interfaceWarpLane
- Specified by:
didCommand
in classWarpLaneView
-
willUplink
public DemandLaneView<V> willUplink(WillUplink willUplink)
- Specified by:
willUplink
in interfaceDemandLane<V>
- Specified by:
willUplink
in interfaceWarpLane
- Specified by:
willUplink
in classWarpLaneView
-
didUplink
public DemandLaneView<V> didUplink(DidUplink didUplink)
- Specified by:
didUplink
in interfaceDemandLane<V>
- Specified by:
didUplink
in interfaceWarpLane
- Specified by:
didUplink
in classWarpLaneView
-
willEnter
public DemandLaneView<V> willEnter(WillEnter willEnter)
- Specified by:
willEnter
in interfaceDemandLane<V>
- Specified by:
willEnter
in interfaceWarpLane
- Specified by:
willEnter
in classWarpLaneView
-
didEnter
public DemandLaneView<V> didEnter(DidEnter didEnter)
- Specified by:
didEnter
in interfaceDemandLane<V>
- Specified by:
didEnter
in interfaceWarpLane
- Specified by:
didEnter
in classWarpLaneView
-
willLeave
public DemandLaneView<V> willLeave(WillLeave willLeave)
- Specified by:
willLeave
in interfaceDemandLane<V>
- Specified by:
willLeave
in interfaceWarpLane
- Specified by:
willLeave
in classWarpLaneView
-
didLeave
public DemandLaneView<V> didLeave(DidLeave didLeave)
- Specified by:
didLeave
in interfaceDemandLane<V>
- Specified by:
didLeave
in interfaceWarpLane
- Specified by:
didLeave
in classWarpLaneView
-
dispatchOnCue
public V dispatchOnCue(WarpUplink uplink)
-
cue
public void cue()
- Specified by:
cue
in interfaceDemandLane<V>
-
-