pw::Object

Base type for all glyph types

Summary
pw::ObjectBase type for all glyph types
Instance Actions
equalsThis action checks if the the given object refers to the same object as this object.
getTypeThis action gets the type of this object.
isOfTypeThis action checks if this object is of the given type.

Instance Actions

equals

$object equals object

This action checks if the the given object refers to the same object as this object.

Parameters

objectThis parameter is a pw::Object object.

Returns

This action returns a boolean, which is true if the given object is the same as this object.

Example

Code

$doma equals $domb

Output

0

getType

$object getType

This action gets the type of this object.

Parameters

none

Returns

This action returns a string representing the type of this object.

Example

Code

$domain getType

Output

pw::DomainStructured

isOfType

$object isOfType type

This action checks if this object is of the given type.

Parameters

typeThis parameter is a string representing a type.

Returns

This action returns a boolean, which is true if the object is of the given type.

Example

Code

$con isOfType pw::Connector

Output

1
$object equals object
This action checks if the the given object refers to the same object as this object.
$object getType
This action gets the type of this object.
$object isOfType type
This action checks if this object is of the given type.
Base type for all glyph types
A boolean is represented as a 0 or 1, with 0 being false and 1 being true.
A string is an array of characters.
A type is the class name of a Glyph object.
Close