| Graph {openeo} | R Documentation | 
Graph object
Description
This class represents an openEO process graph - which is generally denoted as field process_graph
in the exchange objects of the API. The graph consists of ProcessNode()s and optional
ProcessGraphParameter() (former variables). The explicit creation of a Graph is usually not
required and discouraged, because this will be handled automatically.
Details
In terms of the openEO API the process graph is the technical description of a process. To create a
user-defined process it requires a process graph and additional meta data. The process graph is not
accepted at any openEO endpoint directly. Therefore, it has to be wrapped in a Process()
object. Use as.Process() in those cases. It is similarly handled in other functions of
this package.
Value
Object of R6Class() with methods for building an openEO process graph
Fields
dataa named list of collection ids or process graph parameters depending on the context
Methods
$new(final_node=NULL)The object creator created from processes and available data.
$getNodes()a function to return a list of created
ProcessNode()s for this graph$serialize()creates a list representation of the graph by recursively calling
$serialize$validate()runs through the nodes and checks the validity of its argument values
$getNode(node_id)searches and returns a node from within the graph referenced by its node id
$addNode(node)adds a
ProcessNode()to the graph$removeNode(node_id)removes a process node from the graph
$getFinalNode()gets the result process node of a process graph
$setFinalNode(node)sets the result process node by node id or a ProcessNode
$getVariables()creates a named list of the defined variables of a process graph
$setVariables(list_of_vars)sets the
ProcessGraphParameter()( former variables) of graph
Arguments
final_nodeoptional, the final node (end node) that was used to create a graph
node_idthe id of a process node
nodeprocess node or its node id
parameterthe name of a parameter in a process
valuethe value to be set for a parameter of a particular process
idorvariable_idthe variable id
descriptiona description field for a variable
typethe type of variable, default 'string'
defaultoptional default value to be set for a variable