Power System Platform  2024w23a
Loading...
Searching...
No Matches
ParseAnarede Class Reference

Class responsible to parse ANAREDE files to import data to PSP. More...

#include <ImportForm.h>

Classes

struct  BranchData
 
struct  BusData
 
struct  Component
 
struct  IndElementData
 
struct  IndGenData
 
struct  PowerLine
 

Public Member Functions

 ParseAnarede (wxFileName lstFile, wxFileName pwfFile)
 
bool Parse ()
 
std::vector< Component * > GetComponents () const
 
std::vector< PowerLine * > GetLines () const
 
std::vector< BranchData * > GetBranchData () const
 
std::vector< BusData * > GetBusData () const
 
std::vector< IndElementData * > GetIndElementData () const
 
wxString GetProjectName () const
 
double GetMVAPowerBase () const
 
wxPoint2DDouble GetNodePositionFromID (Bus *bus, double scale, int nodeID)
 
BusDataGetBusDataFromID (int id)
 
BranchDataGetBranchDataFromID (int id, int fromBus, int toBus, ElementTypeAnarede type)
 
IndElementDataGetIndElementDataFromID (int id, int busID, ElementTypeAnarede type)
 
void ClearData ()
 

Protected Member Functions

bool GetLenghtAndRotationFromBusCode (wxString code, double &lenght, int &rotationID)
 
wxString GetLSTLineNextValue (wxString line, int &currentPos)
 
bool StrToElementType (wxString strType, ElementTypeAnarede &type)
 
bool ParsePWFExeCode (wxString data, wxString exeCode)
 
bool GetPWFStructuredData (wxString data, unsigned int startPos, unsigned int dataLenght, int &value, int decimalPos=-1)
 
bool GetPWFStructuredData (wxString data, unsigned int startPos, unsigned int dataLenght, double &value, int decimalPos=-1)
 

Protected Attributes

wxFileName m_lstFile
 
wxFileName m_pwfFile
 
std::vector< Component * > m_components
 
std::vector< PowerLine * > m_lines
 
std::vector< BusData * > m_busData
 
std::vector< BranchData * > m_branchData
 
std::vector< IndElementData * > m_indElementData
 
wxString m_projectName = _("Imported project")
 
double m_mvaBase = 100.0
 

Detailed Description

Class responsible to parse ANAREDE files to import data to PSP.

Author
Thales Lima Oliveira thale.nosp@m.s@uf.nosp@m.u.br
Date
27/03/2018

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