- java.lang.Object
-
- swim.runtime.lane.LaneView
-
- swim.runtime.lane.CommandLaneView<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.api.agent.AgentContextagentContextprotected CommandLaneModellaneBindingprotected swim.structure.Form<V>valueForm
-
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>decodeRequest(swim.api.http.function.DecodeRequestHttp<Object> decodeRequest)CommandLaneView<V>didCommand(swim.api.lane.function.DidCommand didCommand)CommandLaneView<V>didEnter(swim.api.lane.function.DidEnter didEnter)CommandLaneView<V>didLeave(swim.api.lane.function.DidLeave didLeave)CommandLaneView<V>didRequest(swim.api.http.function.DidRequestHttp<Object> didRequest)CommandLaneView<V>didRespond(swim.api.http.function.DidRespondHttp<?> didRespond)CommandLaneView<V>didUplink(swim.api.lane.function.DidUplink didUplink)protected booleandispatchOnCommand(swim.api.Link link, V value, boolean preemptive)CommandLaneView<V>doRespond(swim.api.http.function.DoRespondHttp<Object> doRespond)CommandLaneModelgetLaneBinding()booleanisSigned()CommandLaneView<V>isSigned(boolean isSigned)voidlaneOnCommand(V value)CommandLaneView<V>observe(Object observer)CommandLaneView<V>onCommand(swim.api.lane.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.lane.function.WillCommand willCommand)CommandLaneView<V>willEnter(swim.api.lane.function.WillEnter willEnter)CommandLaneView<V>willLeave(swim.api.lane.function.WillLeave willLeave)CommandLaneView<V>willRequest(swim.api.http.function.WillRequestHttp<?> willRequest)CommandLaneView<V>willRespond(swim.api.http.function.WillRespondHttp<?> willRespond)CommandLaneView<V>willUplink(swim.api.lane.function.WillUplink willUplink)-
Methods inherited from class swim.runtime.lane.LaneView
debug, dispatchDecodeRequest, dispatchDidCommand, dispatchDidEnter, dispatchDidLeave, dispatchDidRequest, dispatchDidRespond, dispatchDidUplink, dispatchDoRespond, dispatchWillCommand, dispatchWillEnter, dispatchWillLeave, dispatchWillRequest, dispatchWillRespond, dispatchWillUplink, error, hostUri, info, laneDecodeRequest, laneDidCommand, laneDidEnter, laneDidFail, laneDidLeave, laneDidRequest, laneDidRespond, laneDidUplink, laneDoRespond, laneUri, laneWillCommand, laneWillEnter, laneWillLeave, laneWillRequest, laneWillRespond, laneWillUplink, nodeUri, trace, unwrapLane, warn
-
-
-
-
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
-
getLaneBinding
public CommandLaneModel getLaneBinding()
- Specified by:
getLaneBindingin 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)
-
isSigned
public final boolean isSigned()
- Specified by:
isSignedin interfaceswim.api.lane.Lane
-
isSigned
public CommandLaneView<V> isSigned(boolean isSigned)
- Specified by:
isSignedin interfaceswim.api.lane.CommandLane<V>- Specified by:
isSignedin interfaceswim.api.lane.Lane
-
close
public void close()
-
observe
public CommandLaneView<V> observe(Object observer)
-
unobserve
public CommandLaneView<V> unobserve(Object observer)
-
onCommand
public CommandLaneView<V> onCommand(swim.api.lane.function.OnCommand<V> onCommand)
- Specified by:
onCommandin interfaceswim.api.lane.CommandLane<V>
-
willCommand
public CommandLaneView<V> willCommand(swim.api.lane.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.lane.CommandLane<V>- Specified by:
willCommandin interfaceswim.api.lane.Lane- Specified by:
willCommandin classLaneView
-
didCommand
public CommandLaneView<V> didCommand(swim.api.lane.function.DidCommand didCommand)
- Specified by:
didCommandin interfaceswim.api.lane.CommandLane<V>- Specified by:
didCommandin interfaceswim.api.lane.Lane- Specified by:
didCommandin classLaneView
-
willUplink
public CommandLaneView<V> willUplink(swim.api.lane.function.WillUplink willUplink)
- Specified by:
willUplinkin interfaceswim.api.lane.CommandLane<V>- Specified by:
willUplinkin interfaceswim.api.lane.Lane- Specified by:
willUplinkin classLaneView
-
didUplink
public CommandLaneView<V> didUplink(swim.api.lane.function.DidUplink didUplink)
-
willEnter
public CommandLaneView<V> willEnter(swim.api.lane.function.WillEnter willEnter)
-
didEnter
public CommandLaneView<V> didEnter(swim.api.lane.function.DidEnter didEnter)
-
willLeave
public CommandLaneView<V> willLeave(swim.api.lane.function.WillLeave willLeave)
-
didLeave
public CommandLaneView<V> didLeave(swim.api.lane.function.DidLeave didLeave)
-
decodeRequest
public CommandLaneView<V> decodeRequest(swim.api.http.function.DecodeRequestHttp<Object> decodeRequest)
- Specified by:
decodeRequestin interfaceswim.api.lane.CommandLane<V>- Specified by:
decodeRequestin interfaceswim.api.http.HttpLane<V>- Specified by:
decodeRequestin interfaceswim.api.lane.Lane- Specified by:
decodeRequestin classLaneView
-
willRequest
public CommandLaneView<V> willRequest(swim.api.http.function.WillRequestHttp<?> willRequest)
- Specified by:
willRequestin interfaceswim.api.lane.CommandLane<V>- Specified by:
willRequestin interfaceswim.api.http.HttpLane<V>- Specified by:
willRequestin interfaceswim.api.lane.Lane- Specified by:
willRequestin classLaneView
-
didRequest
public CommandLaneView<V> didRequest(swim.api.http.function.DidRequestHttp<Object> didRequest)
- Specified by:
didRequestin interfaceswim.api.lane.CommandLane<V>- Specified by:
didRequestin interfaceswim.api.http.HttpLane<V>- Specified by:
didRequestin interfaceswim.api.lane.Lane- Specified by:
didRequestin classLaneView
-
doRespond
public CommandLaneView<V> doRespond(swim.api.http.function.DoRespondHttp<Object> doRespond)
-
willRespond
public CommandLaneView<V> willRespond(swim.api.http.function.WillRespondHttp<?> willRespond)
- Specified by:
willRespondin interfaceswim.api.lane.CommandLane<V>- Specified by:
willRespondin interfaceswim.api.http.HttpLane<V>- Specified by:
willRespondin interfaceswim.api.lane.Lane- Specified by:
willRespondin classLaneView
-
didRespond
public CommandLaneView<V> didRespond(swim.api.http.function.DidRespondHttp<?> didRespond)
- Specified by:
didRespondin interfaceswim.api.lane.CommandLane<V>- Specified by:
didRespondin interfaceswim.api.http.HttpLane<V>- Specified by:
didRespondin interfaceswim.api.lane.Lane- Specified by:
didRespondin classLaneView
-
laneOnCommand
public void laneOnCommand(V value)
-
dispatchOnCommand
protected boolean dispatchOnCommand(swim.api.Link link, V value, boolean preemptive)
-
-