- java.lang.Object
-
- swim.runtime.downlink.DownlinkModem
-
- swim.runtime.downlink.DownlinkModel<View>
-
- swim.runtime.downlink.SupplyDownlinkModem<ListDownlinkView<?>>
-
- swim.runtime.downlink.ListDownlinkModel
-
- All Implemented Interfaces:
LinkBinding,swim.util.Log
public class ListDownlinkModel extends SupplyDownlinkModem<ListDownlinkView<?>>
-
-
Field Summary
Fields Modifier and Type Field Description protected intflagsprotected swim.collections.STreeList<swim.structure.Value>stateprotected static intSTATEFUL-
Fields inherited from class swim.runtime.downlink.DownlinkModel
views
-
Fields inherited from class swim.runtime.downlink.DownlinkModem
body, cellContext, hostUri, laneUri, linkContext, meshUri, nodeUri, prio, rate, status
-
-
Constructor Summary
Constructors Constructor Description ListDownlinkModel(swim.uri.Uri meshUri, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, float rate, swim.structure.Value body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> booleanadd(ListDownlinkView<V> view, int index, V newObject)<V> booleanadd(ListDownlinkView<V> view, int index, V newObject, Object key)voidclear(ListDownlinkView<?> view)booleancontains(Object value)protected voiddidAddDownlink(ListDownlinkView<?> view)voiddrop(ListDownlinkView<?> view, int lower)ListIterator<Map.Entry<Object,swim.structure.Value>>entryIterator()swim.structure.Valueget(int index, Object key)Map.Entry<Object,swim.structure.Value>getEntry(int index)Map.Entry<Object,swim.structure.Value>getEntry(int index, Object key)intindexOf(Object o)booleanisEmpty()booleanisStateful()ListDownlinkModelisStateful(boolean isStateful)Iterator<swim.structure.Value>iterator()ListIterator<Object>keyIterator()intlastIndexOf(Object o)ListIterator<swim.structure.Value>listIterator()ListIterator<swim.structure.Value>listIterator(int index)<V> voidmove(ListDownlinkView<V> view, int fromIndex, int toIndex)<V> voidmove(ListDownlinkView<V> view, int fromIndex, int toIndex, Object key)protected voidpushDownEvent(swim.warp.EventMessage message)<V> Vremove(ListDownlinkView<V> view, int index)<V> Vremove(ListDownlinkView<V> view, int index, Object key)<V> Vset(ListDownlinkView<V> view, int index, V newObject)<V> Vset(ListDownlinkView<V> view, int index, V newObject, Object key)intsize()List<swim.structure.Value>subList(int fromIndex, int toIndex)voidtake(ListDownlinkView<?> view, int upper)Object[]toArray()<V> V[]toArray(V[] array)-
Methods inherited from class swim.runtime.downlink.SupplyDownlinkModem
nextUpQueue, queueUp, upQueueIsEmpty
-
Methods inherited from class swim.runtime.downlink.DownlinkModel
addDownlink, didCloseUp, didConnect, didDisconnect, didFail, didRemoveDownlink, keepLinked, keepSynced, pullUpCommand, pullUpLink, pullUpSync, pullUpUnlink, pushDownLinked, pushDownSynced, pushDownUnlinked, removeDownlink, reopen
-
Methods inherited from class swim.runtime.downlink.DownlinkModem
body, cellContext, cipherSuite, cipherSuiteDown, closeDown, command, command, cueDown, cueUp, debug, debugDown, didClose, didLink, didOpen, didSync, didUnlink, error, errorDown, feedDown, feedUp, hostUri, info, infoDown, isConnected, isConnectedDown, isRemote, isRemoteDown, isSecure, isSecureDown, laneUri, link, linkContext, linkRequest, localAddress, localAddressDown, localCertificates, localCertificatesDown, localIdentity, localIdentityDown, localPrincipal, localPrincipalDown, meshUri, nextUpCue, nextUpCueCommand, nextUpQueueCommand, nodeUri, onCommand, onEvent, openDown, prio, pullUp, pushDown, pushDownEnvelope, pushUp, rate, remoteAddress, remoteAddressDown, remoteCertificates, remoteCertificatesDown, remoteIdentity, remoteIdentityDown, remotePrincipal, remotePrincipalDown, securityProtocol, securityProtocolDown, setCellContext, setLinkContext, skipDown, sync, syncRequest, trace, traceDown, unlink, unlinkRequest, unwrapLink, warn, warnDown, willLink, willSync, willUnlink
-
-
-
-
Field Detail
-
flags
protected int flags
-
state
protected final swim.collections.STreeList<swim.structure.Value> state
-
STATEFUL
protected static final int STATEFUL
- See Also:
- Constant Field Values
-
-
Method Detail
-
isStateful
public final boolean isStateful()
-
isStateful
public ListDownlinkModel isStateful(boolean isStateful)
-
pushDownEvent
protected void pushDownEvent(swim.warp.EventMessage message)
- Overrides:
pushDownEventin classDownlinkModel<ListDownlinkView<?>>
-
didAddDownlink
protected void didAddDownlink(ListDownlinkView<?> view)
- Overrides:
didAddDownlinkin classDownlinkModel<ListDownlinkView<?>>
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
contains
public boolean contains(Object value)
-
indexOf
public int indexOf(Object o)
-
lastIndexOf
public int lastIndexOf(Object o)
-
subList
public List<swim.structure.Value> subList(int fromIndex, int toIndex)
-
toArray
public Object[] toArray()
-
toArray
public <V> V[] toArray(V[] array)
-
entryIterator
public ListIterator<Map.Entry<Object,swim.structure.Value>> entryIterator()
-
iterator
public Iterator<swim.structure.Value> iterator()
-
listIterator
public ListIterator<swim.structure.Value> listIterator()
-
listIterator
public ListIterator<swim.structure.Value> listIterator(int index)
-
keyIterator
public ListIterator<Object> keyIterator()
-
get
public swim.structure.Value get(int index, Object key)
-
add
public <V> boolean add(ListDownlinkView<V> view, int index, V newObject)
-
add
public <V> boolean add(ListDownlinkView<V> view, int index, V newObject, Object key)
-
set
public <V> V set(ListDownlinkView<V> view, int index, V newObject)
-
set
public <V> V set(ListDownlinkView<V> view, int index, V newObject, Object key)
-
move
public <V> void move(ListDownlinkView<V> view, int fromIndex, int toIndex)
-
move
public <V> void move(ListDownlinkView<V> view, int fromIndex, int toIndex, Object key)
-
remove
public <V> V remove(ListDownlinkView<V> view, int index)
-
remove
public <V> V remove(ListDownlinkView<V> view, int index, Object key)
-
drop
public void drop(ListDownlinkView<?> view, int lower)
-
take
public void take(ListDownlinkView<?> view, int upper)
-
clear
public void clear(ListDownlinkView<?> view)
-
-