An OOP model idea required

hi all,
I have a requirement.
There will be two independent classes. A and B.
There will be two instances oA and oB.
I have to link an instance of oA as its created to an instance of oB.
I did this by creating instance oB in Class A's constructor..
But theres another requirement, that some methods in class B will
need to use values of variables in class A.
meaning,
an instance of A will need an instance of B for the corresponding instance
of A,
and the instance of B will use A's instance variables, or viceversa.
public oB.something(oA){
oB.n1= oA.t1 + oA.t2
I have currently done the above..
Is it ok. is it a cyclic ref.
whats your suggestion?
Thanks
'Harish

So those two classes A and B aren't so independent after all, i.e. objects of both classes need to be
paired (or linked) to each other. How about this -- public class A {
   private B that;
   public A() { this(null); }
   public A(B b) { link(b); }
   public void link(B that) {
      if (this.that != that) {
         this.that= that;
         if (that != null) that.link(this);
public class B {
   private A that;
   public B() { this(null); }
   public B(A a) { link(a); }
   public void link(A that) {
      if (this.that != that) {
         this.that= that;
         if (that != null) that.link(this);
} kind regards,
Jos

Similar Messages

  • Data Model - Idea Required

    Hello,
    I have 4 different flat files. Each File will have about 16 lakh records every year.
    I want to know what is best possible data flow i can use. Like 4 DSO from 4 data sources then whether to use one DSO collecting all or 4 DSO or 4 Cubes and so on?
    Also we have to store previous 3 years data for each flat file. Also my question is if i can store this in same target as we are discussing above or different for each file?
    Please suggest

    Hi Syed,
    As  per your requiremnt you  need  to concentarte on the following Performance points.
    As per BI 7 i am giving the Info
    1. Data is huge .So you need to use howmany DSO?
        -  As per my exp create a sepaarte DSO for each DS and later you can create a separate DSO on the top based if you want to maintain a unique records based on the four DSO's.
    2. Data laoing issue
              - Activating Data is also one issue.As you mentioned its FF if possible use Write Optimized DSO in the first layer.
    3. Cube Design
         - Based on the above points what type of Data is coming and you want to maintain a separate Cube for each area.
            Ex : wht we follow in SD,MM etc......
    OR create One Cube and maintain the relevant Data then later use Multi Provider on top of DSO's and Cube for reporting.
    Regards
    Ram.

  • Model number required for website not clear

    Hi,
    My laptop model number is Portege R830. Part number PT321U-0H9019. What model do I select on your downloads webpage: "http://www.csd.toshiba.com/cgi-bin/tais/support/jsp/home.jsp"
    Where do I find the appropriate model number? Ulitimatley I just want a manual that can detail a part number for the ZIF to SATA adaptor required to adapt a a replacement SSD
    Thanks
    Nick

    Portege R830 (PT321U-0H9019)
    Similar to this one, Nick.
    Portege R830-S8332 (PT321U-0FW04Q)
    Because they are in the same part-number family (PT321U), the downloads here should work.
    Sometimes Toshiba does not assign a model designation. We often notice that when it's a special order from ToshibaDirect.
    I can't help you with the ZIF to SATA adapter problem.
    -Jerry

  • How do I submit a IPod Nano Model idea to Apple?

    How do I submit an idea of an iPod Nano Model?

    Welcome to the Apple Support Communities
    See > http://www.apple.com/feedback

  • IDEAs Required......Forms Installation Problem

    I recently installed Oracle 8.1.6..(exists in c:\Oracle 81 directory).when I tried to install Forms6i it installed a copy of SQL+ (Why???)in c:\orant and installed forms in c:\orant\forms_home.
    **Previously I was able to connect to Oracle and work with SQL+ but now neither can I work on SQL+(gives an error <lang>.MSB file not found) nor am I able to connect thru Forms (gives TNS adapter error).....Neither FOrms nor SQL+ are working now.
    ** I am unable to start the LISTENER
    ** I am unable to run NET 8 Config
    ** How do i go about solving all of the ablove problems? (connect to DB and get everything working??)
    **If I un-install FOrms6i and re-install will it help?
    Ideas and Help required.
    Appreciate any help!
    Sandhya

    The TNSNAMEs file looks like this....
    Beq-local.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = beq.world)
    (PROTOCOL = BEQ)
    (PROGRAM = oracle73)
    (ARGV0 = oracle73ORCL)
    (ARGS = '(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')
    (CONNECT_DATA = (SID = ORCL)
    )

  • IDE requirements inconsistent

    Dear all
    We want to install and setup Team Explorer Everywhere (TEE) and Eclipse (Plugin for Eclipse). Unfortunately there are inconsistent information on Microsofts webpages:
    IDEs that are based on Eclipse 3.5 to 4.4 on Windows, Linux, Mac OS X, Solaris, AIX, or HP-UX:
    http://www.microsoft.com/en-us/download/details.aspx?id=40785
    Eclipse 3.5 to 3.7 on Windows, Linux, Mac OS X, Solaris, AIX, or HP-UX:
    https://msdn.microsoft.com/de-de/library/hh301122.aspx
    Is TEE version 12.02 compatible with Eclipse 4.4 (Luna)?
    Thanks in advance
    Daniel

    HI Nageswar,
    if you want to install developer workplace (NWDS + JAVA WAS)
    you need:
    • RAM: 1 GB required, 2 GB recommended
    • CPU: 1 GHz required, 2 GHz recommended
    • Disk Space: 3,3 GB (1,9 GB temporary)
    Detail information you can find in
    service.sap.com/instguides -> SAP Netweaver -> release 04 ->
    installation -> Inst. Guide - SAP NetWeaver Developer Workplace Stack x
    Regards
    Bogdan

  • Anyone around here with an apple developer program membership who lives in the us and wants to participate in entering the atari  indie developer challenge for pong? I have the great idea required, ample coding skills and a completed game design document.

    If you have a membership with the apple developer community or know anyone who has and also resides within the united states, please contact.
    The purpose is to partake in http://www.atari.com/pongdeveloperchallenge
    The initial game design document is fully completed and the ideas expressed in it are more than strong enough to compete for the top prizes.
    I'm well versed in different programming languages (c, scheme, js, assembly, python,...) as well as being a proficient sound designer and musician and a skilled graphics and animation manipulator myself. Assistance with the actual development would appreciated but is not really necessary.
    Winnings and proceedings arising from participation would distributed most fairly. If you know anyone besides yourself that is able to help out, you would also be rewarded financially from an ensuing victory.
    Reply to this post, pm or send  a gmail to aelgoa
    Have a good one
    Marnix

    If you have a membership with the apple developer community or know anyone who has and also resides within the united states, please contact.
    The purpose is to partake in http://www.atari.com/pongdeveloperchallenge
    The initial game design document is fully completed and the ideas expressed in it are more than strong enough to compete for the top prizes.
    I'm well versed in different programming languages (c, scheme, js, assembly, python,...) as well as being a proficient sound designer and musician and a skilled graphics and animation manipulator myself. Assistance with the actual development would appreciated but is not really necessary.
    Winnings and proceedings arising from participation would distributed most fairly. If you know anyone besides yourself that is able to help out, you would also be rewarded financially from an ensuing victory.
    Reply to this post, pm or send  a gmail to aelgoa
    Have a good one
    Marnix

  • Modelling Info Required for ABAP Work bench

    Dear All,
       We need your help in the below issue. Please try to provide your valuable inputs for the same.
       We are trying to develop a solution in the R/3 system which tries to compare different table/fields and checks the consistency of the data in these tables.
    E.G: Say we have 2 tables like BUT020 and ADRC, now we would need a modelling tool which sort of maps the primary keys of these tables in the front end and checks whether the data in this table is correct.
        So we would need to write some generic code at the back end which picks these tables/field details at run time and checks the data for inconsistencies. Now at the back end we are comfortable in writing this Generic code in ABAP.
       But we need help in the front end where we can have a modelling tool which say would have a pre-defined set of tables and which would allow us to map these fields in the UI and pass the data to the back end.
        Do you know which modelling tool or a UI which we could use for this purpose. We tried checking with Visual Composer for the UI, but I heard this integrates only with the ESA Repository and we should BO's modelled for the same. So this option was not feasible.
        Please let us know in case you know any tool which can use in the front end to map the tables.
      Any suggestion will be highly rewarded.
    Warm Regards, Vinay

    Hello Sandeep
    The reason why it's no longer available is because it's not recommended to install Dual Stack.
    The recommendation is to install seperate SAP systems (one SID for ABAP, another SID for Java, a database for each of them).
    There are several reasons for that recommendation, refreshing procedure, system copy procedure, setting database parameters seperately for each and so on.
    So you would have something like AA1 + Database and AA2 + Database and you connect them using the post configuration steps (template runs etc).
    Most or all of the future SAP products will be focused on one engine (either fully ABAP or fully Java).
    Kind regards
    Tom

  • General idea required for unit wise separation?

    Hi Experts,
    I have to share my present state that I am handling the Material Management system in my concern. That MM having many tables,sequences,packages,procedure and function and other relevant objects too.
    Now let i explain the issue. The company wants to store the entries as two different units(present companies come across with this MM module for 10 year and new company going to start with in a month so we need all control no should be from the scratch). In my case, no tables are having unit id column and no procedure and function are created under two different units perception. The old unit under user A on db1.
    My questings
    1. Shall I create a new user called B for another unit and copy all objects from user A. (or)
    2. Need to create a new database.
    Which one is best method and why?
    Kanish

    it's slightly difficult to understand what you're saying, however from what I can understand, it sounds like a prime situation for partitioning.
    however if you are splitting off and starting fresh with a complete new business unit/company, then the advantages of having a separate database would be that you could have separate Business Continuity solutions, have the DB's with their own independant maintenance/release schedules etc.
    On the other hand however, perhaps now is the time to redesign the application somewhat - if you have time that is. only take over the tables that are necessary for the new orginisation and improve them etc.
    just thoughts anyway.

  • Modem HUAWEI MODEL E226 -  Require password every time i try to connect

    I have a modem huawei e226.
    i use MobileConnect to connect internet.
    Every time the connection failed i have do type again my password.
    I dont want to do that... any one know how to configure this aplicaton to not ask for password any more?

    I also use the same type of Modem ~ the only time I had to put my admin password in was when first starting the ISPs software after installing it. Never had to enter it again. (Vodafone NZ)
    There is no password in my Keychain for the modem.
    I use Internet connect unless I have to reset the type of network used because of conflict. I then use the Vodafone software, then internet connect.
    I'd check your ISPs software options or give them a call.
    Best.

  • Requirement Reduction integration model

    Hi,
    Can someone explain in layman terms with an example what happens when "requirment reduction" object is CIF'd alongwith Planned independent Requirements (to APO). Why should/would someone create an integration model for requirement reduction when integration models exist for PIRs and Sales Orders consumption settings are taking care of netting (as applicable/set). we have funtionalities for consumption and reduction of sales orders from PIR's e.g in APO and ECC.
    Thanks
    Lok

    Hello,
    I would like to see a clear explanation to that as well.
    From what I understand reading about this topic it is to have additional control over this by applying own logic in CIF.
    Quoting the SAP documents:
    <<If you set this indicator, you can create integration models specifically for
    the Requirements Reduction filter object type (type T_FCC).
    The filtering takes place on the basis of active integration models for
    requirements reduction. In this case, you can control in greater detail for
    which material-plant combinations a requirements reduction should be transferred
    to SAP APO.>>
    For normal cases this is not needed. Perhaps it is needed if you want certain shipments to other plants to reduce forecast. E.g. mixed MRP.
    Regards,
    Tor

  • SAP HANA modelling Standalone

    Hello Experts,
    We are in the process of HANA Standalone implementation and design studio as reporting tool. When I am modeling, I did not figure out answers to some of the below questions .Below are the questions. Experts, please help.
    Best way of modeling: The SAP HANA LIVE is completely built on calculation view; there are no Attribute and Analytical views. I have got different answer why there is only Calculation view and there are no Alaytic view and Attribute views. We are in SP7 latest version. This is a brand new HANA in top of non-SAP (DB2 source).  What is the best way to model this scenario, meaning, can we model everything in the Calculation view’s like SAP HANA live or do you suggest using the standard attribute, analytical and calculation views to do the data model. Is SAP moving away from AV & AT to only calculation Views to simply the modeling approach?
    Reporting: We are using the design studio as front end tool. Just for example, if we assume that we are
    Using the BW, we bring all the data in to BW from different sources, build the cubes and use the bex query. Here in bex query we will be using the restricted key figures, calculated key figures calculations etc. From the reporting wise, we have the same requirements, calculations, RKF, CKF,Sum, Avg etc. if we are Using the design studio on top of standalone HANA, where do I need to implement all these calculations? Is it in different views?  (From reporting perspective, if it’s BW system, I would have done all the calculations in BEx.)
    Universe: If we are doing all the calculations in SAP HANA like RKF. CKF and other calculations , what is the point in having additional layer of universe , because the reporting compnets cam access the queries directly on views .In one of our POC , we found that the using universe affect performance.
    Real time reporting: Our overall objective is to give a real time or close to real time reporting requirements, how data services can help, meaning I can schedule the data loads every 3 or 5 min to pull the data from source. If I am using the Data services, how soon I can get the data in HANA, I know it depends on the no of records and the transformations in between the systems & network speed. Assuming that I will schele the job every 2 min and it will take another 5 min to process the Data services job , is it fair to say the my information will be available on the BOBJ tools with in 10 min from the creation of the records.
    Are there any new ETL capabilities included in SP7, I see some additional features included in SP7. Is some of the concepts discussed are still valid, because in SP7 we have star join concept.
    Thanks
    Magge

    magge kris wrote:
    Hello Experts,
    We are in the process of HANA Standalone implementation and design studio as reporting tool. When I am modeling, I did not figure out answers to some of the below questions .Below are the questions. Experts, please help.
    Best way of modeling: The SAP HANA LIVE is completely built on calculation view; there are no Attribute and Analytical views. I have got different answer why there is only Calculation view and there are no Alaytic view and Attribute views. We are in SP7 latest version. This is a brand new HANA in top of non-SAP (DB2 source).  What is the best way to model this scenario, meaning, can we model everything in the Calculation view’s like SAP HANA live or do you suggest using the standard attribute, analytical and calculation views to do the data model. Is SAP moving away from AV & AT to only calculation Views to simply the modeling approach?
    >> I haven't read any "official" guidance to move away from typical modeling approach, so I'd say stick with the usual approach- AT, then AV, then CA views. I was told that the reason for different approach with HANA Live was to simplify development for mass production of solutions.
    Reporting: We are using the design studio as front end tool. Just for example, if we assume that we are
    Using the BW, we bring all the data in to BW from different sources, build the cubes and use the bex query. Here in bex query we will be using the restricted key figures, calculated key figures calculations etc. From the reporting wise, we have the same requirements, calculations, RKF, CKF,Sum, Avg etc. if we are Using the design studio on top of standalone HANA, where do I need to implement all these calculations? Is it in different views?  (From reporting perspective, if it’s BW system, I would have done all the calculations in BEx.)
    >> I'm not a BW guy, but from a HANA perspective - implement them where they make the most sense. In some cases, this is obvious - restricted columns are only available in Analytic Views. Hard to provide more complex advice here - it depends on your scenario(s). Review your training materials, review SCN posts and you should start to develop a better idea of where to model particular requirements. (Most of the time in typical BI scenarios, requirements map nicely to straightforward modeling approaches such as Attribute/Analytic/Calculations Views. However, some situations such as slowly-changing dimensions, certain kinds of calculations (i.e. calc before aggregation with BODS as source - where calculation should be done in ETL logic) etc can be more complex. If you have specific scenarios that you're unsure about, post them here on SCN.
    Universe: If we are doing all the calculations in SAP HANA like RKF. CKF and other calculations , what is the point in having additional layer of universe , because the reporting compnets cam access the queries directly on views .In one of our POC , we found that the using universe affect performance.
    >>> Depends on what you're doing. Universe generates SQL just like front-end tools, so bad performance implies bad modeling. Generally speaking - universes *can* create more autonomous reporting architecture. But if your scenario doesn't require it - then by all means, avoid the additional layer if there's no added value.
    Real time reporting: Our overall objective is to give a real time or close to real time reporting requirements, how data services can help, meaning I can schedule the data loads every 3 or 5 min to pull the data from source. If I am using the Data services, how soon I can get the data in HANA, I know it depends on the no of records and the transformations in between the systems & network speed. Assuming that I will schele the job every 2 min and it will take another 5 min to process the Data services job , is it fair to say the my information will be available on the BOBJ tools with in 10 min from the creation of the records.
    Are there any new ETL capabilities included in SP7, I see some additional features included in SP7. Is some of the concepts discussed are still valid, because in SP7 we have star join concept.
    >>> Not exactly sure what your question here is. Your limits on BODS are the same as with any other target system - doesn't depend on HANA. The second the record(s) are committed to HANA, they are available. They may be in delta storage, but they're available. You just need to work out how often to schedule BODS - and if your jobs are taking 5 minutes to run, but you're scheduling executions every 2 minutes, you're going to run into problems...
    Thanks
    Magge

  • Help required in mapping Materials , Quotation and Sales order

    Hi,
    We need your help for the following requirement
    There is a vehicle model and colours for these models
    Company gets sales plan from dealers for vehicle model and later dealer confrms  the PO Qty with model and required colour.
    I need to map this in SAP.
    I am proposing to create a Quotation for the sales plan from dealers with vehicle model and when company recieves PO , they will create Sales order with reference to Quotation.
    The challenge i need to get all the colours ( finished materials ) for that model, currenttly all models and finished materials are managed in product heirarchy.
    When i create order with reference to quotation..........the dealer should able to get the list of colours ( materials ) in the system for that model ( i am planning to create material masters for these models as well)....Please help me how to map this in SAP SD
    i am just guessing if higher level item category concept can help .......or please suggest feasible solution
    When he creates sales order with reference to quotation, instead of model ( mateial ) from the qtn ..........dealer should get the list of end prodcuts ( colours ) for the model in the sales order so that he chooses the required colour and saves SO.
    Actually this is a portal driven project and SO creation is also integrated inthe portal for the dealers.
    Regards
    Venkata Rama Reddy

    Hi there,
    You said that the sales order process is done through the portal through the dealers?  We are currently looking at a similar requirement from a customer perspective to create an online store sort of feel integrating the S/D module.
    Can you share any ideas, things you did for portal integration?  Web Dyn Pro application, Visual Composer, gave portal access to the dealers to S/D transactions?
    Thanks for any input you can give!
    Jonathan

  • Selection of Middle tier components for creating data model

    Which business layer is prefered to create interactive data model: 1. ADF business components or 2. Enterprise JavaBeans using Java persistance API (JPA) or 3. Toplink 4. Portlets
    which minimizes writing low level codes and how much OOPS knowledge is required for creating above business layer binding data to viewcontroller layer?

    Portlets is view layer.
    About business services layer:
    1. ADF business components --> Heavy DB layer, Developer not very OOPS/Java oriented.
    2. Enterprise JavaBeans using Java persistance API (JPA) --> When you are looking for portabilily across App Servers/ Developers good at EJB3.0
    3. Toplink --> Depends on developers.
    So based on skill set and requirements you can choose any one. But if you are on a Oracle stack go for ADF BC.
    Venkat

  • Closing a Matlab model window from Labview

    Hi,
    I use Labview with the Simulation Interface Toolkit to control a simulation system from Labview. I need to change the Simulink model dynamically from Labview when the users choose a given option (I directly replace code snippets in the .mdl file). In order to do this, I need to close the model window in Matlab from Labview and reload it when the modification is done.
    Any idea?
    Thanks,
    Alex

    Greetings!
       Thanks for the request. Re-launching the model is required after
    every change. The connection manager retains the information and uses it in re-launch.
    Please refer to Page 16 of the simulation interface toolkit. You can submit a
    product suggestion in our product suggestion page. Also I am sure you would
    know the following -
    You could build the model into a DLL for stand-alone simulation. You need
    MATLAB, Simulink, and Real-Time Workshop to build a model DLL and configure the
    user interface using the SIT Connection Manager Dialog box. Once you create the
    model DLL and user interface, you need only LabVIEW to run the simulation.
    Thanks and hope this helps. Good luck
    Avi

Maybe you are looking for

  • Split valuation based on stor. loc.

    Dear Guru, Please guide me how may I configure split valuation based on stor. loc. My company in multi level marketing (MLM). We have stor at Brunei as well. Our business set different price if any stocks parked at Brunei stor. loc. Exp: Material A -

  • Finder not showing documents folder under user

    In finder, if I click user (my name) in left column, in the right column it no longer shows the document folder. If I click on documents in the left column, they display, and show the path as (my name)/documents (I think I have that turned on in pref

  • MBP's UJ-857D "Superdrive" Doesn't Burn Dual Layer?

    I'm quite confused about my Core 2 Duo Macbook Pro. In system profiler, it says CD-Write: -R, -RW DVD-Write: -R, -RW, +R, +R DL, +RW I insert a DVD+R DL (Verbatim made in Singapore, MKM 001) and when I try to burn something, disk utility starts up, f

  • How can I sign my .sis for testing purposes?

    Hi, I created a simple helloworld.sis application using the Adobe Mobile Packager. Now I want to install it to my Nokia S60 phone, but I get the following error message: "certificaatfout" (it's dutch, meaning certificate error ;-). I tried Open Signe

  • Call PLSQL function in Controller...

    Hi, Is there a way to call a PLSQL function in the controller? We have a function, which determines if we are in production or not. We then set a url based on this info.