Class: Instance

olympe.dc.transaction.SubGraph. Instance

Class describing an instance for sub graphs.


new Instance(tag)

Parameters:
Name Type Description
tag string

The instance tag

Methods


addProperty(propertyTag, value)

Set a value for the specified property. Override it if there already is a value.

Parameters:
Name Type Description
propertyTag string
value *
Returns:
Type
olympe.dc.transaction.SubGraph.Instance

deleteProperty(propertyTag)

Remove the specified property value from this instance.

Parameters:
Name Type Description
propertyTag string

the property tag

Returns:
Type
olympe.dc.transaction.SubGraph.Instance

forEachProperty(callback)

Iterates over all properties of the instance with the callback

Parameters:
Name Type Description
callback function

getTag()

Returns the instance tag

Returns:
Type
string