overhead_line_tests Class Reference

Test class for overhead lines. More...

List of all members.

Public Member Functions

void setUp ()
 Called by CPPUnit to ensure that any special pre-testing steps are completed before the tests are executed.
void test_node_create ()
 Test the creation of an object.
void test_overhead_line_a ()
 This function performs a unit test for overhead lines.

Detailed Description

Test class for overhead lines.

This class contains unit tests for different configurations of overhead lines.

Definition at line 12 of file overheadline_test.h.


Member Function Documentation

void overhead_line_tests::test_node_create (  )  [inline]

Test the creation of an object.

Part of this test includes retrieving the class that this object will represent, creating the object, and testing certain post creation assumptions.

For each feature of the module that we want to test, we should create a separate test function. A function prototype is acceptable here, with the implementation of the method in a .cpp file.

Definition at line 46 of file overheadline_test.h.

void overhead_line_tests::test_overhead_line_a (  )  [inline]

This function performs a unit test for overhead lines.

Overhead lines can't be tested independantly, but require a node at either end. In this test, we will create 2 nodes, anchor them at either end of a single overhead line, and then perform a series of sync's to perform the sweeps that will perform the calculations to find the current in the line at a given timestamp.

Definition at line 61 of file overheadline_test.h.


The documentation for this class was generated from the following file:

GridLAB-D™ Version 4.1
An open-source smart grid simulator created by PNNL for the US Department of Energy Office of Electricity