- java.lang.Object
-
- swim.runtime.AbstractDownlinkBinding
-
- swim.runtime.DownlinkModel<View>
-
- swim.runtime.warp.WarpDownlinkModem<View>
-
- swim.runtime.warp.WarpDownlinkModel<View>
-
- swim.runtime.warp.MapDownlinkModem<MapDownlinkView<?,?>>
-
- swim.runtime.downlink.MapDownlinkModel
-
- All Implemented Interfaces:
LinkBinding,WarpBinding,swim.util.Log
public class MapDownlinkModel extends MapDownlinkModem<MapDownlinkView<?,?>>
-
-
Field Summary
Fields Modifier and Type Field Description protected intflagsprotected swim.collections.BTreeMap<swim.structure.Value,swim.structure.Value,swim.structure.Value>stateprotected static intSTATEFUL-
Fields inherited from class swim.runtime.warp.WarpDownlinkModem
body, cellContext, EXEC_DELTA, EXEC_TIME, linkContext, prio, rate, status
-
Fields inherited from class swim.runtime.DownlinkModel
views
-
Fields inherited from class swim.runtime.AbstractDownlinkBinding
hostUri, laneUri, meshUri, nodeUri
-
-
Constructor Summary
Constructors Constructor Description MapDownlinkModel(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 voidclear(MapDownlinkView<?,?> view)booleancontainsKey(Object key)booleancontainsValue(Object value)protected voiddidAddDownlink(MapDownlinkView<?,?> view)voiddrop(MapDownlinkView<?,?> view, int lower)Set<Map.Entry<swim.structure.Value,swim.structure.Value>>entrySet()Map.Entry<swim.structure.Value,swim.structure.Value>firstEntry()swim.structure.ValuefirstKey()swim.structure.ValuefirstValue()swim.structure.Valueget(Object key)Map.Entry<swim.structure.Value,swim.structure.Value>getEntry(Object key)Map.Entry<swim.structure.Value,swim.structure.Value>getIndex(int index)swim.util.OrderedMap<swim.structure.Value,swim.structure.Value>headMap(swim.structure.Value toKey)intindexOf(Object key)booleanisEmpty()booleanisStateful()MapDownlinkModelisStateful(boolean isStateful)swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value>iterator()swim.util.Cursor<swim.structure.Value>keyIterator()Set<swim.structure.Value>keySet()Map.Entry<swim.structure.Value,swim.structure.Value>lastEntry()swim.structure.ValuelastKey()swim.structure.ValuelastValue()Map.Entry<swim.structure.Value,swim.structure.Value>nextEntry(swim.structure.Value key)swim.structure.ValuenextKey(swim.structure.Value key)protected swim.structure.ValuenextUpKey(swim.structure.Value key)swim.structure.ValuenextValue(swim.structure.Value key)Map.Entry<swim.structure.Value,swim.structure.Value>previousEntry(swim.structure.Value key)swim.structure.ValuepreviousKey(swim.structure.Value key)swim.structure.ValuepreviousValue(swim.structure.Value key)protected voidpushDownEvent(Push<swim.warp.EventMessage> push)<K,V>
Vput(MapDownlinkView<K,V> view, K keyObject, V newObject)<K,V>
Vremove(MapDownlinkView<K,V> view, K keyObject)intsize()swim.util.OrderedMap<swim.structure.Value,swim.structure.Value>subMap(swim.structure.Value fromKey, swim.structure.Value toKey)swim.util.OrderedMap<swim.structure.Value,swim.structure.Value>tailMap(swim.structure.Value fromKey)voidtake(MapDownlinkView<?,?> view, int upper)swim.util.Cursor<swim.structure.Value>valueIterator()Collection<swim.structure.Value>values()-
Methods inherited from class swim.runtime.warp.MapDownlinkModem
cueUpKey, cueUpKeys, feedUp, nextUpCue, nextUpQueue, queueUp, upQueueIsEmpty
-
Methods inherited from class swim.runtime.warp.WarpDownlinkModel
keepLinked, keepSynced, pullUpCommand, pullUpLink, pullUpSync, pullUpUnlink, pushDownLinked, pushDownSynced, pushDownUnlinked
-
Methods inherited from class swim.runtime.warp.WarpDownlinkModem
accumulateExecTime, body, cellContext, closeDown, collectProfile, command, command, command, command, cueDown, cueUp, didClose, didCloseUp, didConnect, didDisconnect, didFail, didFailUp, didLink, didOpen, didRemoveDownlink, didSync, didUnlink, didUpdateMetrics, feedDown, flushMetrics, link, linkContext, linkRequest, linkWrapper, onCommand, onEvent, openDown, openMetaDownlink, prio, pullUp, pushDown, pushDownUnknown, pushUp, pushUp, rate, reportMetrics, setCellContext, setLinkContext, skipDown, sync, syncRequest, unlink, unlinkRequest, willLink, willSync, willUnlink
-
Methods inherited from class swim.runtime.DownlinkModel
addDownlink, removeDownlink, removeDownlinks, reopen
-
Methods inherited from class swim.runtime.AbstractDownlinkBinding
bottomLink, cellAddressDown, cipherSuite, cipherSuiteDown, debug, debugDown, error, errorDown, fail, failDown, hostUri, info, infoDown, isConnected, isConnectedDown, isRemote, isRemoteDown, isSecure, isSecureDown, laneUri, linkKey, localAddress, localAddressDown, localCertificates, localCertificatesDown, localIdentity, localIdentityDown, localPrincipal, localPrincipalDown, meshUri, nodeUri, remoteAddress, remoteAddressDown, remoteCertificates, remoteCertificatesDown, remoteIdentity, remoteIdentityDown, remotePrincipal, remotePrincipalDown, securityProtocol, securityProtocolDown, setHostUri, setNodeUri, trace, traceDown, unwrapLink, warn, warnDown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.runtime.LinkBinding
bottomLink, cellAddressDown, cipherSuiteDown, debugDown, errorDown, failDown, hostUri, infoDown, isConnectedDown, isRemoteDown, isSecureDown, laneUri, linkKey, localAddressDown, localCertificatesDown, localIdentityDown, localPrincipalDown, meshUri, nodeUri, remoteAddressDown, remoteCertificatesDown, remoteIdentityDown, remotePrincipalDown, reopen, securityProtocolDown, setHostUri, setNodeUri, traceDown, unwrapLink, warnDown
-
-
-
-
Field Detail
-
STATEFUL
protected static final int STATEFUL
- See Also:
- Constant Field Values
-
state
protected final swim.collections.BTreeMap<swim.structure.Value,swim.structure.Value,swim.structure.Value> state
-
flags
protected int flags
-
-
Method Detail
-
isStateful
public final boolean isStateful()
-
isStateful
public MapDownlinkModel isStateful(boolean isStateful)
-
pushDownEvent
protected void pushDownEvent(Push<swim.warp.EventMessage> push)
- Overrides:
pushDownEventin classWarpDownlinkModel<MapDownlinkView<?,?>>
-
nextUpKey
protected swim.structure.Value nextUpKey(swim.structure.Value key)
- Specified by:
nextUpKeyin classMapDownlinkModem<MapDownlinkView<?,?>>
-
didAddDownlink
protected void didAddDownlink(MapDownlinkView<?,?> view)
- Overrides:
didAddDownlinkin classWarpDownlinkModem<MapDownlinkView<?,?>>
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
containsKey
public boolean containsKey(Object key)
-
containsValue
public boolean containsValue(Object value)
-
indexOf
public int indexOf(Object key)
-
get
public swim.structure.Value get(Object key)
-
getIndex
public Map.Entry<swim.structure.Value,swim.structure.Value> getIndex(int index)
-
firstEntry
public Map.Entry<swim.structure.Value,swim.structure.Value> firstEntry()
-
firstKey
public swim.structure.Value firstKey()
-
firstValue
public swim.structure.Value firstValue()
-
lastEntry
public Map.Entry<swim.structure.Value,swim.structure.Value> lastEntry()
-
lastKey
public swim.structure.Value lastKey()
-
lastValue
public swim.structure.Value lastValue()
-
nextEntry
public Map.Entry<swim.structure.Value,swim.structure.Value> nextEntry(swim.structure.Value key)
-
nextKey
public swim.structure.Value nextKey(swim.structure.Value key)
-
nextValue
public swim.structure.Value nextValue(swim.structure.Value key)
-
previousEntry
public Map.Entry<swim.structure.Value,swim.structure.Value> previousEntry(swim.structure.Value key)
-
previousKey
public swim.structure.Value previousKey(swim.structure.Value key)
-
previousValue
public swim.structure.Value previousValue(swim.structure.Value key)
-
put
public <K,V> V put(MapDownlinkView<K,V> view, K keyObject, V newObject)
-
remove
public <K,V> V remove(MapDownlinkView<K,V> view, K keyObject)
-
drop
public void drop(MapDownlinkView<?,?> view, int lower)
-
take
public void take(MapDownlinkView<?,?> view, int upper)
-
clear
public void clear(MapDownlinkView<?,?> view)
-
headMap
public swim.util.OrderedMap<swim.structure.Value,swim.structure.Value> headMap(swim.structure.Value toKey)
-
tailMap
public swim.util.OrderedMap<swim.structure.Value,swim.structure.Value> tailMap(swim.structure.Value fromKey)
-
subMap
public swim.util.OrderedMap<swim.structure.Value,swim.structure.Value> subMap(swim.structure.Value fromKey, swim.structure.Value toKey)
-
keySet
public Set<swim.structure.Value> keySet()
-
values
public Collection<swim.structure.Value> values()
-
iterator
public swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value> iterator()
-
keyIterator
public swim.util.Cursor<swim.structure.Value> keyIterator()
-
valueIterator
public swim.util.Cursor<swim.structure.Value> valueIterator()
-
-