Question about loading hierarchy

Hello expert,
       I have some question about hierarchy loading:
         (1) hierarchy DS are all for BW3.X? does it need DTP for this loading ?
         (2) in Process chain,  "DTP process" or "saving hierarchy process"  are all needed in PC ? or just one of them is needed?
Many Thanks,

You do not need DTP to load hierarchy.
In the PC, you need to add the info package and after that attribute change run to load the hierarchy fron hierarchy DS.
Regards,
Gaurav

Similar Messages

  • Newbie question about loading servlets on tomcat

    I have what is probably a very basic question about loading simple servlets on to tomcat to test its installation. I have followed instructions from numerous tutorials to the letter but still I can't get it to work.
    I have installed tomcat on win2k in c:\tomcat. I set up the jdk, environment vars (JAVA_HOME, CATALINA_HOME, TOMCAT_HOME) which all point at the correct dirs. I can compile a servlet without errors. I can also place a test jsp and html file into the root directory and they both work fine.
    However, now I am trying a test servlet and no matter what I do it gives me a 404. I have a servlet class file called "HelloServlet.class" which I placed into the %install_dir%\webapps\ROOT\WEB-INF\classes directory. I try to reference it using this url:
    http://localhost/servlet/HelloServlet
    Tomcat is configured to use port 80 and has been restarted after adding the servlet class file. Does anyone have a clue why this is not working for me?
    Many thanks
    Marc

    You have to add in the web.xml file that it is in the WEB-INF dir, the information about your servlet. An example:
    <web-app>
    <servlet>
    <servlet-name>HelloServlet</servlet-name>
    <servlet-class>HelloServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloServlet</servlet-name>
    <url-pattern>/HelloServlet</url-pattern>
    </servlet-mapping>
    </web-app>

  • Question about Load balancing with IISPROXY

              Hi,
              We are running WLS 5.1.0 SP5 on NT 4.0 SP6. We are not using clustering.
              We are able to round robin between multiple instances of the WLS successfully.
              Question: If one of the instances of WLS goes down, is there any way to configure
              the plugin to take it out of the loop automatically (without using clustering)?
              Thanks,
              Anil.
              

    This is not the syntax. Syntax is just this:
              MaxSkips=something.
              eg: MaxSkips=25
              The doc says:
              5:10:1000 for min:default:max
              By which we mean that default value is 10, max is 1000 and min is 5. I guess the
              docs are confusing about the syntax here. We will correct them.
              --Vinod.
              Anil Kommareddi wrote:
              > Vinod,
              > I could not find any documentation on the MaxSkips parameter except in the Service Pack
              > docs. The syntax is MaxSkips=min:default:max.
              >
              > how do the min and max parameters work?
              >
              > Vinod Mehra wrote:
              >
              > > Even if the servers in the WebLogicCluster list are non clustered you WILL be
              > > able to do load balancing. But the problem is if the servers go down the plugin
              > > will not remove them. But it not that bad. If an connection attempt fails the
              > > server is marked as bad and will be skipped for the next MaxSkips (default=10)
              > > cycles of load balancing. MaxSkips parameter is configurable for IISProxy
              > > (SP4 onwards, I think).
              > >
              > > -Vinod.
              > >
              > > Prasad Peddada wrote:
              > >
              > > > I believe there won't be any load balancing unless you use servers in a cluster. As
              > > > an alternative you can use hardware load balancers directly in a situation like this.
              > > >
              > > > Anil Kommareddi wrote:
              > > >
              > > > > Hi,
              > > > >
              > > > > We are running WLS 5.1.0 SP5 on NT 4.0 SP6. We are not using clustering.
              > > > > We are able to round robin between multiple instances of the WLS successfully.
              > > > >
              > > > > Question: If one of the instances of WLS goes down, is there any way to configure
              > > > > the plugin to take it out of the loop automatically (without using clustering)?
              > > > >
              > > > > Thanks,
              > > > > Anil.
              > > >
              > > > --
              > > > Cheers
              > > >
              > > > - Prasad
              

  • Questions about keyword hierarchy

    I'm in the process of designing and building a keyword hierarchy for LR3.5, and I'm at a loss to understand a couple of things.
    In the process of deciding how to build this, I've looked at a number of hierarchies people have posted to the web. One thing I've noted is that people sometimes have the same word in multiple hierarchies, and sometimes the same word as both a regular entry and as a synonym.  For example:
    Architecture
          Building
              Church
                      {Cathedral}
              Cathedral
              Skyscraper.....
    Cities
          Building
          Cathedral....
    So what happens if I use the keyword building?
    I *think* what will happen is that LR gives me a choice of selecting Building>Architecture OR Building>Cities.  Is that correct?   Is there a way to get Building, Cities AND Architecture? What happens if I select Cities?  Do I get ONLY cities, and none of the lower level keywords?
    And I'm at a total loss about synonyms. If, while applying keywords to an image, I select the synonym {Cathedral}, under Architecture, what keyword(s) get assigned to the image?  What if I select Church?  And what if I select Cathedral under Cities?
    Many thanks.

    Thanks web-weaver.
    I posted basically the same question in a couple of other places, and got conflicting answers. And the information I found on web searches tended to explain HOW to set up a hierarchy, but not how it really worked, and information on synonyms is especially limited, and often conflicting. So I did some tests.  So as to not use any words that were already in my keyword list, I built a simple hierarchy of words not currently in use:
    Colors       
        Blue   
            {Cyan}
            {Azure}
        Red   
            Pink
                            Salmon
            Rose
        Green   
            {BRG}
            {Emerald}
        Cyan  
        Orange
    Fruit
        Orange
        Apple
    (I actually had a couple of other trees, but this is enough to demonstrate how they actually work.)   
    And it turns out synonyms don't work quite like I expected them to, and are, honestly, so limited I question their value.
    Test1:  Tag a photo with the keyword Cyan. Only Cyan gets applied to the metadata, not any of the words associated with it (Blue, Colors, Azure). Searching, I can find the image by searching on Cyan, or Colors. But NOT by searching on Blue.
    Test2: Tag a photo with the keyword Blue. Only Blue gets applied to the metadata, not Cyan, or Azure. When searching, I can find it by searching on Blue, or any of it's synonyms (Cyan, Azure), or Colors.
    (I had expected synonyms to work the other way, I think. So that if I searched on Blue I'd get all images tagged with Blue, but also those tagged with Azure and Cyan. )
    Test3:  Tag one photo with Cyan, and another with Blue. Searching with Cyan gets me both images, as does searching with Colors. Searching on Blue gets me only the image tagged with Blue.
    Test 4: Tag a photo with the word Colors (and nothing else). I find it by searching ONLY on colors, not Blue, Cyan, or Azure.
    Test 5:  Tag a photo with the word Red (and nothing else). I find it by searching on Red, or Colors, but not Pink or Rose.
    Test 6:  Tag a photo with the word Pink (and nothing else). I find it by searching on Pink, Red or Colors, but not Salmon.
    Test 7: Tag one photo with Orange->Color, and a second image with Orange->Fruit (this nomenclature seems backwards to me, btw.  It's really Fruit-Orange and Color-Orange, but whatever...) Searching on Orange finds both images. Searching on Color finds only one, searching on Fruit finds only the other.
    Synonyms affect only search, and not tagging (assignment). Searching on a term that is a synonym will find images tagged with the main word. (e.g., search on Azure and you'll find Blue, but not Colors). 
    On another site someone replied that when you search you'll find "any image which bears that keyword or any keyword BELOW it in the hierarchy." That's backwards, at least as I understand the word "above.". You'll actually find images using the keyword, it's alias, or any word ABOVE it in the hierarchy. So if an image is tagged with Red, you can find it by searching on Red or Colors, but not Pink. If the image is tagged with pink, you can find it with Colors, Red or Pink, but not Salmon.
    The worst limitation of using synonyms is that when you're tagging an image, LR3 isn't smart enough to know the synonyms exist. So if I tag an image with the word Azure, LR3 doesn't substitute Blue, or use the synonym where it already exists in the hierarchy.  Instead, creates a new, top level entry named Azure, not tied in any way to the alias or the "Colors" tree. 
    It seems like it would be useful to be able to enter Blue as a search term and find any images tagged with Azure and Cyan. Or enter Red as a search term and find Pink and Rose, too. The way it's implemented now forces you to enter the term you're most likely to use (Blue, for example) at the bottom of the hierarchy, and the least used words above. Or to use synonyms, and hope you never get confused an enter a synonym as a keyword instead of the word it refers to.
    It seems to me it's more useful to just use Azure as another keyword beneath (or maybe above) Blue in the hierarchy. At least that way if I tag an image with Azure, I'm not creating a new entry in the Keyword list. I'm not sure I see much value in synonyms as they're currently implemented, but if someone has some examples of how synonyms benefit them I'd be delighted to see them.
    Hopefully this information will be of use to someone.

  • Question about loading and using Images.

    I know how to load an image and to draw it onto a canvas etc etc. However my question is to do with the efficiency of loading multiple images (possibly the same image!) and using them together. I have multiple objects, all instances of the same class, which all draw themselves onto a screen in different positions. However they all use the same 3 images (depending on an internal state).
    So if I create 5 of these objects and each object calls to load the same image using something along the lines of:
    url = this.getClass().getResource("MyImage.png");
    normalImage = Toolkit.getDefaultToolkit().getImage(url);Does this mean that in the memory there are 5 exactly the same copies of this image? Or does java do something clever and use one image that they would all reference? I suspect I will have 5 in memory but I wanted to ask about this before going and making an imageManager class where I load all the images and just use getMethods in that when drawing. I will not be preforming any transforms or anything on any of the images so they can all literally be the same image but simply drawn in multiple positions on the one canvas.
    (note: I am using active rendering to draw these images myself and then blit it to the screen ...).

    Use ImageIO rather than Toolkit--with Toolkit you need to use a MediaTracker to ensure you have your image loaded before you try to use it.
    If you load an image and then do this:
    MyImage1 = MyImage;
    MyImage2 = MyImage;
    MyImage3 = MyImage;
    There are 4 references to the Image in MyImage. If you don't specifically use a method that gives you a new Image, usually, you are getting a refrence to an image already loaded in memory.

  • Question about Load Balance SFTP service by using CSS1150X

    Does anyone come across of load balancing SFTP service by using CSS1150X? Typically by configuring CSS1150X to load balance FTP service, the configuration will as follow:
    content ftp_rule
    vip address 192.168.3.6
    protocol tcp
    port 21
    application ftp-control
    add service serv1
    add service serv2
    add service serv3
    active
    group ftp_group
    vip address 192.168.3.6
    add service serv1
    add service serv2
    add service serv3
    active
    However, for my personal understanding and knowledge, I will configure my CSS1150X as follow to load balance SFTP service:
    content sftp_rule
    vip address 192.168.3.6
    protocol tcp
    port 22 //Change 21 to 22
    application ftp-control
    add service serv1
    add service serv2
    add service serv3
    active
    group sftp_group
    vip address 192.168.3.6
    add service serv1
    add service serv2
    add service serv3
    active
    My question is, "application ftp-control" in content "ftp_rule" is still applicable to SFTP or not?

    I believe application ftp-control would not be used for sftp.
    This might cause the session to get dropped when there is no data channel created and cause issues with long connections.
    Hope it helps!!

  • Question about load external SWF

    Hi people!
    I've been trying to load an external SWF into my app. I need
    to load a Fusion Chart's Gantt Chart, but I didn't achieve.
    Fusion Charts are embed using the attached JavaScript code.
    How can I load this SWF into my app? Should I use ExternalInterface
    to do it?

    You would need to use SWFLoader, Image or Loader to load your
    swf into Flex. To interact with it, you would most likely need to
    use SWFLoader/Loader so you could make calls into the SWF. This is
    somewhat of an advanced topic and a common question, so you should
    be able to find more complete answers if you search the forums for
    these.

  • Question about  Load Average in the AWR report

    Hi,
    I've some database in 11.2 RAC on AIX.
    I was analyzing the root causes of eviction.
    Looking AWR Report before the reboot I see:
    DB1
    Host CPU (CPUs:    6 Cores:    3 Sockets: )
    ~~~~~~~~         Load Average
                   Begin       End     %User   %System      %WIO     %Idle
                    4.18     12.33     60.9      12.6       1.6      26.5
    Instance CPU
    ~~~~~~~~~~~~
                  % of total CPU for Instance:      27.4
                  % of busy  CPU for Instance:      37.3
    %DB time waiting for CPU - Resource Mgr:      10.6
    DB2
    Host CPU (CPUs:    6 Cores:    3 Sockets: )
    ~~~~~~~~         Load Average
                   Begin       End     %User   %System      %WIO     %Idle
                    3.77    13.93     60.7      12.5       1.6      26.7
    Instance CPU
    ~~~~~~~~~~~~
                  % of total CPU for Instance:       6.9
                  % of busy  CPU for Instance:       9.5
      %DB time waiting for CPU - Resource Mgr:       0.0
    Do you think these value ar high?
    This is vmstats at the time of reboot:
    DATA
    RUN
    BCK
    AVM
    FRE
    PRE
    PPI
    PPO
    PFR
    PSR
    PCY
    FIN
    FSY
    FCS
    CUS
    CSY
    CID
    CWA
    07/21/2013
      00:08:17
    31
    0
    7.400.345
    579.923
    0
    81
    0
    0
    0
    0
    3.292
    187.010
    19.560
    84
    16
    0
    0
    07/21/2013
      00:08:17
    17
    1
    7.390.187
    589.884
    0
    176
    0
    0
    0
    0
    3.681
    169.994
    21.482
    81
    19
    0
    0
    07/21/2013
      00:08:17
    27
    1
    7.402.121
    577.816
    0
    115
    0
    0
    0
    0
    3.150
    157.210
    18.503
    84
    16
    0
    0
    07/21/2013
      00:08:48
    19
    1
    7.422.966
    564.179
    0
    211
    0
    0
    0
    0
    2.396
    152.667
    19.368
    84
    16
    0
    0
    07/21/2013
      00:08:48
    19
    1
    7.427.693
    559.268
    0
    162
    0
    0
    0
    0
    2.990
    154.733
    19.843
    85
    15
    0
    0
    07/21/2013
      00:08:48
    23
    1
    7.441.204
    545.530
    0
    204
    0
    0
    0
    0
    2.137
    171.501
    18.151
    84
    16
    0
    0
    This is mpstat:
    DATA
    CPU
    MIN
    MAJ
    MPC
    INT
    CS
    ICS
    RQ
    MIG
    LPA
    SYSC
    US
    SY
    WT
    ID
    PC
    07/21/2013
      00:08:48
    0
    12896
    44
    0
    1279
    3030
    1362
    2
    367
    100
    27313
    86
    14
    0
    0
    0.49
    07/21/2013
      00:08:48
    1
    11055
    93
    0
    1123
    3137
    1315
    1
    222
    100
    31860
    85
    15
    0
    0
    0.51
    07/21/2013
      00:08:48
    2
    5938
    51
    0
    1465
    3840
    1294
    2
    532
    100
    29992
    85
    15
    0
    0
    0.49
    07/21/2013
      00:08:48
    3
    6266
    57
    0
    1247
    3177
    1046
    2
    511
    100
    22793
    85
    15
    0
    0
    0.51
    07/21/2013
      00:08:48
    4
    2661
    18
    0
    1729
    4087
    1707
    4
    264
    100
    24647
    85
    15
    0
    0
    0.49
    07/21/2013
      00:08:48
    5
    4211
    10
    0
    1395
    2709
    1101
    2
    209
    100
    21019
    86
    14
    0
    0
    0.51
    07/21/2013
      00:08:49
    0
    9372
    27
    0
    1150
    2583
    1219
    0
    245
    100
    47745
    82
    18
    0
    0
    0.47
    07/21/2013
      00:08:49
    1
    11327
    13
    0
    726
    1803
    794
    1
    130
    100
    25239
    87
    13
    0
    0
    0.52
    07/21/2013
      00:08:49
    2
    8970
    118
    0
    1459
    4396
    1517
    0
    602
    100
    24833
    81
    19
    0
    0
    0.49
    07/21/2013
      00:08:49
    3
    7328
    267
    0
    1329
    4136
    1273
    2
    586
    100
    25385
    81
    19
    0
    0
    0.51
    07/21/2013
      00:08:49
    4
    8793
    19
    0
    1133
    2583
    1036
    1
    235
    100
    24327
    86
    14
    0
    0
    0.50
    07/21/2013
      00:08:49
    5
    8239
    12
    0
    1309
    2846
    1165
    1
    277
    100
    18513
    86
    14
    0
    0
    0.50
    Thank you

    Thank you Jonathan,
    i'm looking ASH, 15 minutes before the crash.
    I've 13% of buffer busy waits and 13% of cpu quantum
                                                                   Avg Active
    Event                               Event Class        % Event   Sessions
    CPU + Wait for CPU                  CPU                  59.09       0.15
    buffer busy waits                   Concurrency          13.64       0.04
    resmgr:cpu quantum                  Scheduler            13.64       0.04
    The buffer busy waits was caused by an update of a table.
    There are ETL jobs that runs every nigth.
    Looking IO stats I notice a change in the use of the swap:
    before the crash:
    hdisk66        xfer:  %tm_act      bps      tps      bread      bwrtn   
                             1.0      8.2K     2.0        8.2K       0.0
                   read:      rps  avgserv  minserv  maxserv   timeouts      fails
                             2.0      6.7      3.8      9.6           0          0
                  write:      wps  avgserv  minserv  maxserv   timeouts      fails
                             0.0      0.0      0.0      0.0           0          0
                  queue:  avgtime  mintime  maxtime  avgwqsz    avgsqsz     sqfull
                             0.0      0.0      0.0      0.0        0.0         0.0
    near the crash:
    hdisk66        xfer:  %tm_act      bps      tps      bread      bwrtn   
                            71.0    241.7K    59.0      241.7K       0.0
                   read:      rps  avgserv  minserv  maxserv   timeouts      fails
                            59.0     12.1      0.2    183.5           0          0
                  write:      wps  avgserv  minserv  maxserv   timeouts      fails
                             0.0      0.0      0.0      0.0           0          0
                  queue:  avgtime  mintime  maxtime  avgwqsz    avgsqsz     sqfull
                             0.0      0.0      0.0      0.0        0.0         0.0

  • Question about loading Premiere CS2

    I have Premiere Pro 1.5 on a dying computer with XP operating system.  I couldn't get 1.5 reauthorized so Adobe gave me a CS2 download with serial number..  I tried to load CS2 on the newer computer with Microsoft Vista as the operating system.  At first it hung on "Error 1311 - Source file not found.  Data1.cab."  I moved Data1.cab to the directory and then I was able to get past that error.  CS2 continued installation until it got to the help files, which didn't load.  The rest of the CS2 seemed to load OK.
    I then tried to open CS2.  It bombs after 3 seconds of the opening page.  Any ideas?

    I don't have a CD of CS2.  I downloaded a second copy of CS2 from Adobe and had the same result.  However I was repairing the origional CS2 with the second copy.  I will uninstall CS2 and try to install the newer copy of CS2 later. 
    I am wondering... Could it be that CS2  doesn't like Vista? 

  • Question about load Microsoft JDBC driver for Sql server 2000

    Hello,
    I have some problem while trying load the sqlserver2000 jdbc driver
    My program is a third party application and it works with the other type 4 JDBC driver well. So I tried to use Microsoft SQL server 2000 JDBC driver instead.
    I installed JDBC driver and set up the classpath.
    My error message is:
    "Driver class 'com.microsoft.jdbc.sqlserver.SQLServerDriver' could not be loaded"
    Is above message means that my classpath setup correctly but the application could not load the class or the application could not find the jar file which containes the driver class?
    By the way, the third party application I was using to load this JDBC driver does not certified to use microsoft JDBC driver. But I don't think it matter?
    Thanks for your help
    Hui Lu

    Hello,
    I have some problem while trying load the
    sqlserver2000 jdbc driver
    My program is a third party application and it works
    with the other type 4 JDBC driver well. So I tried to
    use Microsoft SQL server 2000 JDBC driver instead.
    I installed JDBC driver and set up the classpath.
    My error message is:
    "Driver class
    'com.microsoft.jdbc.sqlserver.SQLServerDriver' could
    not be loaded"
    That is an unusual message. Presumably you did not see "NoClassDefFoundError". If you see that it means the class could not be found.
    Is above message means that my classpath setup
    correctly but the application could not load the class
    or the application could not find the jar file which
    containes the driver class?
    By the way, the third party application I was using to
    load this JDBC driver does not certified to use
    microsoft JDBC driver. But I don't think it matter?
    It could. Perhaps the app expects a certain functional level and the driver doesn't support that. And so it bails with the message that you see.
    Or it could mean that you have do something special because it has its own class path, and the driver is not in that.

  • Question about load balancing between Portal and ABAP

    Hi,
    I have the problem whit load balancing between Portal and ECC (ERC) ABAP
    Exist two system:
    1) ECC (ERP) ABAP = Backend     Module = HR
    2) EP (JAVA) = Frontend
    The users (9000 users) logon in the EP and run query (data personal) in the ECC.  The problem to all user connect in Central Instance and not in the Dialog Instance.
    How can balancing the conecction HTTP (EP) to ECC (ABAP)??
    I need balancing in the ECC to Dialog Instance

    Jco -> right. Another possibility is that you use iviews that point to the backend in this case you will need to use a load balanced entry for the backend system in the [system landscape|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/8c1e438d7017fce10000000a42189c/frameset.htm] -> SAP_R3_LoadBalancing
    If you have ESS deployed on your portal, you will most probably need to do both.
    Cheers Michael

  • Question about Load Balancing Wireless connections using WLC- F5- ISE

    Hi all,
    Can anyone give me some orientation how the radius auth process/handshake between the WLC and ISE changes once the F5 is installed in the middle in order to perform load balancing?
    We can do some kind of load balancing by configuring different radius servers on each WLC for which, I must configure the same shared secret in the WLC and ISE so the radius request/accept could be processed.
    Now that we have the F5 in the middle, do I need to create/configure the same shared secret in the F5 so radius transactions can be processed by this device?. Based on the following link, I must configure the F5 in the ISE like another NAD device (similar to the WLC) but I do not know if this additional configuration in the ISE includes the Auth parameter to be added in the ISE NAD (F5) configuration.
    How to properly use a load balancer in Cisco's Identity Services Engine
    http://www.networkworld.com/community/blog/load-balancing-cisco-identity-services-engine
    Our sheme is shown next,

    When you covert the pair into SSO, all the APs will go to the ACTIVE unit.  No unit will "live" in the standby unit because this unit will "share" the AP-support license between the two.
    This is the first step you need to get sorted.  Send an email to [email protected] and give them the exact details of what you want to do (i. e.  AP SSO) and then provide the serial number of your nominated active WLC and the serial number of your nominated standby WLC.

  • Simple question about loading routine

    Hello Gurus,
    I will use following routine:
    my source includes fields "CURRENCY" , "AMOUNT".
    following routine is for target field "0AMOUNT" in DSO.
    but when I check this routine, get "The data object "SOURCE_FIELDS" does not have a component called "CURRENCY",  why ? how to correct it ?
    IF SOURCE_FIELDS-CURRENCY IS INITIAL.
    RESULT = 0.
    CURRENCY = 'EUR'.
    ELSE.
    CALL FUNCTION
    'CONVERT_TO_LOCAL_CURRENCY'
    EXPORTING
    DATE = sy-date
    FOREIGN_AMOUNT =
    SOURCE_FIELDS-amount
    FOREIGN_CURRENCY =
    SOURCE_FIELDS-currency
    LOCAL_CURRENCY = 'EUR'
    TYPE_OF_RATE = 'M'
    IMPORTING
    LOCAL_AMOUNT = RESULT
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc = 0.
    CURRENCY = 'EUR'.
    ELSE.
    RESULT = SOURCE_FIELDS-amount.
    CURRENCY = SOURCE_FIELDS-currency.
    ENDIF.
    Many thanks,
    Frank Zhang

    Hi Frank,
    (1) for 'CONVERT_TO_LOCAL_CURRENCY' function, importing and exporting are different from function definition. but if I reverse them, it doen not work, why?
    I don't know the reason if this is what is happening
    (2) "LOCAL_AMOUNT = RESULT", means put result of function to LOCAL_AMOUNT, or something else?
    I think, Local amount ie amount after conversion to EUR will be put in result.
    (3) if I need another statement in the routine to " RESULT = ? ", please complete this question mark for me ?  No you would not need another statement.
    (4) can I set value for another target object such as 0CURRENCY in this routine for 0AMOUNT.
    I think, you could but you may need to use return table for such a case.
    Regards,
    Sunmit.

  • Question about Objects Hierarchy

    Hi Guys,
    Question :
    I am writing an applet let's say Zoo extends JApplet
    let's say I have a class Bear that extends Mammal. and Mammal that extends Animal.
    Now, I have an ArrayList<animal> cage = new ...
    and along the way I am adding Bears to my cage : cage.add(new Bear)...
    my question is: how would I write a search loop that returns the Bears from my cage ?
    and : how would I write a loop that returns the mammals:
    I have tried the following :
    for (int k = 0 ; k< cage.size() ; k++) if (cage.get(k) == Mammal) return cage.get(k);
    didn't work
    also tried :
    for (int k = 0 ; k< cage.size() ; k++) if (cage.get(k).getClass == Mammal) return cage.get(k);
    and didn't work
    any ideas ?
    Thanks a lot ... ( and my apologies if my example offends any animal lovers, I am one my self :)

    You want to return them all, or just the first one you come to?
    To make it simple let's suppose you want to return just the first one. And since you're using Java 5 techniques like Generics, let's clean up your code to use the Java 5 enhanced for loop as well:
    for (animal one: cage) {
      if (one instanceof Mammal) { // This was your question, I think
        return one;
    }If you have to return them all, then add them to a new List as you find them and return that when you're done going through the cage.

  • Question about loading time determination in OVLZ

    Hello,
    In t-code OVLZ, field "Determine load. time", the F1 explanation is bellow:
    -No loading time determination
    No loading time is determined
    -A Route-dependent
    A route-dependent loading time is determined.
    Influencing factors are the shipping point, the route, and the loading group
    -B Route-independent
    A route-independent loading time is determined.
      Influencing factors are the shipping point, the route, and the loading group of the material.
    can somebody tell me what is the difference between A B? It seems to be the same according to the 2nd line explanation of B.
    Thanks,
    Gunadi

    hi,
    in OVLZ-shipping point- working hours
    determine load time: the option A -stands for route dependent
    means loading times is determined with combination of shipping point+ route+ loading group
    option B- stands for route Independent
    Means  loading time is determined with comnination of shipping+ loading group
    the loading time will have effect on delivery sch ie., taken into account for forward scheduling else backward scheduling
    hope this help u
    regards,
    Arun prasad

Maybe you are looking for