Cell

io.github.srs.model.dsl.Cell
See theCell companion enum
object Cell

Companion object for Cell, providing convenient factory methods and operators.

Attributes

Companion
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Cell.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

infix def **: Cell

Represents a light cell in the grid.

Represents a light cell in the grid.

Attributes

Returns

the light cell.

infix def --: Cell

Represents an empty cell in the grid.

Represents an empty cell in the grid.

Attributes

Returns

the empty cell.

infix def A: Cell

Represents a robot cell in the grid that always moves forward.

Represents a robot cell in the grid that always moves forward.

Attributes

Returns

the robot cell.

infix def M: Cell

Represents a robot cell in the grid that uses prioritized behavior.

Represents a robot cell in the grid that uses prioritized behavior.

Attributes

Returns

the robot cell.

infix def O: Cell

Represents a robot cell in the grid that avoids obstacles.

Represents a robot cell in the grid that avoids obstacles.

Attributes

Returns

the robot cell.

infix def P: Cell

Represents a robot cell in the grid that moves towards light sources.

Represents a robot cell in the grid that moves towards light sources.

Attributes

Returns

the robot cell.

infix def R: Cell

Represents a robot cell in the grid that walks randomly.

Represents a robot cell in the grid that walks randomly.

Attributes

Returns

the robot cell.

infix def X: Cell

Represents an obstacle cell in the grid.

Represents an obstacle cell in the grid.

Attributes

Returns

the obstacle cell.

def symbolFor(policy: Policy): String

Returns a symbol representing the given policy.

Returns a symbol representing the given policy.

Value parameters

policy

the policy to represent.

Attributes

Returns

a string symbol for the policy.