Home Reference Source Test Repository
public class | source

Change

Represents changes for a Node or Edge during a step of the algorithm.

Constructor Summary

Public Constructor
public

constructor(object: Node | Edge, fields: Array<string>, preValues: Object<string, *>, duringValues: Object<string, *>, postValues: Object<string, *>)

Constructs a change object.

Member Summary

Public Members
public
public

object: *

public
public

Method Summary

Public Methods
public

Set object values to those it had during the step.

public

Set object values to those it had after the step.

public

Set object values to those it had before the step.

Public Constructors

public constructor(object: Node | Edge, fields: Array<string>, preValues: Object<string, *>, duringValues: Object<string, *>, postValues: Object<string, *>) source

Constructs a change object.

Params:

NameTypeAttributeDescription
object Node | Edge

A Node or Edge object.

fields Array<string>

Array of field names to be stored.

preValues Object<string, *>

Object containing field names and their respective values before the step.

duringValues Object<string, *>

Object containing field names and their respective values before the step.

postValues Object<string, *>

Object containing field names and their respective values after the step.

Public Members

public duringStepValues: * source

public object: * source

public postStepValues: * source

public preStepValues: * source

Public Methods

public applyDuring() source

Set object values to those it had during the step.

public applyPost() source

Set object values to those it had after the step.

public applyPre() source

Set object values to those it had before the step.