Domain

class Domain(*args)

Base class for domain objects.

Notes

A Domain object can be created through its derived classes:

Methods

contains(self, \*args)

Check if the given point is inside of the domain.

getClassName(self)

Accessor to the object’s name.

getDimension(self)

Get the dimension of the domain.

getId(self)

Accessor to the object’s id.

getImplementation(self)

Accessor to the underlying implementation.

getName(self)

Accessor to the object’s name.

setName(self, name)

Accessor to the object’s name.

__init__(self, \*args)

Initialize self. See help(type(self)) for accurate signature.

contains(self, \*args)

Check if the given point is inside of the domain.

Parameters
pointsequence of float

Point with the same dimension as the current domain’s dimension.

Returns
isInsidebool

Flag telling whether the given point is inside of the domain.

getClassName(self)

Accessor to the object’s name.

Returns
class_namestr

The object class name (object.__class__.__name__).

getDimension(self)

Get the dimension of the domain.

Returns
dimint

Dimension of the domain.

getId(self)

Accessor to the object’s id.

Returns
idint

Internal unique identifier.

getImplementation(self)

Accessor to the underlying implementation.

Returns
implImplementation

The implementation class.

getName(self)

Accessor to the object’s name.

Returns
namestr

The name of the object.

setName(self, name)

Accessor to the object’s name.

Parameters
namestr

The name of the object.