- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.LaneView
-
- swim.runtime.warp.WarpLaneView
-
- swim.runtime.lane.CommandLaneView<V>
-
- All Implemented Interfaces:
swim.api.downlink.DownlinkFactory,swim.api.Lane,swim.api.lane.CommandLane<V>,swim.api.ref.SwimRef,swim.api.warp.WarpLane,swim.observable.Observable<Object>,CellContext,TierBinding,swim.util.Log
public class CommandLaneView<V> extends WarpLaneView implements swim.api.lane.CommandLane<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.api.agent.AgentContextagentContextprotected CommandLaneModellaneBindingprotected swim.structure.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 CommandLaneView(swim.api.agent.AgentContext agentContext, swim.structure.Form<V> valueForm)CommandLaneView(swim.api.agent.AgentContext agentContext, swim.structure.Form<V> valueForm, Object observers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description swim.api.agent.AgentContextagentContext()voidclose()CommandLaneModelcreateLaneBinding()CommandLaneView<V>didCommand(swim.api.warp.function.DidCommand didCommand)CommandLaneView<V>didEnter(swim.api.warp.function.DidEnter didEnter)CommandLaneView<V>didLeave(swim.api.warp.function.DidLeave didLeave)CommandLaneView<V>didUplink(swim.api.warp.function.DidUplink didUplink)booleandispatchOnCommand(swim.api.Link link, V value, boolean preemptive)CommandLaneModellaneBinding()voidlaneOnCommand(V value)CommandLaneView<V>observe(Object observer)CommandLaneView<V>onCommand(swim.api.warp.function.OnCommand<V> onCommand)voidsetValueForm(swim.structure.Form<V> valueForm)protected ObjecttypesafeObservers(Object observers)CommandLaneView<V>unobserve(Object observer)<V2> CommandLaneView<V2>valueClass(Class<V2> valueClass)swim.structure.Form<V>valueForm()<V2> CommandLaneView<V2>valueForm(swim.structure.Form<V2> valueForm)CommandLaneView<V>willCommand(swim.api.warp.function.WillCommand willCommand)CommandLaneView<V>willEnter(swim.api.warp.function.WillEnter willEnter)CommandLaneView<V>willLeave(swim.api.warp.function.WillLeave willLeave)CommandLaneView<V>willUplink(swim.api.warp.function.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, bottomLane, cellAddress, closeDownlink, debug, edgeName, error, fail, hostUri, info, laneContext, laneDidFail, laneUri, meshUri, nodeUri, openDownlink, openMetaDownlink, policy, pushDown, reportDown, 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, 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 swim.api.agent.AgentContext agentContext
-
valueForm
protected swim.structure.Form<V> valueForm
-
laneBinding
protected CommandLaneModel laneBinding
-
-
Method Detail
-
agentContext
public swim.api.agent.AgentContext agentContext()
- Specified by:
agentContextin classLaneView
-
laneBinding
public CommandLaneModel laneBinding()
- Specified by:
laneBindingin classLaneView
-
createLaneBinding
public CommandLaneModel createLaneBinding()
- Specified by:
createLaneBindingin classLaneView
-
valueForm
public final swim.structure.Form<V> valueForm()
- Specified by:
valueFormin interfaceswim.api.lane.CommandLane<V>
-
valueForm
public <V2> CommandLaneView<V2> valueForm(swim.structure.Form<V2> valueForm)
- Specified by:
valueFormin interfaceswim.api.lane.CommandLane<V>
-
valueClass
public <V2> CommandLaneView<V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClassin interfaceswim.api.lane.CommandLane<V>
-
setValueForm
public void setValueForm(swim.structure.Form<V> valueForm)
-
close
public void close()
- Specified by:
closein interfaceswim.api.Lane- Specified by:
closein interfaceswim.api.ref.SwimRef- Specified by:
closein interfaceTierBinding- Specified by:
closein classLaneView
-
observe
public CommandLaneView<V> observe(Object observer)
- Specified by:
observein interfaceswim.api.lane.CommandLane<V>- Specified by:
observein interfaceswim.api.Lane- Specified by:
observein interfaceswim.observable.Observable<V>- Specified by:
observein interfaceswim.api.warp.WarpLane- Overrides:
observein classWarpLaneView
-
unobserve
public CommandLaneView<V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.lane.CommandLane<V>- Specified by:
unobservein interfaceswim.api.Lane- Specified by:
unobservein interfaceswim.observable.Observable<V>- Specified by:
unobservein interfaceswim.api.warp.WarpLane- Overrides:
unobservein classWarpLaneView
-
onCommand
public CommandLaneView<V> onCommand(swim.api.warp.function.OnCommand<V> onCommand)
- Specified by:
onCommandin interfaceswim.api.lane.CommandLane<V>
-
willCommand
public CommandLaneView<V> willCommand(swim.api.warp.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.lane.CommandLane<V>- Specified by:
willCommandin interfaceswim.api.warp.WarpLane- Specified by:
willCommandin classWarpLaneView
-
didCommand
public CommandLaneView<V> didCommand(swim.api.warp.function.DidCommand didCommand)
- Specified by:
didCommandin interfaceswim.api.lane.CommandLane<V>- Specified by:
didCommandin interfaceswim.api.warp.WarpLane- Specified by:
didCommandin classWarpLaneView
-
willUplink
public CommandLaneView<V> willUplink(swim.api.warp.function.WillUplink willUplink)
- Specified by:
willUplinkin interfaceswim.api.lane.CommandLane<V>- Specified by:
willUplinkin interfaceswim.api.warp.WarpLane- Specified by:
willUplinkin classWarpLaneView
-
didUplink
public CommandLaneView<V> didUplink(swim.api.warp.function.DidUplink didUplink)
- Specified by:
didUplinkin interfaceswim.api.lane.CommandLane<V>- Specified by:
didUplinkin interfaceswim.api.warp.WarpLane- Specified by:
didUplinkin classWarpLaneView
-
willEnter
public CommandLaneView<V> willEnter(swim.api.warp.function.WillEnter willEnter)
- Specified by:
willEnterin interfaceswim.api.lane.CommandLane<V>- Specified by:
willEnterin interfaceswim.api.warp.WarpLane- Specified by:
willEnterin classWarpLaneView
-
didEnter
public CommandLaneView<V> didEnter(swim.api.warp.function.DidEnter didEnter)
- Specified by:
didEnterin interfaceswim.api.lane.CommandLane<V>- Specified by:
didEnterin interfaceswim.api.warp.WarpLane- Specified by:
didEnterin classWarpLaneView
-
willLeave
public CommandLaneView<V> willLeave(swim.api.warp.function.WillLeave willLeave)
- Specified by:
willLeavein interfaceswim.api.lane.CommandLane<V>- Specified by:
willLeavein interfaceswim.api.warp.WarpLane- Specified by:
willLeavein classWarpLaneView
-
didLeave
public CommandLaneView<V> didLeave(swim.api.warp.function.DidLeave didLeave)
- Specified by:
didLeavein interfaceswim.api.lane.CommandLane<V>- Specified by:
didLeavein interfaceswim.api.warp.WarpLane- Specified by:
didLeavein classWarpLaneView
-
laneOnCommand
public void laneOnCommand(V value)
-
dispatchOnCommand
public boolean dispatchOnCommand(swim.api.Link link, V value, boolean preemptive)
-
-