- java.lang.Object
-
- swim.runtime.lane.LaneView
-
- swim.runtime.lane.ValueLaneView<V>
-
- All Implemented Interfaces:
swim.api.http.HttpLane<Object>,swim.api.lane.Lane,swim.api.lane.ValueLane<V>,swim.observable.Observable<Object>,swim.observable.ObservableValue<V>,swim.streamlet.Inlet<V>,swim.streamlet.Outlet<V>,swim.util.Log
public class ValueLaneView<V> extends LaneView implements swim.api.lane.ValueLane<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.api.agent.AgentContextagentContextprotected intflagsprotected swim.streamlet.Outlet<? extends V>inputprotected ValueLaneModellaneBindingprotected swim.streamlet.Inlet<? super V>[]outputsprotected swim.structure.Form<V>valueFormprotected intversion
-
Constructor Summary
Constructors Constructor Description ValueLaneView(swim.api.agent.AgentContext agentContext, swim.structure.Form<V> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description swim.api.agent.AgentContextagentContext()voidbindInput(swim.streamlet.Outlet<? extends V> input)voidbindOutput(swim.streamlet.Inlet<? super V> output)voidclose()ValueLaneModelcreateLaneBinding()ValueLaneView<V>decodeRequest(swim.api.http.function.DecodeRequestHttp<Object> decodeRequest)ValueLaneView<V>didCommand(swim.api.lane.function.DidCommand didCommand)ValueLaneView<V>didEnter(swim.api.lane.function.DidEnter didEnter)protected voiddidInvalidate()ValueLaneView<V>didLeave(swim.api.lane.function.DidLeave didLeave)protected voiddidReconcile(int version)ValueLaneView<V>didRequest(swim.api.http.function.DidRequestHttp<Object> didRequest)ValueLaneView<V>didRespond(swim.api.http.function.DidRespondHttp<?> didRespond)ValueLaneView<V>didSet(swim.observable.function.DidSet<V> didSet)ValueLaneView<V>didUplink(swim.api.lane.function.DidUplink didUplink)voiddisconnectInputs()voiddisconnectOutputs()protected booleandispatchDidSet(swim.api.Link link, V newValue, V oldValue, boolean preemptive)protected Map.Entry<Boolean,V>dispatchWillSet(swim.api.Link link, V newValue, boolean preemptive)ValueLaneView<V>doRespond(swim.api.http.function.DoRespondHttp<Object> doRespond)Vget()ValueLaneModelgetLaneBinding()swim.streamlet.Outlet<? extends V>input()voidinvalidate()voidinvalidateInput()voidinvalidateOutput()booleanisResident()ValueLaneView<V>isResident(boolean isResident)booleanisSigned()ValueLaneView<V>isSigned(boolean isSigned)booleanisTransient()ValueLaneView<V>isTransient(boolean isTransient)voidlaneDidSet(V newValue, V oldValue)VlaneWillSet(V newValue)ValueLaneView<V>observe(Object observer)protected voidonInvalidate()protected voidonReconcile(int version)Iterator<swim.streamlet.Inlet<? super V>>outputIterator()voidreconcile(int version)voidreconcileInput(int version)voidreconcileOutput(int version)Vset(V newValue)voidsetValueForm(swim.structure.Form<V> valueForm)protected ObjecttypesafeObservers(Object observers)voidunbindInput()voidunbindOutput(swim.streamlet.Inlet<? super V> output)voidunbindOutputs()ValueLaneView<V>unobserve(Object observer)<V2> ValueLaneView<V2>valueClass(Class<V2> valueClass)swim.structure.Form<V>valueForm()<V2> ValueLaneView<V2>valueForm(swim.structure.Form<V2> valueForm)ValueLaneView<V>willCommand(swim.api.lane.function.WillCommand willCommand)ValueLaneView<V>willEnter(swim.api.lane.function.WillEnter willEnter)protected voidwillInvalidate()ValueLaneView<V>willLeave(swim.api.lane.function.WillLeave willLeave)protected voidwillReconcile(int version)ValueLaneView<V>willRequest(swim.api.http.function.WillRequestHttp<?> willRequest)ValueLaneView<V>willRespond(swim.api.http.function.WillRespondHttp<?> willRespond)ValueLaneView<V>willSet(swim.observable.function.WillSet<V> willSet)ValueLaneView<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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
agentContext
protected final swim.api.agent.AgentContext agentContext
-
valueForm
protected swim.structure.Form<V> valueForm
-
flags
protected int flags
-
laneBinding
protected ValueLaneModel laneBinding
-
input
protected swim.streamlet.Outlet<? extends V> input
-
outputs
protected swim.streamlet.Inlet<? super V>[] outputs
-
version
protected int version
-
-
Constructor Detail
-
ValueLaneView
public ValueLaneView(swim.api.agent.AgentContext agentContext, swim.structure.Form<V> valueForm)
-
-
Method Detail
-
agentContext
public swim.api.agent.AgentContext agentContext()
- Specified by:
agentContextin classLaneView
-
getLaneBinding
public ValueLaneModel getLaneBinding()
- Specified by:
getLaneBindingin classLaneView
-
createLaneBinding
public ValueLaneModel createLaneBinding()
- Specified by:
createLaneBindingin classLaneView
-
valueForm
public final swim.structure.Form<V> valueForm()
- Specified by:
valueFormin interfaceswim.api.lane.ValueLane<V>
-
valueForm
public <V2> ValueLaneView<V2> valueForm(swim.structure.Form<V2> valueForm)
- Specified by:
valueFormin interfaceswim.api.lane.ValueLane<V>
-
valueClass
public <V2> ValueLaneView<V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClassin interfaceswim.api.lane.ValueLane<V>
-
setValueForm
public void setValueForm(swim.structure.Form<V> valueForm)
-
isResident
public final boolean isResident()
- Specified by:
isResidentin interfaceswim.api.lane.ValueLane<V>
-
isResident
public ValueLaneView<V> isResident(boolean isResident)
- Specified by:
isResidentin interfaceswim.api.lane.ValueLane<V>
-
isTransient
public final boolean isTransient()
- Specified by:
isTransientin interfaceswim.api.lane.ValueLane<V>
-
isTransient
public ValueLaneView<V> isTransient(boolean isTransient)
- Specified by:
isTransientin interfaceswim.api.lane.ValueLane<V>
-
isSigned
public final boolean isSigned()
- Specified by:
isSignedin interfaceswim.api.lane.Lane
-
isSigned
public ValueLaneView<V> isSigned(boolean isSigned)
- Specified by:
isSignedin interfaceswim.api.lane.Lane- Specified by:
isSignedin interfaceswim.api.lane.ValueLane<V>
-
close
public void close()
-
observe
public ValueLaneView<V> observe(Object observer)
- Specified by:
observein interfaceswim.api.http.HttpLane<V>- Specified by:
observein interfaceswim.api.lane.Lane- Specified by:
observein interfaceswim.observable.Observable<V>- Specified by:
observein interfaceswim.observable.ObservableValue<V>- Specified by:
observein interfaceswim.api.lane.ValueLane<V>- Overrides:
observein classLaneView
-
unobserve
public ValueLaneView<V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.http.HttpLane<V>- Specified by:
unobservein interfaceswim.api.lane.Lane- Specified by:
unobservein interfaceswim.observable.Observable<V>- Specified by:
unobservein interfaceswim.observable.ObservableValue<V>- Specified by:
unobservein interfaceswim.api.lane.ValueLane<V>- Overrides:
unobservein classLaneView
-
willSet
public ValueLaneView<V> willSet(swim.observable.function.WillSet<V> willSet)
-
didSet
public ValueLaneView<V> didSet(swim.observable.function.DidSet<V> didSet)
-
willCommand
public ValueLaneView<V> willCommand(swim.api.lane.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.lane.Lane- Specified by:
willCommandin interfaceswim.api.lane.ValueLane<V>- Specified by:
willCommandin classLaneView
-
didCommand
public ValueLaneView<V> didCommand(swim.api.lane.function.DidCommand didCommand)
- Specified by:
didCommandin interfaceswim.api.lane.Lane- Specified by:
didCommandin interfaceswim.api.lane.ValueLane<V>- Specified by:
didCommandin classLaneView
-
willUplink
public ValueLaneView<V> willUplink(swim.api.lane.function.WillUplink willUplink)
- Specified by:
willUplinkin interfaceswim.api.lane.Lane- Specified by:
willUplinkin interfaceswim.api.lane.ValueLane<V>- Specified by:
willUplinkin classLaneView
-
didUplink
public ValueLaneView<V> didUplink(swim.api.lane.function.DidUplink didUplink)
-
willEnter
public ValueLaneView<V> willEnter(swim.api.lane.function.WillEnter willEnter)
-
didEnter
public ValueLaneView<V> didEnter(swim.api.lane.function.DidEnter didEnter)
-
willLeave
public ValueLaneView<V> willLeave(swim.api.lane.function.WillLeave willLeave)
-
didLeave
public ValueLaneView<V> didLeave(swim.api.lane.function.DidLeave didLeave)
-
decodeRequest
public ValueLaneView<V> decodeRequest(swim.api.http.function.DecodeRequestHttp<Object> decodeRequest)
- Specified by:
decodeRequestin interfaceswim.api.http.HttpLane<V>- Specified by:
decodeRequestin interfaceswim.api.lane.Lane- Specified by:
decodeRequestin interfaceswim.api.lane.ValueLane<V>- Specified by:
decodeRequestin classLaneView
-
willRequest
public ValueLaneView<V> willRequest(swim.api.http.function.WillRequestHttp<?> willRequest)
- Specified by:
willRequestin interfaceswim.api.http.HttpLane<V>- Specified by:
willRequestin interfaceswim.api.lane.Lane- Specified by:
willRequestin interfaceswim.api.lane.ValueLane<V>- Specified by:
willRequestin classLaneView
-
didRequest
public ValueLaneView<V> didRequest(swim.api.http.function.DidRequestHttp<Object> didRequest)
- Specified by:
didRequestin interfaceswim.api.http.HttpLane<V>- Specified by:
didRequestin interfaceswim.api.lane.Lane- Specified by:
didRequestin interfaceswim.api.lane.ValueLane<V>- Specified by:
didRequestin classLaneView
-
doRespond
public ValueLaneView<V> doRespond(swim.api.http.function.DoRespondHttp<Object> doRespond)
-
willRespond
public ValueLaneView<V> willRespond(swim.api.http.function.WillRespondHttp<?> willRespond)
- Specified by:
willRespondin interfaceswim.api.http.HttpLane<V>- Specified by:
willRespondin interfaceswim.api.lane.Lane- Specified by:
willRespondin interfaceswim.api.lane.ValueLane<V>- Specified by:
willRespondin classLaneView
-
didRespond
public ValueLaneView<V> didRespond(swim.api.http.function.DidRespondHttp<?> didRespond)
- Specified by:
didRespondin interfaceswim.api.http.HttpLane<V>- Specified by:
didRespondin interfaceswim.api.lane.Lane- Specified by:
didRespondin interfaceswim.api.lane.ValueLane<V>- Specified by:
didRespondin classLaneView
-
dispatchWillSet
protected Map.Entry<Boolean,V> dispatchWillSet(swim.api.Link link, V newValue, boolean preemptive)
-
dispatchDidSet
protected boolean dispatchDidSet(swim.api.Link link, V newValue, V oldValue, boolean preemptive)
-
get
public V get()
-
input
public swim.streamlet.Outlet<? extends V> input()
- Specified by:
inputin interfaceswim.streamlet.Inlet<V>
-
bindInput
public void bindInput(swim.streamlet.Outlet<? extends V> input)
- Specified by:
bindInputin interfaceswim.streamlet.Inlet<V>
-
unbindInput
public void unbindInput()
- Specified by:
unbindInputin interfaceswim.streamlet.Inlet<V>
-
disconnectInputs
public void disconnectInputs()
-
outputIterator
public Iterator<swim.streamlet.Inlet<? super V>> outputIterator()
- Specified by:
outputIteratorin interfaceswim.streamlet.Outlet<V>
-
bindOutput
public void bindOutput(swim.streamlet.Inlet<? super V> output)
- Specified by:
bindOutputin interfaceswim.streamlet.Outlet<V>
-
unbindOutput
public void unbindOutput(swim.streamlet.Inlet<? super V> output)
- Specified by:
unbindOutputin interfaceswim.streamlet.Outlet<V>
-
unbindOutputs
public void unbindOutputs()
- Specified by:
unbindOutputsin interfaceswim.streamlet.Outlet<V>
-
disconnectOutputs
public void disconnectOutputs()
-
invalidateOutput
public void invalidateOutput()
- Specified by:
invalidateOutputin interfaceswim.streamlet.Inlet<V>
-
invalidateInput
public void invalidateInput()
- Specified by:
invalidateInputin interfaceswim.streamlet.Outlet<V>
-
invalidate
public void invalidate()
-
reconcileOutput
public void reconcileOutput(int version)
- Specified by:
reconcileOutputin interfaceswim.streamlet.Inlet<V>
-
reconcileInput
public void reconcileInput(int version)
- Specified by:
reconcileInputin interfaceswim.streamlet.Outlet<V>
-
reconcile
public void reconcile(int version)
-
willInvalidate
protected void willInvalidate()
-
onInvalidate
protected void onInvalidate()
-
didInvalidate
protected void didInvalidate()
-
willReconcile
protected void willReconcile(int version)
-
onReconcile
protected void onReconcile(int version)
-
didReconcile
protected void didReconcile(int version)
-
-