Home Reference Source Test Repository
public class | source

Step

Represents a step of an algorithm.

Test:

Constructor Summary

Public Constructor
public

constructor(description: string)

Constructs a Step.

Member Summary

Public Members
public

Method Summary

Public Methods
public

addChange(change: Change)

Add a change in values for an object to this Step.

public

Applies all step values to objects.

public

Applies all post-step values to objects.

public

Apply all pre-step values to objects.

Public Constructors

public constructor(description: string) source

Constructs a Step. Ensures description is not null or the empty string

Params:

NameTypeAttributeDescription
description string

A string describing the step of the algorithm.

Test:

Public Members

public description: * source

Public Methods

public addChange(change: Change) source

Add a change in values for an object to this Step.

Params:

NameTypeAttributeDescription
change Change

Change object to add.

Test:

public applyDuring() source

Applies all step values to objects.

Test:

public applyPost() source

Applies all post-step values to objects.

Test:

public applyPre() source

Apply all pre-step values to objects.

Test: