Module swim.runtime

Class 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 Detail

      • agentContext

        protected final swim.api.agent.AgentContext agentContext
      • valueForm

        protected swim.structure.Form<V> valueForm
      • flags

        protected int flags
      • 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:
        agentContext in class LaneView
      • valueForm

        public final swim.structure.Form<V> valueForm()
        Specified by:
        valueForm in interface swim.api.lane.ValueLane<V>
      • valueForm

        public <V2> ValueLaneView<V2> valueForm​(swim.structure.Form<V2> valueForm)
        Specified by:
        valueForm in interface swim.api.lane.ValueLane<V>
      • valueClass

        public <V2> ValueLaneView<V2> valueClass​(Class<V2> valueClass)
        Specified by:
        valueClass in interface swim.api.lane.ValueLane<V>
      • setValueForm

        public void setValueForm​(swim.structure.Form<V> valueForm)
      • typesafeObservers

        protected Object typesafeObservers​(Object observers)
      • isResident

        public final boolean isResident()
        Specified by:
        isResident in interface swim.api.lane.ValueLane<V>
      • isResident

        public ValueLaneView<V> isResident​(boolean isResident)
        Specified by:
        isResident in interface swim.api.lane.ValueLane<V>
      • isTransient

        public final boolean isTransient()
        Specified by:
        isTransient in interface swim.api.lane.ValueLane<V>
      • isTransient

        public ValueLaneView<V> isTransient​(boolean isTransient)
        Specified by:
        isTransient in interface swim.api.lane.ValueLane<V>
      • isSigned

        public final boolean isSigned()
        Specified by:
        isSigned in interface swim.api.lane.Lane
      • isSigned

        public ValueLaneView<V> isSigned​(boolean isSigned)
        Specified by:
        isSigned in interface swim.api.lane.Lane
        Specified by:
        isSigned in interface swim.api.lane.ValueLane<V>
      • close

        public void close()
        Specified by:
        close in interface swim.api.lane.Lane
        Specified by:
        close in class LaneView
      • observe

        public ValueLaneView<V> observe​(Object observer)
        Specified by:
        observe in interface swim.api.http.HttpLane<V>
        Specified by:
        observe in interface swim.api.lane.Lane
        Specified by:
        observe in interface swim.observable.Observable<V>
        Specified by:
        observe in interface swim.observable.ObservableValue<V>
        Specified by:
        observe in interface swim.api.lane.ValueLane<V>
        Overrides:
        observe in class LaneView
      • unobserve

        public ValueLaneView<V> unobserve​(Object observer)
        Specified by:
        unobserve in interface swim.api.http.HttpLane<V>
        Specified by:
        unobserve in interface swim.api.lane.Lane
        Specified by:
        unobserve in interface swim.observable.Observable<V>
        Specified by:
        unobserve in interface swim.observable.ObservableValue<V>
        Specified by:
        unobserve in interface swim.api.lane.ValueLane<V>
        Overrides:
        unobserve in class LaneView
      • willSet

        public ValueLaneView<V> willSet​(swim.observable.function.WillSet<V> willSet)
        Specified by:
        willSet in interface swim.observable.ObservableValue<V>
        Specified by:
        willSet in interface swim.api.lane.ValueLane<V>
      • didSet

        public ValueLaneView<V> didSet​(swim.observable.function.DidSet<V> didSet)
        Specified by:
        didSet in interface swim.observable.ObservableValue<V>
        Specified by:
        didSet in interface swim.api.lane.ValueLane<V>
      • willCommand

        public ValueLaneView<V> willCommand​(swim.api.lane.function.WillCommand willCommand)
        Specified by:
        willCommand in interface swim.api.lane.Lane
        Specified by:
        willCommand in interface swim.api.lane.ValueLane<V>
        Specified by:
        willCommand in class LaneView
      • didCommand

        public ValueLaneView<V> didCommand​(swim.api.lane.function.DidCommand didCommand)
        Specified by:
        didCommand in interface swim.api.lane.Lane
        Specified by:
        didCommand in interface swim.api.lane.ValueLane<V>
        Specified by:
        didCommand in class LaneView
      • willUplink

        public ValueLaneView<V> willUplink​(swim.api.lane.function.WillUplink willUplink)
        Specified by:
        willUplink in interface swim.api.lane.Lane
        Specified by:
        willUplink in interface swim.api.lane.ValueLane<V>
        Specified by:
        willUplink in class LaneView
      • didUplink

        public ValueLaneView<V> didUplink​(swim.api.lane.function.DidUplink didUplink)
        Specified by:
        didUplink in interface swim.api.lane.Lane
        Specified by:
        didUplink in interface swim.api.lane.ValueLane<V>
        Specified by:
        didUplink in class LaneView
      • willEnter

        public ValueLaneView<V> willEnter​(swim.api.lane.function.WillEnter willEnter)
        Specified by:
        willEnter in interface swim.api.lane.Lane
        Specified by:
        willEnter in interface swim.api.lane.ValueLane<V>
        Specified by:
        willEnter in class LaneView
      • didEnter

        public ValueLaneView<V> didEnter​(swim.api.lane.function.DidEnter didEnter)
        Specified by:
        didEnter in interface swim.api.lane.Lane
        Specified by:
        didEnter in interface swim.api.lane.ValueLane<V>
        Specified by:
        didEnter in class LaneView
      • willLeave

        public ValueLaneView<V> willLeave​(swim.api.lane.function.WillLeave willLeave)
        Specified by:
        willLeave in interface swim.api.lane.Lane
        Specified by:
        willLeave in interface swim.api.lane.ValueLane<V>
        Specified by:
        willLeave in class LaneView
      • didLeave

        public ValueLaneView<V> didLeave​(swim.api.lane.function.DidLeave didLeave)
        Specified by:
        didLeave in interface swim.api.lane.Lane
        Specified by:
        didLeave in interface swim.api.lane.ValueLane<V>
        Specified by:
        didLeave in class LaneView
      • decodeRequest

        public ValueLaneView<V> decodeRequest​(swim.api.http.function.DecodeRequestHttp<Object> decodeRequest)
        Specified by:
        decodeRequest in interface swim.api.http.HttpLane<V>
        Specified by:
        decodeRequest in interface swim.api.lane.Lane
        Specified by:
        decodeRequest in interface swim.api.lane.ValueLane<V>
        Specified by:
        decodeRequest in class LaneView
      • willRequest

        public ValueLaneView<V> willRequest​(swim.api.http.function.WillRequestHttp<?> willRequest)
        Specified by:
        willRequest in interface swim.api.http.HttpLane<V>
        Specified by:
        willRequest in interface swim.api.lane.Lane
        Specified by:
        willRequest in interface swim.api.lane.ValueLane<V>
        Specified by:
        willRequest in class LaneView
      • didRequest

        public ValueLaneView<V> didRequest​(swim.api.http.function.DidRequestHttp<Object> didRequest)
        Specified by:
        didRequest in interface swim.api.http.HttpLane<V>
        Specified by:
        didRequest in interface swim.api.lane.Lane
        Specified by:
        didRequest in interface swim.api.lane.ValueLane<V>
        Specified by:
        didRequest in class LaneView
      • doRespond

        public ValueLaneView<V> doRespond​(swim.api.http.function.DoRespondHttp<Object> doRespond)
        Specified by:
        doRespond in interface swim.api.http.HttpLane<V>
        Specified by:
        doRespond in interface swim.api.lane.Lane
        Specified by:
        doRespond in interface swim.api.lane.ValueLane<V>
        Specified by:
        doRespond in class LaneView
      • willRespond

        public ValueLaneView<V> willRespond​(swim.api.http.function.WillRespondHttp<?> willRespond)
        Specified by:
        willRespond in interface swim.api.http.HttpLane<V>
        Specified by:
        willRespond in interface swim.api.lane.Lane
        Specified by:
        willRespond in interface swim.api.lane.ValueLane<V>
        Specified by:
        willRespond in class LaneView
      • didRespond

        public ValueLaneView<V> didRespond​(swim.api.http.function.DidRespondHttp<?> didRespond)
        Specified by:
        didRespond in interface swim.api.http.HttpLane<V>
        Specified by:
        didRespond in interface swim.api.lane.Lane
        Specified by:
        didRespond in interface swim.api.lane.ValueLane<V>
        Specified by:
        didRespond in class LaneView
      • 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)
      • laneWillSet

        public V laneWillSet​(V newValue)
      • laneDidSet

        public void laneDidSet​(V newValue,
                               V oldValue)
      • get

        public V get()
        Specified by:
        get in interface swim.observable.ObservableValue<V>
        Specified by:
        get in interface swim.streamlet.Outlet<V>
        Specified by:
        get in interface swim.api.lane.ValueLane<V>
      • set

        public V set​(V newValue)
        Specified by:
        set in interface swim.observable.ObservableValue<V>
        Specified by:
        set in interface swim.api.lane.ValueLane<V>
      • input

        public swim.streamlet.Outlet<? extends V> input()
        Specified by:
        input in interface swim.streamlet.Inlet<V>
      • bindInput

        public void bindInput​(swim.streamlet.Outlet<? extends V> input)
        Specified by:
        bindInput in interface swim.streamlet.Inlet<V>
      • unbindInput

        public void unbindInput()
        Specified by:
        unbindInput in interface swim.streamlet.Inlet<V>
      • disconnectInputs

        public void disconnectInputs()
        Specified by:
        disconnectInputs in interface swim.streamlet.Inlet<V>
        Specified by:
        disconnectInputs in interface swim.streamlet.Outlet<V>
      • outputIterator

        public Iterator<swim.streamlet.Inlet<? super V>> outputIterator()
        Specified by:
        outputIterator in interface swim.streamlet.Outlet<V>
      • bindOutput

        public void bindOutput​(swim.streamlet.Inlet<? super V> output)
        Specified by:
        bindOutput in interface swim.streamlet.Outlet<V>
      • unbindOutput

        public void unbindOutput​(swim.streamlet.Inlet<? super V> output)
        Specified by:
        unbindOutput in interface swim.streamlet.Outlet<V>
      • unbindOutputs

        public void unbindOutputs()
        Specified by:
        unbindOutputs in interface swim.streamlet.Outlet<V>
      • disconnectOutputs

        public void disconnectOutputs()
        Specified by:
        disconnectOutputs in interface swim.streamlet.Inlet<V>
        Specified by:
        disconnectOutputs in interface swim.streamlet.Outlet<V>
      • invalidateOutput

        public void invalidateOutput()
        Specified by:
        invalidateOutput in interface swim.streamlet.Inlet<V>
      • invalidateInput

        public void invalidateInput()
        Specified by:
        invalidateInput in interface swim.streamlet.Outlet<V>
      • invalidate

        public void invalidate()
      • reconcileOutput

        public void reconcileOutput​(int version)
        Specified by:
        reconcileOutput in interface swim.streamlet.Inlet<V>
      • reconcileInput

        public void reconcileInput​(int version)
        Specified by:
        reconcileInput in interface swim.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)