Click here to Skip to main content

Design and Architecture

 
AnswerRe: How do you design this? : with a better example PinmemberEddy Vluggen31-Dec-12 18:04 
AnswerRe: How do you design this? : with a better example PinmemberKeld Ølykke16-Jan-13 12:23 
QuestionHow to find the similarity between users in Twitter ? How to design a good and efficient idea? Pinmemberldaneil27-Dec-12 8:26 
AnswerRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? PinprotectorPete O'Hanlon27-Dec-12 8:39 
GeneralRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pinmemberldaneil27-Dec-12 8:50 
AnswerRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pinmemberjschell27-Dec-12 10:21 
GeneralRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pinmemberldaneil28-Dec-12 9:31 
AnswerRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? [modified] PinmemberApril Fans27-Dec-12 16:43 
GeneralRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pinmemberldaneil28-Dec-12 9:36 
GeneralRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? [modified] PinmemberApril Fans3-Jan-13 17:46 
AnswerRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? PinprofessionalMarc Koutzarov30-Aug-14 0:54 
QuestionClient - Server approach Pinmemberbugal21-Dec-12 1:33 
AnswerRe: Client - Server approach Pinmemberjschell22-Dec-12 15:11 
QuestionHow do you design this ? PinmemberVuNic18-Dec-12 3:33 
An object called MovableObject can move through different methods.
MoveByLegs, wheels & Wings. When we choose one method, i.e MoveByLegs and pass Legs arguments, the other two will be unused.
 

Should I design it like this:
enum MoveType
{
MoveByLegs,
MoveByWheels,
MoveByWings
}
 
class MovableObject
{
List<leg> lstLegs;
List<Wheels> lstWheels;
List<Wing> lstWings;
 
MoveType m_Movetype;
 
EnableMovement(MoveType movetype_in, object obj_in)
{
m_Movetype = movetype_in;
switch (movetype_in)
{
case MoveByLegs:
lstLegs = List<Leg>(obj_in);
break;
 
case MoveByWheels:
lstWheels = List<Wheel>(obj_in);
break;
 
case MoveByWings:
lstWings = List<Wing>(obj_in);
break;
}
 
}
 
Move()
{
if(m_Movetype == MoveType.MoveByLegs)
{
 
//  Process lstLegs
}
similar case for MoveByWheels & Legs
 
}
}

Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

AnswerRe: How do you design this ? PinprotectorPete O'Hanlon18-Dec-12 3:47 
GeneralRe: How do you design this ? PinmemberVuNic18-Dec-12 3:54 
GeneralRe: How do you design this ? PinprotectorPete O'Hanlon18-Dec-12 4:02 
GeneralRe: How do you design this ? PinmemberLampridis Vasilis30-Dec-12 1:04 
GeneralRe: How do you design this ? PinmemberVuNic30-Dec-12 19:00 
AnswerRe: How do you design this ? Pinmemberjschell18-Dec-12 9:14 
GeneralPlease hold on PinmemberVuNic18-Dec-12 19:59 
GeneralRe: How do you design this ? PinmemberVuNic30-Dec-12 18:59 
GeneralRe: How do you design this ? Pinmemberjschell31-Dec-12 10:12 
Questionportability/deployment PinmemberMember 838594911-Dec-12 5:39 
AnswerRe: portability/deployment Pinmemberjschell11-Dec-12 11:07 
AnswerRe: portability/deployment PinmemberMycroft Holmes16-Dec-12 12:59 
GeneralRe: portability/deployment Pinmemberjschell17-Dec-12 9:40 
Question.NET vs WINRT on Windows 8 [modified] Pinmemberdevvvy9-Dec-12 16:13 
AnswerRe: .NET vs WINRT on Windows 8 PinmvpRichard MacCutchan9-Dec-12 23:12 
GeneralRe: .NET vs WINRT on Windows 8 Pinmemberdevvvy10-Dec-12 3:52 
AnswerRe: .NET vs WINRT on Windows 8 PinmemberEddy Vluggen9-Dec-12 23:42 
GeneralRe: .NET vs WINRT on Windows 8 Pinmemberdevvvy10-Dec-12 3:53 
GeneralRe: .NET vs WINRT on Windows 8 PinmemberEddy Vluggen10-Dec-12 4:05 
GeneralRe: .NET vs WINRT on Windows 8 Pinmemberdevvvy10-Dec-12 4:08 
GeneralRe: .NET vs WINRT on Windows 8 PinmemberEddy Vluggen10-Dec-12 4:11 
AnswerRe: .NET vs WINRT on Windows 8 PinmemberRobb Ryniak10-Dec-12 3:14 
GeneralRe: .NET vs WINRT on Windows 8 Pinmemberdevvvy10-Dec-12 4:04 
GeneralRe: .NET vs WINRT on Windows 8 PinmemberRobb Ryniak10-Dec-12 6:13 
AnswerRe: .NET vs WINRT on Windows 8 PinprotectorPete O'Hanlon10-Dec-12 3:41 
GeneralRe: .NET vs WINRT on Windows 8 Pinmemberdevvvy10-Dec-12 3:51 
GeneralRe: .NET vs WINRT on Windows 8 PinprotectorPete O'Hanlon10-Dec-12 3:59 
GeneralRe: .NET vs WINRT on Windows 8 Pinmemberdevvvy10-Dec-12 4:07 
GeneralRe: .NET vs WINRT on Windows 8 PinprotectorPete O'Hanlon10-Dec-12 4:31 
GeneralRe: .NET vs WINRT on Windows 8 Pinmemberdevvvy10-Dec-12 5:22 
GeneralRe: .NET vs WINRT on Windows 8 PinprotectorPete O'Hanlon10-Dec-12 5:44 
QuestionDesign Architecture for developing a UML Class Diagram Editor PinmemberDaskul9-Dec-12 15:44 
AnswerRe: Design Architecture for developing a UML Class Diagram Editor Pinmemberjschell10-Dec-12 9:36 
QuestionRe: Design Architecture for developing a UML Class Diagram Editor PinmemberDaskul10-Dec-12 15:59 
AnswerRe: Design Architecture for developing a UML Class Diagram Editor Pinmemberjschell11-Dec-12 10:35 
GeneralRe: Design Architecture for developing a UML Class Diagram Editor PinmemberDaskul11-Dec-12 15:02 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.150123.1 | Last Updated 23 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid