Uses of Class
org.praxislive.core.Value
Packages that use Value
Package
Description
-
Uses of Value in org.praxislive.base
Methods in org.praxislive.base that return ValueMethods in org.praxislive.base that return types with arguments of type ValueModifier and TypeMethodDescriptionBinding.getValues()Get the most recent synced values, if the Control is a property.Methods in org.praxislive.base with parameters of type ValueModifier and TypeMethodDescriptionprotected abstract voidSet the value.MapTreeWriter.writeProperty(String id, Value value) Method parameters in org.praxislive.base with type arguments of type ValueModifier and TypeMethodDescriptionprotected voidAn optional hook for adaptors to access any error response from a call to send.protected voidBinding.Adaptor.onResponse(List<Value> args) An optional hook for adaptors to access the returned response from a call to send.protected final voidSend the provided values to the Control.protected abstract voidBinding.send(Binding.Adaptor adaptor, List<Value> args) -
Uses of Value in org.praxislive.code
Methods in org.praxislive.code that return ValueModifier and TypeMethodDescriptionabstract ValuePropertyControl.Binding.get()abstract ValuePropertyControl.Binding.getDefaultValue()protected ValuePropertyControl.getImpl()protected ValueAbstractAsyncProperty.getKey()default ValueCasting function to convert an object into an appropriate Value subtype.Methods in org.praxislive.code with parameters of type ValueModifier and TypeMethodDescriptiondefault PArrayConvert the given Value into aPArray.protected abstract TaskService.TaskAbstractAsyncProperty.createTask(Value key) protected TaskService.TaskResourceProperty.createTask(Value key) protected voidAbstractAsyncProperty.portInvoke(long time, Value key) voidvoidvoidabstract voidprotected voidfinal voidCodeDelegate.tell(ControlAddress destination, Value value) Send a message to a Control.final voidCodeDelegate.tellIn(double seconds, ControlAddress destination, Value value) Send a message to a Control in the given number of seconds or fractions of second from now.final voidSend a value to a port on another component.Method parameters in org.praxislive.code with type arguments of type ValueModifier and TypeMethodDescriptionCodeDelegate.ask(ControlAddress destination, List<Value> args) Call a Control.Constructors in org.praxislive.code with parameters of type ValueModifierConstructorDescriptionprotectedAbstractAsyncProperty(Value initialKey, Class<V> valueType, V value) -
Uses of Value in org.praxislive.code.userapi
Methods in org.praxislive.code.userapi with type parameters of type ValueModifier and TypeMethodDescriptionReturn aLinkableof inputs as the provided Value subclass.Return a newLinkablefor observing changing values.Methods in org.praxislive.code.userapi that return ValueModifier and TypeMethodDescriptionProperty.get()Return the current value.protected abstract ValueProperty.getImpl()Methods in org.praxislive.code.userapi that return types with arguments of type ValueMethods in org.praxislive.code.userapi with parameters of type ValueModifier and TypeMethodDescriptionabstract voidSend a Value.Set the current value.protected abstract voidprotected voidInput.updateLinks(Value value) protected voidProperty.updateLinks(Value value) Method parameters in org.praxislive.code.userapi with type arguments of type ValueModifier and TypeMethodDescription<T> PropertyCall the provided consumer when the value changes, transformed using the converter into the required type T.<T> Property<T> Linkable<T> Return aLinkableof inputs transformed by the provided converter from Value to the required type.<T> Linkable<T> Return a newLinkablefor observing changing values. -
Uses of Value in org.praxislive.core
Classes in org.praxislive.core with type parameters of type ValueSubclasses of Value in org.praxislive.coreModifier and TypeClassDescriptionfinal classInfo object used to define the valid input and output arguments of a Control.final classAddress of a Component.classInformation about the controls, ports, protocols and properties of a Component.classfinal classA type representing a connection between two ports.classfinal classInformation on the type, inputs, outputs and properties of aControl.classfinal classInformation on the type, direction and properties for aPort.Methods in org.praxislive.core with type parameters of type ValueModifier and TypeMethodDescriptionstatic <T extends Value>
Value.Type<T> Return the Type mapping for the passed in Value class.Methods in org.praxislive.core that return ValueModifier and TypeMethodDescriptionstatic ValueConvert the provided Object into a Value.abstract ValueMap the provided T value to a Value.Methods in org.praxislive.core that return types with arguments of type ValueModifier and TypeMethodDescriptionCall.args()Get the argument list of this Call.Value.Type.converter()A convertor function that can convert a value to this type.ControlInfo.defaults()The list of default values.static Optional<Value.Type<? extends Value>> Return the Type with the given name, or an empty optional if unregistered.Methods in org.praxislive.core with parameters of type ValueModifier and TypeMethodDescriptionstatic CallCall.create(ControlAddress toAddress, ControlAddress fromAddress, long timeCode, Value arg) Create a Call with Type INVOKE.static ControlInfoControlInfo.createPropertyInfo(ArgumentInfo argument, Value def, PMap properties) Create ControlInfo for a property control.static CallCall.createQuiet(ControlAddress toAddress, ControlAddress fromAddress, long timeCode, Value arg) Create a Call with Type INVOKE_QUIET.Info.PropertyInfoBuilder.defaultValue(Value value) Add a default value for this property.booleanValue.equivalent(Value value) Indicates whether some other Value is equivalent to this one.static Optional<ArgumentInfo> Coerce the provided Value into an ArgumentInfo if possible.static Optional<ComponentAddress> static Optional<ComponentInfo> Coerce the provided Value into a ComponentInfo if possible.static Optional<ComponentType> static Optional<Connection> Coerce the provided value into a Connection if possible.static Optional<ControlAddress> static Optional<ControlInfo> Coerce the provided Value into a ControlInfo if possible.static Optional<PortAddress> Coerce the provided Value into a PortInfo if possible.abstract TMap the provided Value to a value of type T.abstract voidCreate a return Call for this call with the given argument.abstract voidTreeWriter.writeProperty(String id, Value value) Write the value of a property.Method parameters in org.praxislive.core with type arguments of type ValueModifier and TypeMethodDescriptionstatic CallCall.create(ControlAddress toAddress, ControlAddress fromAddress, long timeCode, List<Value> args) Create a Call with Type INVOKE.static CallCall.createQuiet(ControlAddress toAddress, ControlAddress fromAddress, long timeCode, List<Value> args) Create a Call with Type INVOKE_QUIET.Create an error return Call for this call, with the given arguments.static ControlInfoCreate info for a simple Watch function that accepts no query argument, and returns data with the provided mime type wrapped in the provided response type.Add input ArgumentInfo for the provided value type.static ArgumentInfoCreate an ArgumentInfo from the Value class and optional PMap of additional properties.static ArgumentInfoCreate an ArgumentInfo from the Value class and optional PMap of additional properties.Add output ArgumentInfo for the provided value type.Create a return Call for this call with the given arguments.Create a ValueInfoBuilder for the provided value type.Constructor parameters in org.praxislive.core with type arguments of type ValueModifierConstructorDescriptionprotectedValueMapper(Type type, Class<? extends Value> valueCls) Base constructor. -
Uses of Value in org.praxislive.core.services
Methods in org.praxislive.core.services that return ValueMethods in org.praxislive.core.services that return types with arguments of type Value -
Uses of Value in org.praxislive.core.types
Subclasses of Value in org.praxislive.core.typesModifier and TypeClassDescriptionfinal classAn ordered list of Values.static classAn abstract superclass for values that are backed solely by a PArray.final classfinal classfinal classAn error message, possibly wrapping a Java Exception.final classAn ordered map of Strings to Values.static classAn abstract superclass for values that are backed solely by a PMap.final classfinal classfinal classfinal classFields in org.praxislive.core.types with type parameters of type ValueModifier and TypeFieldDescriptionstatic final BinaryOperator<Value> PMap.IF_ABSENTAn operator for use withPMap.merge(org.praxislive.core.types.PMap, org.praxislive.core.types.PMap, java.util.function.BinaryOperator)that only adds mappings where the key is not present in the base map.static final BinaryOperator<Value> PMap.REPLACEAn operator for use withPMap.merge(org.praxislive.core.types.PMap, org.praxislive.core.types.PMap, java.util.function.BinaryOperator)that will replace mapped values in the base map, unless the new value is empty in which case the mapping is removed.Methods in org.praxislive.core.types with type parameters of type ValueModifier and TypeMethodDescriptionPArray.collector()Create aCollectorthat can create a PArray from a Stream of Values.Methods in org.praxislive.core.types that return ValueModifier and TypeMethodDescriptionPArray.get(int index) Query the value at the given index in the list.Get the value for the given key, or null if the key does not exist.PMap.Entry.getValue()Methods in org.praxislive.core.types that return types with arguments of type ValueModifier and TypeMethodDescriptionPArray.asList()An unmodifiableListview of this list of values.PMap.asMap()An unmodifiableOrderedMapview of this PMap.PArray.iterator()PArray.stream()An ordered stream over the list of values.Methods in org.praxislive.core.types with parameters of type ValueModifier and TypeMethodDescriptionfinal booleanPArray.ArrayBasedValue.equivalent(Value value) booleanPArray.equivalent(Value arg) booleanPBytes.equivalent(Value arg) booleanPMap.equivalent(Value arg) final booleanPMap.MapBasedValue.equivalent(Value value) booleanPNumber.equivalent(Value arg) booleanPReference.equivalent(Value arg) Cast or convert the provided value into a PArray, wrapped in an Optional.Cast or convert the provided value into a PError, wrapped in an Optional.Cast or convert the provided value into a PMap, wrapped in an Optional.static Optional<PReference> static PArrayCreate a PArray from the given collection of values.Add a mapping for the given key and value.Method parameters in org.praxislive.core.types with type arguments of type ValueModifier and TypeMethodDescriptionstatic PMapPMap.merge(PMap base, PMap additional, BinaryOperator<Value> operator) Create a new PMap by merging the additional map into the base map, according to the result of the provided operator.static PArrayPArray.of(Collection<? extends Value> collection) Create a PArray from the given collection of values.static PMapCreate a PMap from the providedMap. -
Uses of Value in org.praxislive.project
Methods in org.praxislive.project that return ValueModifier and TypeMethodDescriptionGraphElement.Property.value()static ValueSyntaxUtils.valueFromToken(URI context, Token token) Extract a value from the provided token.static ValueSyntaxUtils.valueFromToken(Token token) Extract a value from the provided token.Methods in org.praxislive.project with parameters of type ValueModifier and TypeMethodDescriptionAdd a property element.static GraphElement.PropertyCreate a property element of the given value.static StringSyntaxUtils.valueToToken(URI context, Value value) Return the provided value as suitable token text to be included in a script.static StringSyntaxUtils.valueToToken(Value value) Return the provided value as suitable token text to be included in a script.static voidSyntaxUtils.writeValue(URI context, Value value, Appendable out) Write the provided value as suitable token text to the provided output.static voidSyntaxUtils.writeValue(Value value, Appendable out) Write the provided value as suitable token text to the provided output. -
Uses of Value in org.praxislive.script
Methods in org.praxislive.script that return ValueMethods in org.praxislive.script that return types with arguments of type ValueModifier and TypeMethodDescriptionExecute the command with the given environment, namespace and arguments.AbstractSingleCallFrame.processResult(List<Value> result) Process the result from the call on a successful response.AbstractSingleCallFrame.result()InlineCommand.InlineStackFrame.result()ScriptStackFrame.result()StackFrame.result()Access the result of this StackFrame.Methods in org.praxislive.script with parameters of type ValueModifier and TypeMethodDescriptionstatic StackFrameStackFrame.call(ControlAddress to, Value arg) Create a StackFrame that makes a call to the provided control and returns the result.default VariableNamespace.createConstant(String id, Value value) Create a constant in this namespace with the initial value given.ScriptStackFrame.Builder.createConstant(String id, Value value) Create a constant with the given name and value in the script namespace.default VariableNamespace.createVariable(String id, Value value) Create a variable in this namespace with the initial value given.ScriptStackFrame.Builder.createVariable(String id, Value value) Create a variable with the given name and value in the script namespace.default VariableNamespace.getOrCreateVariable(String id, Value defaultValue) Get the variable with the given ID from this namespace or a parent namespace, creating and initializing a variable with the provided default value if none exists.static StackFrameStackFrame.serviceCall(Class<? extends Service> service, String control, Value arg) Create a StackFrame that makes a call to the providedServiceand returns the result.voidSet the value of this variable.Method parameters in org.praxislive.script with type arguments of type ValueModifier and TypeMethodDescriptiondefault StackFrameStackFrame.andThen(Function<List<Value>, StackFrame> stage) Combine this StackFrame with another created from the result of this StackFrame.default StackFrameStackFrame.andThenMap(UnaryOperator<List<Value>> mapper) Map the result of this StackFrame with the provided mapping function before returning a result or usingStackFrame.andThen(java.util.function.Function).static StackFrameStackFrame.call(ControlAddress to, List<Value> args) Create a StackFrame that makes a call to the provided control and returns the result.protected abstract CallAbstractSingleCallFrame.createCall(Env env, List<Value> args) Create the Call.Command.createStackFrame(Namespace namespace, List<Value> args) Create a StackFrame to execute the command with the provided Namespace and arguments.default InlineCommand.InlineStackFrameInlineCommand.createStackFrame(Namespace namespace, List<Value> args) Create a StackFrame to execute the command with the provided Namespace and arguments.final voidAbstractSingleCallFrame.postResponse(StackFrame.State state, List<Value> args) voidInlineCommand.InlineStackFrame.postResponse(StackFrame.State state, List<Value> args) voidScriptStackFrame.postResponse(StackFrame.State state, List<Value> args) voidStackFrame.postResponse(StackFrame.State state, List<Value> args) Used by the script executor to post the result of a child StackFrame returned byStackFrame.process(org.praxislive.script.Env).Execute the command with the given environment, namespace and arguments.AbstractSingleCallFrame.processResult(List<Value> result) Process the result from the call on a successful response.static StackFrameCreate a StackFrame that makes a call to the providedServiceand returns the result.Constructor parameters in org.praxislive.script with type arguments of type ValueModifierConstructorDescriptionprotectedAbstractSingleCallFrame(Namespace namespace, List<Value> args)