object modeling...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Herve MAILLARD

    #1

    object modeling...

    Hi,

    I made my first steps with oriented object programs and I ask my self a lot
    of questions...
    Also, I d'ont really know if I post in the rigth Newsgroup...

    I have 3 "objects" ?

    Equipement, Bloc and Variable

    Equipement contains properties : Name, Type
    Bloc contains properties : Name, Type, Size
    Variable contains property : Name

    For one Equipement, I can have X Blocs and for each Blocs, X Variables.
    Of course I could have may Equipements.

    How can I structurized this ? For exemple I need to know for one Variable
    what's the parent's Bloc and Equipement...

    I have think to a multi dimensions array ? Is it the good way ?

    Your help will be be good...

    Thanks a lot

    H. MAILLARD


  • Marina

    #2
    Re: object modeling...

    The Equipment class should have a collection of Bloc objects. The bloc
    class should have a collection of Variable objects.

    Depending on how you structure it, you can force Variables to only exist as
    part of a Bloc, and that way you could always know who the parent Bloc is.

    "Herve MAILLARD" <rvmaillard@fre e.fr> wrote in message
    news:3f25054e$0 $8898$626a54ce@ news.free.fr...[color=blue]
    > Hi,
    >
    > I made my first steps with oriented object programs and I ask my self a[/color]
    lot[color=blue]
    > of questions...
    > Also, I d'ont really know if I post in the rigth Newsgroup...
    >
    > I have 3 "objects" ?
    >
    > Equipement, Bloc and Variable
    >
    > Equipement contains properties : Name, Type
    > Bloc contains properties : Name, Type, Size
    > Variable contains property : Name
    >
    > For one Equipement, I can have X Blocs and for each Blocs, X Variables.
    > Of course I could have may Equipements.
    >
    > How can I structurized this ? For exemple I need to know for one Variable
    > what's the parent's Bloc and Equipement...
    >
    > I have think to a multi dimensions array ? Is it the good way ?
    >
    > Your help will be be good...
    >
    > Thanks a lot
    >
    > H. MAILLARD
    >
    >[/color]


    Comment

    • Herve MAILLARD

      #3
      Re: object modeling...

      Marina,

      Thanks for your answser !

      Can you please tell me more about Collections or give me some samples ?

      thanks for your help .

      H. MAILLARD

      "Marina" <zlatkinam@nosp am.hotmail.com> a écrit dans le message de news:
      esAeZSQVDHA.624 @TK2MSFTNGP10.p hx.gbl...[color=blue]
      > The Equipment class should have a collection of Bloc objects. The bloc
      > class should have a collection of Variable objects.
      >
      > Depending on how you structure it, you can force Variables to only exist[/color]
      as[color=blue]
      > part of a Bloc, and that way you could always know who the parent Bloc is.
      >
      > "Herve MAILLARD" <rvmaillard@fre e.fr> wrote in message
      > news:3f25054e$0 $8898$626a54ce@ news.free.fr...[color=green]
      > > Hi,
      > >
      > > I made my first steps with oriented object programs and I ask my self a[/color]
      > lot[color=green]
      > > of questions...
      > > Also, I d'ont really know if I post in the rigth Newsgroup...
      > >
      > > I have 3 "objects" ?
      > >
      > > Equipement, Bloc and Variable
      > >
      > > Equipement contains properties : Name, Type
      > > Bloc contains properties : Name, Type, Size
      > > Variable contains property : Name
      > >
      > > For one Equipement, I can have X Blocs and for each Blocs, X Variables.
      > > Of course I could have may Equipements.
      > >
      > > How can I structurized this ? For exemple I need to know for one[/color][/color]
      Variable[color=blue][color=green]
      > > what's the parent's Bloc and Equipement...
      > >
      > > I have think to a multi dimensions array ? Is it the good way ?
      > >
      > > Your help will be be good...
      > >
      > > Thanks a lot
      > >
      > > H. MAILLARD
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Rob Tillie

        #4
        Re: object modeling...

        Try this resource: http://www.csharphelp.com/archives/archive183.html
        You can also search the visual studio / MSDN help to find explanatory
        articles about the .NET collections.

        Hope it helps,
        -- Rob.

        Herve MAILLARD wrote:[color=blue]
        > Marina,
        >
        > Thanks for your answser !
        >
        > Can you please tell me more about Collections or give me some samples
        > ?
        >
        > thanks for your help .
        >
        > H. MAILLARD
        >
        > "Marina" <zlatkinam@nosp am.hotmail.com> a écrit dans le message de
        > news: esAeZSQVDHA.624 @TK2MSFTNGP10.p hx.gbl...[color=green]
        >> The Equipment class should have a collection of Bloc objects. The
        >> bloc class should have a collection of Variable objects.
        >>
        >> Depending on how you structure it, you can force Variables to only
        >> exist as part of a Bloc, and that way you could always know who the
        >> parent Bloc is.
        >>
        >> "Herve MAILLARD" <rvmaillard@fre e.fr> wrote in message
        >> news:3f25054e$0 $8898$626a54ce@ news.free.fr...[color=darkred]
        >>> Hi,
        >>>
        >>> I made my first steps with oriented object programs and I ask my
        >>> self a lot of questions...
        >>> Also, I d'ont really know if I post in the rigth Newsgroup...
        >>>
        >>> I have 3 "objects" ?
        >>>
        >>> Equipement, Bloc and Variable
        >>>
        >>> Equipement contains properties : Name, Type
        >>> Bloc contains properties : Name, Type, Size
        >>> Variable contains property : Name
        >>>
        >>> For one Equipement, I can have X Blocs and for each Blocs, X
        >>> Variables. Of course I could have may Equipements.
        >>>
        >>> How can I structurized this ? For exemple I need to know for one
        >>> Variable what's the parent's Bloc and Equipement...
        >>>
        >>> I have think to a multi dimensions array ? Is it the good way ?
        >>>
        >>> Your help will be be good...
        >>>
        >>> Thanks a lot
        >>>
        >>> H. MAILLARD[/color][/color][/color]


        Comment

        Working...