java.lang.Object
swim.structure.Item
swim.structure.Value
swim.structure.Record
swim.dataflow.AbstractRecordOutlet
- All Implemented Interfaces:
Comparable<Item>,Iterable<Item>,Collection<Item>,List<Item>,Debug,Display,RecordOutlet,MapOutlet<Value,,Value, Record> Outlet<Record>,StreamletScope<Value>,Builder<Item,,Record> PairBuilder<Value,Value, Record>
- Direct Known Subclasses:
DownlinkRecord,RecordModel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbindOutput(Inlet<? super Record> output) Adds anoutputto the set ofInlets that depend on the state of thisOutlet.booleancontainsOwnKey(Value key) voidMarks thisOutlet—and alloutputsthat depend on the state of thisOutlet—as having decoherent state.voiddecohereInputKey(Value key, KeyEffect effect) Marks thisMapOutletas needing aneffectapplied to a givenkey.protected voidprotected voiddidDecohereInputKey(Value key, KeyEffect effect) protected voiddidRecohereInput(int version) protected voiddidRecohereInputKey(Value key, KeyEffect effect, int version) voidDisconnects allInlets dominated by thisOutletin the dataflow dependency graph.voidDisconnects allOutlets dominated by thisOutletin the dataflow graph.get()Returns the current state of thisOutlet.Returns anIteratorover the keys in the current state of thisMapOutlet.protected voidprotected voidonDecohereInputKey(Value key, KeyEffect effect) protected voidonRecohereInput(int version) protected voidonRecohereInputKey(Value key, KeyEffect effect, int version) Returns anOutletthat updates when the specifiedkeyupdates.Returns anOutletthat updates when the specifiedkeyupdates.Returns anIteratorover the set ofInlets that depend on the state of thisOutlet.voidrecohereInput(int version) Updates the state of thisOutletto make it consistent with the targetversion.voidrecohereInputKey(Value key, int version) Updates the state of an individualkeyin thisMapOutletto make it consistent with the targetversion.Returns the environment in which thisStreamletScopeoperates.StreamletScope<? extends Value>Returns the lexically scoped parent of thisStreamletScope.voidunbindOutput(Inlet<? super Record> output) Removes anoutputfrom the set ofInlets that depend on the state of thisOutlet.voidDisconnects all outputs from thisOutletby invokingInlet.unbindInput()on eachIneltthat depends on the state of thisOutlet.protected voidprotected voidwillDecohereInputKey(Value key, KeyEffect effect) protected voidwillRecohereInput(int version) protected voidwillRecohereInputKey(Value key, KeyEffect effect, int version) Methods inherited from class swim.structure.Record
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addAll, addAll, alias, appended, appended, asMutable, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, bind, body, branch, clear, commit, compareTo, compareTo, concat, contains, contains, containsAll, containsKey, containsKey, containsValue, create, create, debug, empty, entrySet, equals, evaluate, fieldCount, fieldIterator, fieldSet, flattened, get, get, get, getAttr, getAttr, getField, getField, getItem, getSlot, getSlot, hashCode, head, header, headers, indexOf, isAliased, isArray, isConstant, isDefinite, isEmpty, isMutable, isObject, item, item, item, item, item, item, item, iterator, keySet, lastIndexOf, length, listIterator, listIterator, of, of, of, prepended, prepended, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, remove, remove, removeAll, removed, removed, removeKey, removeKey, retainAll, set, setItem, setItem, setItem, setItem, setItem, setItem, setItem, size, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, stringValue, stringValue, subList, substitute, tag, tail, target, toArray, toArray, typeOrder, unflattened, updated, updated, updatedAttr, updatedAttr, updatedSlot, updatedSlot, valueCount, valueIterator, valuesMethods inherited from class swim.structure.Value
absent, and, and, bitwiseAnd, bitwiseAnd, bitwiseNot, bitwiseOr, bitwiseOr, bitwiseXor, bitwiseXor, booleanValue, booleanValue, builder, byteValue, byteValue, charValue, charValue, conditional, conditional, divide, divide, doubleValue, doubleValue, eq, eq, extant, floatValue, floatValue, fromObject, ge, ge, gt, gt, integerValue, integerValue, intValue, intValue, inverse, isDefined, isDistinct, key, keyEquals, lambda, le, le, longValue, longValue, lt, lt, minus, minus, modulo, modulo, ne, ne, negative, not, numberValue, numberValue, or, or, plus, plus, positive, shortValue, shortValue, times, times, toValueMethods inherited from class swim.structure.Item
appended, appended, appended, appended, appended, appended, cast, cast, coerce, coerce, display, evaluate, filter, filter, globalScope, invoke, max, min, precedence, prepended, prepended, prepended, prepended, prepended, prepended, substitute, toString, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlotMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Field Details
-
effects
-
outlets
-
outputs
-
version
protected int version
-
-
Constructor Details
-
AbstractRecordOutlet
public AbstractRecordOutlet()
-
-
Method Details
-
streamletScope
Description copied from interface:StreamletScopeReturns the lexically scoped parent of thisStreamletScope. Returnsnullif thisStreamletScopehas no lexical parent.- Specified by:
streamletScopein interfaceStreamletScope<Value>
-
streamletContext
Description copied from interface:StreamletScopeReturns the environment in which thisStreamletScopeoperates.- Specified by:
streamletContextin interfaceStreamletScope<Value>
-
containsOwnKey
-
keyIterator
Description copied from interface:MapOutletReturns anIteratorover the keys in the current state of thisMapOutlet.- Specified by:
keyIteratorin interfaceMapOutlet<Value,Value, Record> - Overrides:
keyIteratorin classRecord
-
get
Description copied from interface:OutletReturns the current state of thisOutlet. -
outlet
Description copied from interface:MapOutletReturns anOutletthat updates when the specifiedkeyupdates. -
outlet
Description copied from interface:StreamletScopeReturns anOutletthat updates when the specifiedkeyupdates.- Specified by:
outletin interfaceRecordOutlet- Specified by:
outletin interfaceStreamletScope<Value>
-
outputIterator
Description copied from interface:OutletReturns anIteratorover the set ofInlets that depend on the state of thisOutlet.- Specified by:
outputIteratorin interfaceOutlet<Record>
-
bindOutput
Description copied from interface:OutletAdds anoutputto the set ofInlets that depend on the state of thisOutlet. Theoutputwill be decohered when the state of thisOutletis decohered, and recohered when thisOutletis recohered.- Specified by:
bindOutputin interfaceOutlet<Record>
-
unbindOutput
Description copied from interface:OutletRemoves anoutputfrom the set ofInlets that depend on the state of thisOutlet.- Specified by:
unbindOutputin interfaceOutlet<Record>
-
unbindOutputs
public void unbindOutputs()Description copied from interface:OutletDisconnects all outputs from thisOutletby invokingInlet.unbindInput()on eachIneltthat depends on the state of thisOutlet.- Specified by:
unbindOutputsin interfaceOutlet<Record>
-
disconnectOutputs
public void disconnectOutputs()Description copied from interface:OutletDisconnects allOutlets dominated by thisOutletin the dataflow graph. Used to recursively clean up chains of combinators originating from thisInlet.- Specified by:
disconnectOutputsin interfaceOutlet<Record>
-
disconnectInputs
public void disconnectInputs()Description copied from interface:OutletDisconnects allInlets dominated by thisOutletin the dataflow dependency graph. Used to recursively clean up chains of combinators passing through thisOutlet.- Specified by:
disconnectInputsin interfaceOutlet<Record>
-
decohereInputKey
Description copied from interface:MapOutletMarks thisMapOutletas needing aneffectapplied to a givenkey. Decohering an individual key decoheres the entire state of theOutlet. But only the decoherent keys need to be updated in order to recohere the overall state of theOutlet.- Specified by:
decohereInputKeyin interfaceMapOutlet<Value,Value, Record>
-
decohereInput
public void decohereInput()Description copied from interface:OutletMarks thisOutlet—and alloutputsthat depend on the state of thisOutlet—as having decoherent state.- Specified by:
decohereInputin interfaceOutlet<Record>
-
recohereInputKey
Description copied from interface:MapOutletUpdates the state of an individualkeyin thisMapOutletto make it consistent with the targetversion. TheMapOutletonly needs to update if its currentversiondiffers from the targetversion. To update the state of a key, theMapOutletfirst invokesStreamlet.recohere(int)on its attached streamlets. Then, for each dependent output, it invokesMapInlet.recohereOutputKey(Object, int), if the dependent output is aMapInlet, or it invokesInlet.recohereOutput(int), if the dependent output is not aMapInlet.- Specified by:
recohereInputKeyin interfaceMapOutlet<Value,Value, Record>
-
recohereInput
public void recohereInput(int version) Description copied from interface:OutletUpdates the state of thisOutletto make it consistent with the targetversion. TheOutletonly needs to update if its currentversiondiffers from the targetversion. To update its state, theOutletfirst invokesStreamlet.recohere(int)on theStreamletto which it's attached. It then invokesInlet.recohereOutput(int)on each of its dependentoutputs.- Specified by:
recohereInputin interfaceOutlet<Record>
-
willDecohereInputKey
-
onDecohereInputKey
-
didDecohereInputKey
-
willDecohereInput
protected void willDecohereInput() -
onDecohereInput
protected void onDecohereInput() -
didDecohereInput
protected void didDecohereInput() -
willRecohereInputKey
-
onRecohereInputKey
-
didRecohereInputKey
-
willRecohereInput
protected void willRecohereInput(int version) -
onRecohereInput
protected void onRecohereInput(int version) -
didRecohereInput
protected void didRecohereInput(int version)
-