Skip to content
Snippets Groups Projects
Commit eec6d506 authored by Debolskiy Andrey's avatar Debolskiy Andrey :bicyclist_tone5:
Browse files

added constructors to most objects;

parent 6ef68bec
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,12 @@ namespace MES_Wind
public double velocityX;
public double velocityY;
public PRM_coordinate coords;
public PRM_raster_cell_prognostic(PRM_coordinate coord, double vX, double vY)
{
this.coords = coord;
this.velocityX = vX;
this.velocityY = vY;
}
}
public class PRM_raster_cell_climate
{
......@@ -29,6 +35,14 @@ namespace MES_Wind
public double wind10;
public double wind15;
public PRM_coordinate coords;
public PRM_raster_cell_climate(PRM_coordinate coord, double w5, double w10, double w15)
{
this.coords = coord;
this.wind5 = w5;
this.wind10 = w10;
this.wind15 = w15;
}
}
public struct PRM_cell_size
{
......@@ -43,11 +57,25 @@ namespace MES_Wind
public int power;
public List<PRM_coordinate> coords { get; private set; }
public bool isbroken;
public PRM_Line(List<PRM_coordinate> coord, int id, int yer, double h, int pw, bool isbrkn)
{
this.coords = coord;
this.identifier = id;
this.year = yer;
this.height = h;
this.power = pw;
this.isbroken = isbrkn;
}
}
public class PRM_Station
{
int identifier;
//TODO
public PRM_coordinate coords;
string name;
int power;
}
class PRM_wind
{
......
......@@ -208,3 +208,10 @@ C:\Users\Geophyslab-laptop\Documents\MES_Wind2\MES_Wind\bin\Debug\MES_Wind.exe
C:\Users\Geophyslab-laptop\Documents\MES_Wind2\MES_Wind\bin\Debug\MES_Wind.pdb
C:\gitlab_wind\MES_Wind\obj\Debug\MES_Wind.exe
C:\gitlab_wind\MES_Wind\obj\Debug\MES_Wind.pdb
C:\gitlab_wind\MES_Wind\bin\Debug\MES_Wind.exe
C:\gitlab_wind\MES_Wind\bin\Debug\MES_Wind.pdb
C:\gitlab_wind\MES_Wind\obj\Debug\MES_Wind.csprojResolveAssemblyReference.cache
C:\gitlab_wind\MES_Wind\obj\Debug\MES_Wind.frmGraph.resources
C:\gitlab_wind\MES_Wind\obj\Debug\MES_Wind.frmMain.resources
C:\gitlab_wind\MES_Wind\obj\Debug\MES_Wind.Properties.Resources.resources
C:\gitlab_wind\MES_Wind\obj\Debug\MES_Wind.csproj.GenerateResource.Cache
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment