- java.lang.Object
-
- swim.system.AbstractDownlinkBinding
-
- swim.system.DownlinkModel<View>
-
- swim.system.warp.WarpDownlinkModem<View>
-
- swim.system.warp.WarpDownlinkModel<View>
-
- swim.system.warp.MapDownlinkModem<MapDownlinkView<?,?>>
-
- swim.system.downlink.MapDownlinkModel
-
- All Implemented Interfaces:
LinkBinding
,WarpBinding
,Log
public class MapDownlinkModel extends MapDownlinkModem<MapDownlinkView<?,?>>
-
-
Field Summary
Fields Modifier and Type Field Description protected int
flags
protected BTreeMap<Value,Value,Value>
state
protected static int
STATEFUL
-
Fields inherited from class swim.system.warp.WarpDownlinkModem
body, cellContext, EXEC_DELTA, EXEC_TIME, linkContext, prio, rate, status
-
Fields inherited from class swim.system.DownlinkModel
views, VIEWS
-
Fields inherited from class swim.system.AbstractDownlinkBinding
hostUri, laneUri, meshUri, nodeUri
-
-
Method Summary
-
Methods inherited from class swim.system.warp.MapDownlinkModem
cueUpKey, cueUpKeys, feedUp, nextUpCue, nextUpQueue, queueUp, upQueueIsEmpty
-
Methods inherited from class swim.system.warp.WarpDownlinkModel
keepLinked, keepSynced, pullUpCommand, pullUpLink, pullUpSync, pullUpUnlink, pushDownLinked, pushDownSynced, pushDownUnlinked
-
Methods inherited from class swim.system.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.system.DownlinkModel
addDownlink, removeDownlink, removeDownlinks, reopen
-
Methods inherited from class swim.system.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.system.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
-
flags
protected int flags
-
STATEFUL
protected static final int STATEFUL
- See Also:
- Constant Field Values
-
-
Method Detail
-
isStateful
public final boolean isStateful()
-
isStateful
public MapDownlinkModel isStateful(boolean isStateful)
-
pushDownEvent
protected void pushDownEvent(Push<EventMessage> push)
- Overrides:
pushDownEvent
in classWarpDownlinkModel<MapDownlinkView<?,?>>
-
nextUpKey
protected Value nextUpKey(Value key)
- Specified by:
nextUpKey
in classMapDownlinkModem<MapDownlinkView<?,?>>
-
didAddDownlink
protected void didAddDownlink(MapDownlinkView<?,?> view)
- Overrides:
didAddDownlink
in 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)
-
firstKey
public Value firstKey()
-
firstValue
public Value firstValue()
-
lastKey
public Value lastKey()
-
lastValue
public Value lastValue()
-
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 OrderedMap<Value,Value> headMap(Value toKey)
-
tailMap
public OrderedMap<Value,Value> tailMap(Value fromKey)
-
subMap
public OrderedMap<Value,Value> subMap(Value fromKey, Value toKey)
-
values
public Collection<Value> values()
-
iterator
public OrderedMapCursor<Value,Value> iterator()
-
-