scenic.syntax.ast

Summary of Module Members

Classes

AST

Scenic AST base class

Abort

Above

Additive

AheadOf

AltitudeFromOp

Always

AngleFromOp

ApparentHeadingOp

ApparentlyFacingSpecifier

AtSpecifier

Back

Represents position of back of operator

BackLeft

Represents position of back left of operator

BackRight

Represents position of back right of operator

BehaviorDef

Behind

Below

BeyondSpecifier

Bottom

Represents position of bottom of operator

BottomBackLeft

Represents position of bottom back left of operator

BottomBackRight

Represents position of bottom back right of operator

BottomFrontLeft

Represents position of bottom front left of operator

BottomFrontRight

Represents position of bottom front right of operator

CanSeeOp

ContainedInSpecifier

DegOp

DirectionOfSpecifier

DistanceFromOp

DistancePastOp

Do

DoChoose

DoFor

DoShuffle

DoUntil

Dynamic

Ego

ego tracked assign target

Eventually

FacingAwayFromSpecifier

FacingDirectlyAwayFromSpecifier

FacingDirectlyTowardSpecifier

FacingSpecifier

FacingTowardSpecifier

FieldAtOp

Final

FollowOp

FollowingSpecifier

Front

Represents position of front of operator

FrontLeft

Represents position of front left of operator

FrontRight

Represents position of front right of operator

ImpliesOp

InSpecifier

InitialScenario

InterruptWhenHandler

IntersectsOp

Invariant

Left

Represents position of left of operator

LeftOf

Model

MonitorDef

Mutate

New

Next

NotVisibleFromOp

NotVisibleOp

NotVisibleSpecifier

OffsetAlongOp

OffsetAlongSpecifier

OffsetBySpecifier

OnSpecifier

Override

Param

param statements

PositionOfOp

Precondition

PropertyDef

Record

RecordFinal

RecordInitial

RelativeHeadingOp

RelativePositionOp

RelativeToOp

Require

RequireMonitor

Right

Represents position of right of operator

RightOf

ScenarioDef

Seconds

Simulator

Steps

Take

Terminate

TerminateAfter

TerminateSimulation

TerminateSimulationWhen

TerminateWhen

Top

Represents position of top of operator

TopBackLeft

Represents position of top back left of operator

TopBackRight

Represents position of top back right of operator

TopFrontLeft

Represents position of top front left of operator

TopFrontRight

Represents position of top front right of operator

TrackedAssign

TryInterrupt

Scenic AST node that represents try-interrupt statements

UntilOp

VectorOp

VisibleFromOp

VisibleOp

VisibleSpecifier

Wait

WithSpecifier

Workspace

workspace tracked assign target

parameter

represents a parameter that is defined with param statements

Member Details

class AST(*args, **kwargs)[source]

Bases: AST

Scenic AST base class

Parameters:
  • args (any) –

  • kwargs (any) –

class TryInterrupt(body, interrupt_when_handlers, except_handlers, orelse, finalbody, *args, **kwargs)[source]

Bases: AST

Scenic AST node that represents try-interrupt statements

Parameters:
  • body (List[stmt]) –

  • interrupt_when_handlers (List[InterruptWhenHandler]) –

  • except_handlers (List[ExceptHandler]) –

  • orelse (List[stmt]) –

  • finalbody (List[AST]) –

  • args (any) –

  • kwargs (any) –

class Ego(*args, **kwargs)[source]

Bases: AST

ego tracked assign target

Parameters:
  • args (any) –

  • kwargs (any) –

class Workspace(*args, **kwargs)[source]

Bases: AST

workspace tracked assign target

Parameters:
  • args (any) –

  • kwargs (any) –

class Param(elts, *args, **kwargs)[source]

Bases: AST

param statements

Parameters:
class parameter(identifier, value, *args, **kwargs)[source]

Bases: AST

represents a parameter that is defined with param statements

Parameters:
  • identifier (str) –

  • value (AST) –

  • args (any) –

  • kwargs (any) –

class Front(*args, **kwargs)[source]

Bases: AST

Represents position of front of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class Back(*args, **kwargs)[source]

Bases: AST

Represents position of back of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class Left(*args, **kwargs)[source]

Bases: AST

Represents position of left of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class Right(*args, **kwargs)[source]

Bases: AST

Represents position of right of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class Top(*args, **kwargs)[source]

Bases: AST

Represents position of top of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class Bottom(*args, **kwargs)[source]

Bases: AST

Represents position of bottom of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class FrontLeft(*args, **kwargs)[source]

Bases: AST

Represents position of front left of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class FrontRight(*args, **kwargs)[source]

Bases: AST

Represents position of front right of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class BackLeft(*args, **kwargs)[source]

Bases: AST

Represents position of back left of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class BackRight(*args, **kwargs)[source]

Bases: AST

Represents position of back right of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class TopFrontLeft(*args, **kwargs)[source]

Bases: AST

Represents position of top front left of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class TopFrontRight(*args, **kwargs)[source]

Bases: AST

Represents position of top front right of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class TopBackLeft(*args, **kwargs)[source]

Bases: AST

Represents position of top back left of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class TopBackRight(*args, **kwargs)[source]

Bases: AST

Represents position of top back right of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class BottomFrontLeft(*args, **kwargs)[source]

Bases: AST

Represents position of bottom front left of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class BottomFrontRight(*args, **kwargs)[source]

Bases: AST

Represents position of bottom front right of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class BottomBackLeft(*args, **kwargs)[source]

Bases: AST

Represents position of bottom back left of operator

Parameters:
  • args (any) –

  • kwargs (any) –

class BottomBackRight(*args, **kwargs)[source]

Bases: AST

Represents position of bottom back right of operator

Parameters:
  • args (any) –

  • kwargs (any) –