Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

ccOREGetContext

ccOREGetContext(
t_contextName
)
=> l_context

Description

Retrieves the Optical Rule Engine (ORE) context with the specified name.

Argument

t_contextName

Name of the ORE context.

Value Returned

l_context

list(nil 's_objectName r_object ...)

Disembodied property list representing the ORE context, where:

  • s_objectName is the name of the ORE object.
  • r_object is the defstruct representing the ORE object.

The operation fails and an error is displayed if the context with the specified name does not exist.

Example

Define variable PI_2 and save the resulting ORE context under the name ore_cxt.

ccORE(?rule '((define PI_2 PI/2)) ?saveContext "ore_cxt")
=> t 

Get the ORE context with the name ore_cxt.

ccOREGetContext("ore_cxt")
=> (nil PI_2 ccORENumber@0x27fd3b48 context ccOREString@0x27fd3b60 cell ccORERelation@0x27fd3b78 design
ccORERelation@0x27fd3bd8 PI ccORENumber@0x27fd3bf0 shape ccORERelation@0x27fd3c08
)

Get the ORE object stored in the variable PI_2 in the ORE context with the name ore_cxt.

ccOREGetContext("ore_cxt")->PI_2
=> ccORENumber@0x27fd3c20 

Get the value of the ORE object stored in the variable PI_2 in the ORE context with the name ore_cxt.

ccOREGetContext("ore_cxt")->PI_2->value
=> 1.570796

Related Topics

Curvy Core Optical Rule Engine Functions

Optical Rule Engine


Return to top
 ⠀
X