1#ifndef CNetStructureTestSpec_h__
2#define CNetStructureTestSpec_h__
7#include "NetCableElementTestSpec.h"
8#include "NetTwineElementSpec.h"
11#include <fhsim/ISimObjectLogger.h>
26 void FromBinaryFile(std::string fileName, std::string filePath);
27 void FromXmlFile(std::string fileName, std::string filePath);
28 int CreateExternalNodeMap(std::vector<std::string> VsInputNodes, std::vector<std::pair<std::string,int> >& VsNodes);
33 std::vector< NetCableElementTestSpec*> GetCableElements(){
return m_cableElements;}
34 std::vector<const NetTwineElementSpec*> GetTwineElements(){
return m_twineElements;}
39 virtual void ReadBinaryInputFile(std::string fileName, std::string filePath, ISimObjectLogger* logger);
42 void CheckNodeNumber(
int nodeNumber, ISimObjectLogger *
const logger, std::string nodeDescription =
"");
43 void CheckNodes(ISimObjectLogger *logger);
45 unsigned short AddCalcNode(
int aiNodes[2]);
46 unsigned short DivideCableElement(
int cableNum );
47 unsigned short DivideTwineElement(
int twineNum );
48 void ReadInputFile( std::string fileName, std::string filePath, ISimObjectLogger* m_logger );
68 ISimObjectLogger* m_logger;
72 double m_minSideLength;
73 double m_maxSideLengthFactor;
Definition NetStructureTestSpec.h:15
int m_numTwinesCalc
The number of elements the cable is divided into.
Definition NetStructureTestSpec.h:51
int m_numNodesCalc
The number of nodes of the net after refinement.
Definition NetStructureTestSpec.h:54
std::vector< NetCableElementTestSpec * > m_cableElements
A vector of structs containing the cable data read from the input file.
Definition NetStructureTestSpec.h:56
int m_numNodesOriginal
The number of original nodes of the net.
Definition NetStructureTestSpec.h:53
std::vector< std::pair< std::string, int > > m_VsNodesAvailable
The tag names and indices of the available external nodes.
Definition NetStructureTestSpec.h:64
int m_numCablesCalc
The number of elements the cable is divided into.
Definition NetStructureTestSpec.h:50
int m_foldingPointRefinement
refinement by folding points on each cable (Cats mode)
Definition NetStructureTestSpec.h:61
std::string m_netName
The identification name of the net.
Definition NetStructureTestSpec.h:63
std::vector< const NetTwineElementSpec * > m_twineElements
A vector of structs containing the cable data read from the input file.
Definition NetStructureTestSpec.h:57
int m_numMeshesCalc
The number of elements the cable is divided into.
Definition NetStructureTestSpec.h:52