Nameable

com.phasmidsoftware.number.algebra.core.Nameable
trait Nameable

A trait representing entities that can have an optional name.

Classes or objects extending this trait provide a means to access an optional name, which may or may not be present.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Noop
trait Root
class AbstractRoot
class LinearRoot
object L2
object LgE
class Literal
object E
object I
object Infinity
object Half
object MinusOne
object One
object Pi
object Two
object Zero
Show all

Members list

Value members

Abstract methods

def maybeName: Option[String]

Retrieves an optional name associated with the implementing class.

Retrieves an optional name associated with the implementing class.

The method returns an Option wrapping a String. If a name is available, it will be contained within the Option as Some(name). If no name is present, the method will return None.

Attributes

Returns

an Option[String] representing the optional name

Concrete methods

def protectedName: Boolean

Determines if the name is protected, for example, it represents a mathematical symbol for a transcendental value (e.g., pi), or a commonly used root such as √2.

Determines if the name is protected, for example, it represents a mathematical symbol for a transcendental value (e.g., pi), or a commonly used root such as √2.

This method indicates whether a name associated with an entity is considered protected. The protection status could influence how the name is accessed or utilized by external systems.

Attributes

Returns

true if the name is protected, otherwise false

Concrete fields

lazy val keepSymbolic: Boolean

Indicates whether symbolic names are preserved.

Indicates whether symbolic names are preserved.

This method determines if symbolic representation should be retained when working with names in entities implementing the Nameable trait.

Attributes

Returns

true if symbolic names are kept, otherwise false