- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.LaneView
-
- swim.runtime.warp.WarpLaneView
-
- swim.runtime.lane.ValueLaneView<V>
-
- All Implemented Interfaces:
swim.api.downlink.DownlinkFactory,swim.api.Lane,swim.api.lane.ValueLane<V>,swim.api.ref.SwimRef,swim.api.warp.WarpLane,swim.observable.Observable<Object>,swim.observable.ObservableValue<V>,CellContext,TierBinding,swim.streamlet.Inlet<V>,swim.streamlet.Outlet<V>,swim.util.Log
public class ValueLaneView<V> extends WarpLaneView 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-
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 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()voiddecohere()voiddecohereInput()voiddecohereOutput()ValueLaneView<V>didCommand(swim.api.warp.function.DidCommand didCommand)protected voiddidDecohere()ValueLaneView<V>didEnter(swim.api.warp.function.DidEnter didEnter)ValueLaneView<V>didLeave(swim.api.warp.function.DidLeave didLeave)protected voiddidRecohere(int version)ValueLaneView<V>didSet(swim.observable.function.DidSet<V> didSet)ValueLaneView<V>didUplink(swim.api.warp.function.DidUplink didUplink)voiddisconnectInputs()voiddisconnectOutputs()booleandispatchDidSet(swim.api.Link link, V newValue, V oldValue, boolean preemptive)Map.Entry<Boolean,V>dispatchWillSet(swim.api.Link link, V newValue, boolean preemptive)Vget()swim.streamlet.Outlet<? extends V>input()booleanisResident()ValueLaneView<V>isResident(boolean isResident)booleanisTransient()ValueLaneView<V>isTransient(boolean isTransient)ValueLaneModellaneBinding()voidlaneDidSet(V newValue, V oldValue)VlaneWillSet(V newValue)ValueLaneView<V>observe(Object observer)protected voidonDecohere()protected voidonRecohere(int version)Iterator<swim.streamlet.Inlet<? super V>>outputIterator()voidrecohere(int version)voidrecohereInput(int version)voidrecohereOutput(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.warp.function.WillCommand willCommand)protected voidwillDecohere()ValueLaneView<V>willEnter(swim.api.warp.function.WillEnter willEnter)ValueLaneView<V>willLeave(swim.api.warp.function.WillLeave willLeave)protected voidwillRecohere(int version)ValueLaneView<V>willSet(swim.observable.function.WillSet<V> willSet)ValueLaneView<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
-
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
-
laneBinding
public ValueLaneModel laneBinding()
- Specified by:
laneBindingin 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>
-
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 ValueLaneView<V> observe(Object observer)
- Specified by:
observein interfaceswim.api.Lane- Specified by:
observein interfaceswim.observable.Observable<V>- Specified by:
observein interfaceswim.observable.ObservableValue<V>- Specified by:
observein interfaceswim.api.lane.ValueLane<V>- Specified by:
observein interfaceswim.api.warp.WarpLane- Overrides:
observein classWarpLaneView
-
unobserve
public ValueLaneView<V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.Lane- Specified by:
unobservein interfaceswim.observable.Observable<V>- Specified by:
unobservein interfaceswim.observable.ObservableValue<V>- Specified by:
unobservein interfaceswim.api.lane.ValueLane<V>- Specified by:
unobservein interfaceswim.api.warp.WarpLane- Overrides:
unobservein classWarpLaneView
-
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.warp.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.lane.ValueLane<V>- Specified by:
willCommandin interfaceswim.api.warp.WarpLane- Specified by:
willCommandin classWarpLaneView
-
didCommand
public ValueLaneView<V> didCommand(swim.api.warp.function.DidCommand didCommand)
- Specified by:
didCommandin interfaceswim.api.lane.ValueLane<V>- Specified by:
didCommandin interfaceswim.api.warp.WarpLane- Specified by:
didCommandin classWarpLaneView
-
willUplink
public ValueLaneView<V> willUplink(swim.api.warp.function.WillUplink willUplink)
- Specified by:
willUplinkin interfaceswim.api.lane.ValueLane<V>- Specified by:
willUplinkin interfaceswim.api.warp.WarpLane- Specified by:
willUplinkin classWarpLaneView
-
didUplink
public ValueLaneView<V> didUplink(swim.api.warp.function.DidUplink didUplink)
- Specified by:
didUplinkin interfaceswim.api.lane.ValueLane<V>- Specified by:
didUplinkin interfaceswim.api.warp.WarpLane- Specified by:
didUplinkin classWarpLaneView
-
willEnter
public ValueLaneView<V> willEnter(swim.api.warp.function.WillEnter willEnter)
- Specified by:
willEnterin interfaceswim.api.lane.ValueLane<V>- Specified by:
willEnterin interfaceswim.api.warp.WarpLane- Specified by:
willEnterin classWarpLaneView
-
didEnter
public ValueLaneView<V> didEnter(swim.api.warp.function.DidEnter didEnter)
- Specified by:
didEnterin interfaceswim.api.lane.ValueLane<V>- Specified by:
didEnterin interfaceswim.api.warp.WarpLane- Specified by:
didEnterin classWarpLaneView
-
willLeave
public ValueLaneView<V> willLeave(swim.api.warp.function.WillLeave willLeave)
- Specified by:
willLeavein interfaceswim.api.lane.ValueLane<V>- Specified by:
willLeavein interfaceswim.api.warp.WarpLane- Specified by:
willLeavein classWarpLaneView
-
didLeave
public ValueLaneView<V> didLeave(swim.api.warp.function.DidLeave didLeave)
- Specified by:
didLeavein interfaceswim.api.lane.ValueLane<V>- Specified by:
didLeavein interfaceswim.api.warp.WarpLane- Specified by:
didLeavein classWarpLaneView
-
dispatchWillSet
public Map.Entry<Boolean,V> dispatchWillSet(swim.api.Link link, V newValue, boolean preemptive)
-
dispatchDidSet
public 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()
-
decohereOutput
public void decohereOutput()
- Specified by:
decohereOutputin interfaceswim.streamlet.Inlet<V>
-
decohereInput
public void decohereInput()
- Specified by:
decohereInputin interfaceswim.streamlet.Outlet<V>
-
decohere
public void decohere()
-
recohereOutput
public void recohereOutput(int version)
- Specified by:
recohereOutputin interfaceswim.streamlet.Inlet<V>
-
recohereInput
public void recohereInput(int version)
- Specified by:
recohereInputin interfaceswim.streamlet.Outlet<V>
-
recohere
public void recohere(int version)
-
willDecohere
protected void willDecohere()
-
onDecohere
protected void onDecohere()
-
didDecohere
protected void didDecohere()
-
willRecohere
protected void willRecohere(int version)
-
onRecohere
protected void onRecohere(int version)
-
didRecohere
protected void didRecohere(int version)
-
-