Click here to Skip to main content
15,897,519 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: singleton pattern example Pin
led mike5-Sep-07 8:07
led mike5-Sep-07 8:07 
GeneralRe: singleton pattern example Pin
Urs Enzler5-Sep-07 20:19
Urs Enzler5-Sep-07 20:19 
AnswerRe: singleton pattern example Pin
hotcodeking5-Sep-07 1:58
hotcodeking5-Sep-07 1:58 
AnswerRe: singleton pattern example [modified] Pin
ElSpinos13-Sep-07 23:00
ElSpinos13-Sep-07 23:00 
AnswerRe: singleton pattern example Pin
etkid8421-Sep-07 3:02
etkid8421-Sep-07 3:02 
QuestionApplications communication Pin
Yoav Zur28-Aug-07 19:18
Yoav Zur28-Aug-07 19:18 
AnswerRe: Applications communication Pin
led mike30-Aug-07 4:43
led mike30-Aug-07 4:43 
QuestionClass design help Pin
rsaint2727-Aug-07 3:18
rsaint2727-Aug-07 3:18 
Hello,

I'm building a base class to hold information taken from a robot movement file.
This means I have several lines, each with a set of points, and sometimes commands, between the points. Each point has some data (coordinates, orientation, zone, speed, work object, and a few more).

I'm using Eran Kampf's Sharp3D math library.

I would like a sugestion on how to implement the base class.
So far, I've done the following:

using Sharp3D.Math.Core
using Sharp3D.Math.Geometry3D

namespace ModelClass
{
#region Class constants

public enum Linetypes
{
undefined = -1,
laser = 0,
water = 1,
glue = 2,
primer = 3,
rough = 4
}
public enum Polysides
{
undefined = -5,
none = -1,
right = 0,
left = 1
}

#endregion


public class Point7D
{
// Represents a point in 3D space
Vector3F point;
// Represents the quaternion of vector associated with point
QuaternionD quaternion;
// Point name descriptor
string name;
}
(...)

public class RobotPoint : Point7D
{
#region Constants

public enum zones
{
undefined,
fine,
z0,
z1,
z5
}
public enum speeds
{
undefined,
v5,
v10,
v100,
v1000
}
const string ActiveTool = "ActiveTool";
const string AuxPointData = "[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]]";

#endregion

#region Internal fields

// Workplace definition
string workplace;
// Tool defined for the point
string tool;
// Zone definition
zones zone;
// Speed definition
speeds speed;

#endregion
}

public class PolyLine7D
{
#region Internal Fields

List<RobotPoint> pointList;
string name;
Linetypes type;
int width;
int npasses;
int npts;
int power;
Polysides polyside;

#endregion
}

public class Model
{
#region Internal Fields

double front_tolerance;
double back_tolerance;
double inside_x_sep;
double outside_x_sep;
double plan_overlap;
List<PolyLine7D> _ModelPolylines;
string _ModelFileName;

#endregion
}
}

Should the class PolyLine implement itself a static method for creating a list, instead of having the Model class do it?
Same question for the Model class if I want to have more than one file opened at the same time? In such case, I would create a Hashtable, with the _ModelFileName as a key.

Thanks for any help you can give me.
GeneralRe: Class design help Pin
Paul Conrad27-Jan-08 7:12
professionalPaul Conrad27-Jan-08 7:12 
QuestionPromotion Table Schema Design Pin
yameen26-Aug-07 3:48
yameen26-Aug-07 3:48 
GeneralRe: Promotion Table Schema Design Pin
Paul Conrad27-Jan-08 7:13
professionalPaul Conrad27-Jan-08 7:13 
Questiongetting infragistics Pin
starist24-Aug-07 9:28
starist24-Aug-07 9:28 
AnswerRe: getting infragistics Pin
Mark Churchill2-Sep-07 19:11
Mark Churchill2-Sep-07 19:11 
GeneralRe: getting infragistics Pin
TAHIR MURAD3-Sep-07 1:06
TAHIR MURAD3-Sep-07 1:06 
GeneralRe: getting infragistics Pin
originSH3-Sep-07 23:36
originSH3-Sep-07 23:36 
QuestionFault Exception Error PinPopular
Revathij23-Aug-07 1:29
Revathij23-Aug-07 1:29 
QuestionState Machine Diagram for client-server communication Pin
DotNet.Agrawal21-Aug-07 23:21
DotNet.Agrawal21-Aug-07 23:21 
AnswerRe: State Machine Diagram for client-server communication Pin
Dave Kreskowiak24-Aug-07 6:47
mveDave Kreskowiak24-Aug-07 6:47 
QuestionCreating sequential numbering in a semi-connected environment Pin
francoisdotnet17-Aug-07 21:23
francoisdotnet17-Aug-07 21:23 
AnswerRe: Creating sequential numbering in a semi-connected environment Pin
Mark Churchill19-Aug-07 15:14
Mark Churchill19-Aug-07 15:14 
GeneralRe: Creating sequential numbering in a semi-connected environment Pin
francoisdotnet19-Aug-07 20:35
francoisdotnet19-Aug-07 20:35 
AnswerRe: Creating sequential numbering in a semi-connected environment Pin
User 58385228-Aug-07 20:27
User 58385228-Aug-07 20:27 
QuestionODP.Net Pin
miniThomas17-Aug-07 0:54
miniThomas17-Aug-07 0:54 
AnswerRe: ODP.Net Pin
Paul Conrad4-Nov-07 7:07
professionalPaul Conrad4-Nov-07 7:07 
GeneralUsing RDL to Define Flat File Exports Pin
Brady Kelly16-Aug-07 4:05
Brady Kelly16-Aug-07 4:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.