Attribute Importance - Measure Influence of single classes

Hello,
I've been solving an Attribute Importance problem recently and identified the most influential factors. Now i want to find out which particular classes of this attribute have the strongest relation to the target.
If you take the affinity card problem from the Oracle Tutorials, I identified 'education' as the most influential attribute for example. But I still don't know which particular education has the strongest bond to the target, e.g. Master, Doctor, HS-Grad, etc.
I've already tried to create a Classification Build based on that single attribute, but when applying this model, the probability of the particular classes are always the same (or slightly differ on the third digit after the decimal point). Since the count of the particular classes ranges from 2 to 1655, I assume that I am doing something wrong and this is no coincidence (I already verified this with another attribute and the same result)
Is there any other way to find out the influence of the particular (categorical) classes used for the Attribute Importance?
Thanks in advance,
Dominik
Edited by: 994832 on Mar 19, 2013 9:38 AM

Hi Dominik,
   The particular integration of AI in the ODMr Column Filter node shows just column ranking. If you want to see more details on what models would consider important in ranking a column and its values, then build a GLM, SVM etc. model. You can look the coefficients of the model and see the level of significance given to categorical values of a column.
Thanks, Mark

Similar Messages

  • How can I make server use single class loader for several applications

    I have several web/ejb applications. These applications use some common libraries and should share instances of classes from those libraries.
    But applications are being deployed independently thus packaging all them to EAR is not acceptable.
    I suppose the problem is that each application uses separate class loader.
    How can I make AS use single class loader for a set of applications?
    Different applications depend on different libraries so I need a way that will not share library for all applications on the domain but only for some exact applications.
    When I placed common jar to *%domain%/lib* - all works. But that jar is shared between all applications on the domain.
    When I tried to place common jar to *%domain%/lib/applibs* and specified --libraries* attribute on deploying I got exception
    java.lang.ClassCastException: a.FirstDao cannot be cast to a.FirstDaoHere http://download.oracle.com/docs/cd/E19879-01/820-4336/6nfqd2b1t/index.html I read:
    If multiple applications or modules refer to the same libraries, classes in those libraries are automatically shared.
    This can reduce the memory footprint and allow sharing of static information.Does it mean that classes should be able to be casted ?

    You didn't specify which version of the application server you are using, but the config is similar as long as you know what to look for. Basically, you need to change the classloader delegation. Here's how it is done in 8.2
    http://download.oracle.com/docs/cd/E19830-01/819-4721/beagb/index.html

  • Is the whole jar loaded for a single class?

    Hi,
    Hopefully this is an easy yes/no question.
    If my application makes reference to only a single class in a jar that has many other classes, does the entire jar (all the other classes) get loaded into memory?
    If so, then it's worth it to break the jars up into only those classes I need (they're third party jars). Otherwise, I'll have to look for some other solution.
    TIA.
    Mike

    No you don't.Yes he does - he was big enough to admit it - can't you?
    import xyz.* doesn't "load everything in memory" as
    schapel stated. You better read chapter 1 of your book
    again (and again until it sinks in) before answering
    advanced forum's questions.Perhaps you should reread schapel's post before making hot-headed replies to the advanced forum's questions. Besides, you must not read these forums too much because this topic comes up a lot.

  • Issue Importing measures against dimensions loaded via SSIS

    Hi,
    We are new to BPC and currently working in a test environment.  We are having issues with importing measure data against dimensions that we are attempting to automate via SSIS.  I will apologize in advance for the long post, but want to give as many details as possible.
    Here is the scenario:
    We installed BPC v. 5.1 SP1 on SQL Server 2005, but have since installed SP2 and SP3.
    We created our own app set as a copy of AppShell.  We added some user defined dimensions and created a custom application as a copy of Finance.
    For initial testing, we loaded members into all dimensions via the Admin console and the Excel member sheets.  We also used the Import function in data manager to upload measure data into our custom application.
    We are now trying to automate the population of members for some of our dimensions (Entity and 4 user defined dimensions).  
    All of our data is mastered in SAP (we're on ERP 2005/ECC 6.0) with replications to our BI system (7.0).  We are using custom ABAP programs to create flat files for 3 of the dimensions.  For 2 dimensions, we are extracting from BI via Open hub.
    We have created SSIS packages to load data from the files into the relevant mbr tables.  We're taking things one step at a time and currently are processing the dimensions manually via the Admin Console - making sure that "Process members from member sheet" is unchecked.
    In our first attempts at loading dimension data via the SSIS package, we tried loading only a subset of the member data (forgetting about the measure data that had previously been loaded).  Because we were missing members in the load files for which measure data existed, we received data integrity errors upon processing the dimensions.  Once we loaded the full member data, the dimensions processed successfully.
    Our issue comes now when we're again importing measure data.  Before starting to "automate" our dimensions, I had successfully loaded several months worth of measures.  I had also tested clearing out one month of data.  Now, I am trying to reload that month of measure data.  I am using the same file as I had used previously, but the Import function is now rejecting all records.  The dimension members it is rejecting are valid dimension members, but they are all from dimensions we are attempting to automate.
    Has anyone encountered an issue like this before?  Even if you haven't, do you have any thoughts on what our issue might be?  Any help would be greatly appreciated!
    Thanks!
    Shannon

    There actually could be a couple different things.  The processing of the dimension could have encountered an error and therefore did not update the sql dim table association with the dimension.  You should check to see if the dimDIMENSION sql table actual have any members in it and if the members you are trying to load to are there.  If there were any errors in processing the mbr table the dim table will be empty.
    Also the automated update could have added extra character to the member name such as a trailing space which would actually make the dimension member name different than what is in the membersheet.
    In your automated dimension update, it would be a good idea to update the membersheet as well as the mbr sql table.  Then you can process the dimension from the sheet in the admin tool to troubleshoot any errors in your memberset. 
    - Sara

  • How to access an attribute(this is referencing to another class) in a class

    Dear Gurus,
    I have to read an attribute of a class and that attributes type another class.
    I have intantiated the class and my question is how to read the attribute. I know I can not dirrectly read the attribute since this is another class. I think I have to first reference the attribute right? Please advise me.
    My code looks like below:
    data: lo_fpm                                 type ref to if_fpm.
    data: lo_msg_mgr                        type ref to if_fpm_message_manager.
    data: lo_component_manager    type ref to cl_fpm_component_manager.
    lo_fpm = cl_fpm_factory=>get_instance( ).    " cl_fpm_factory is a class which has a static method get_instance
    lo_msg_mgr = lo_fpm->mo_message_manager.
    lo_component_manager = lo_fpm->mo_component_manager.
    The above statement is giving syntax error. I do not know why.
    The basic difference b/n the two methods is if_fpm~mo_message_manager    type ref to if_fpm_message_manager    and
    mo_component_manager     type ref to cl_fpm_component_manager.
    Any help would be appreciated.
    Thanks,
    GSM

    Hello
    I cannot test the following coding because I do not get the singleton instance yet it should work:
    *& Report  ZUS_SDN_CL_FPM_FACTORY
    *& Thread: How to access an attribute(this is referencing to another class) in a class
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1398429"></a>
    REPORT  zus_sdn_cl_fpm_factory.
    DATA: go_fpm TYPE REF TO cl_fpm.  " class implements if_fpm.
    DATA: go_msg_mgr TYPE REF TO if_fpm_message_manager.
    DATA: go_component_manager TYPE REF TO cl_fpm_component_manager.
    START-OF-SELECTION.
      BREAK-POINT.
      go_fpm ?= cl_fpm_factory=>get_instance( ). " cl_fpm_factory is a class which has a static method get_instance
      CHECK ( go_fpm IS BOUND ).
      go_msg_mgr           = go_fpm->mo_message_manager.
      go_component_manager = go_fpm->mo_component_manager.
    END-OF-SELECTION.
    Regards
      Uwe

  • Enabling log4j for  a single class or package

    hi all
    If i use log4j for logging in my classes,
    is there a way for enabling it just for a single class or a packages?
    Considers that i use log4j.properties for configure it
    Regards
    Giovanni

    Two things. Firstly, it's better to use     private static final Object classLock = new Object();because that saves you worrying about whether any other code synchronises on it. Secondly, if you do decide to go for the delegation route then java.lang.reflect.Proxy may be a good way forward.

  • Hibernate: Mapping a 1:1 relation to a single class

    Hy,
    got the following situation:
    Two Database-Tables:
    1. loc_entry_history:
    - "ehid": primary key, auto_increment, unique
    - "time": Timestamp
    - "views": int
    2. loc_entry_history_info:
    - "ehid": foreign key on "loc_entry_history.ehid", primary key, unique
    - "title": String
    - "plz": String
    As you can see, this results in a 1:1 mapping between loc_entry_history and loc_entry_history_info. I now want to map these Data into ONE single class using Hibernate. I used the following Config:
    <class name="de.dbruhn.framework.test.beans.History" table="loc_entry_history">
          <id name="id" column="ehid">
             <generator class="native" />
          </id>
          <property name="time" column="ehtime" type="timestamp" />
          <property name="ip" column="ehip" />
          <property name="views" column="ehviews" />
       </class>
       <class name="de.dbruhn.framework.test.beans.Info" table="loc_entry_info">
          <id name="id" column="ehid">
               <generator class="foreign">
                   <param name="property">history</param>
               </generator>
           </id>
           <one-to-one name="history" constrained="true"/>
          <property name="title" column="eititle" />
          <property name="plz" column="eiplz" />
       </class> but this is not what I want:
    I want the Data to be stored in a single Class, so one Class with the Name "history" where also the "title" and "plz" are stored.
    How can I do this? I tried changing the "class name="[...].Info" into "class name="[...].History" but then the property "history" is missing. But I cant add the property history to the class, it would be a self-reference.
    Thanks for any help
    TO

    Thanks for your reply.
    Because the data in loc_entry_info isn't always needed, so I put it into a second table to safe the table space!
    Grettings
    TO

  • Multiple Units of Measurements for a single item

    Hi all,
    How do I maintain multiple units of measurements for a single Item/  I have a scenario where purchase orders are being made for sand in Metric Tons, Tons, Kgs and Cubit Feets.  Each measurement is being used at each construction site of the company but the item is single sand.   One more problem is here with the material reconciliation of stock since it is maintained in different units of measurement and conversion from unit to other is problematic.
    Thanks
    YSvee Reddy

    Hi YSvee Reddy ,
    Julie is correct in saying that this feature will be available in version 8.8, currently in Ramp-up.
    Please see the [8.8 landing page |https://websmp203.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000705857&_SCENARIO=01100035870000000183&_ADDINC=011000358700001192682007E&]for a link to the 'What's new' document.
    You can contact your LPE to discuss participation in Ramp-up.
    All the best,
    Kerstin

  • Help with Error message in Flex 2.0 while trying to import from a library of classes

    The following code is in a folder named saras. Inside saras
    is a file named saras.as and a library of classes named
    ASCB3Library. I downloaded this library after I purchased a book
    named ActionScript 3.0 CookBook. I have tried every way I know for
    a full week to instantiate the pen class from the library. I have
    e-mail the book publishers and I understand that the author has
    changed jobs --- I definately am not trying to make any bad
    references --- I am simply asking for help --- there must be
    someone out there with my same problem --- I am nottoo sharp but I
    am not so obtuse as I seem to be making myself.
    package {
    import flash.display.Sprite;
    import ASCB#Library.classes.ascb.drawing.Pen;
    //import ascb.drawing.Pen;
    public class saras extends Sprite
    public function saras() {
    var pen:Pen = new Pen(graphics);
    pen.drawArc(100,100,50,80,20, true);
    graphics.lineStyle(1,0,1);
    graphics.lineTo(300,200);

    As far as I know, iWork (without a s) was never depicted as opening _"all Excel documents"_ but as _"opening Exel documents"_ which means that it open _many of them but not all_ .
    Is it surprising that it is unable to open documents created with an Excel version introduced after the Numbers creation ?
    To get it able to open them, you will have to wait for the next major version.
    Yvan KOENIG (from FRANCE lundi 20 octobre 2008 17:16:32)

  • Please clarify: can you add attributes to the Out of Box classes?

    In this thread,
    http://technet.oracle.com:89/ubb/Forum36/HTML/000116.html
    It said, (March 21, 2001)
    "You are not allowed to add attributes to the Out of Box classes that ship with IFS. You have to subclass the out-of-box attributes and define your custom attributes as extended attributes of your subclass. The add button is only active when the class you are viewing is not one of the out of box classes"
    In the 1.9 documentation on page 179 I see
    "Oracle 9iFS also allows you to add or modify attributes on content types after they
    have been created.
    Or, you may need to add custom attributes to the Document and Folder content types that come with Oracle 9iFS. You can add
    attributes to a content type at any time"
    Is this a new feature of 1.9?
    Would a good workaround be to create a PropertyBundle for each Document and Folder? Would there be a big performance hit?
    I dont want to create a new folder type and a new document type since I'm not sure how the rest of the system will use them.
    Someone please respond, I've been trying to figure this out all day.
    Thanks in advance
    Mitch
    null

    In the isshell in ifs 1.1.9, I do a
    ls -attrall
    and I see "null" next to the property bundle. I assume this to mean that no property bundle has been created for this folder instance.
    As for categories, 1.2 doc states.. "A folder, ... can be associated with zero,one or more categorys" I will have to create a new category for each file and or folder.
    I really want to have additional attributes for each file.
    I dont want to subclass folder because, if a user does a drag and drop in NTFS a folder will be created and not a MyFolder.
    I have a kludge for now; I put a comma delimited list of items in description field.
    Apparently this limitiation, is changed in 1.2. See above.
    Thanks for your help. IFS is a really great product. Cant wait for 1.2 on NT.
    Mitch
    null

  • Code 1013: The private attribute may be used only on class property definitions.

    Ok guys, being new to the Action scripting game, I am already finding myself with Errors.  I have researched this for the last few days, and each time I come up with an answered solution, the solution is always the curly bracket.  But for the life of me, I can not find a missing bracket!  Could someone look at this for me and guide me in the right direction before I lose the rest of my hair. :-)
    package
      import flash.display.Sprite;
      import flash.events.MouseEvent;
      public class Main extends Sprite
      var xPos:int; //Stores the initial x position
      var yPos:int; //Stores the initial y position
    public function Main():void
      addListeners(alpine,armadillo,battery,blizzard,cactus,carnivoreplant,cloud,coolfire,coral,crystal,dandelion,darkfire); //A function to add the listeners to the clips in the parameters
    private function getPosition(target:Object):void
      xPos = target.x;
      yPos = target.y;
    private function dragObject(e:MouseEvent):void
      getPosition(e.target);
      e.target.startDrag(true);
    private function stopDragObject(e:MouseEvent):void
      if (e.target.hitTestObject(getChildByName(e.target.name + "Target"))) //Checks the correct drop target
      e.target.x = getChildByName(e.target.name + "Target").x; //If its correct, place the clip in the same position as the target
      e.target.y = getChildByName(e.target.name + "Target").y;
      else
      e.target.x = xPos; //If not, return the clip to its original position
      e.target.y = yPos;
      e.target.stopDrag(); //Stop drag
    private function addListeners(... objects):void
      for (var i:int = 0; i < objects.length; i++)
      objects[i].addEventListener(MouseEvent.MOUSE_DOWN, dragObject);
      objects[i].addEventListener(MouseEvent.MOUSE_UP, stopDragObject);

    Thank you for the reply Ned.
    I took your advice and moved the Closing Bracket with this result in the coding change.
    package
              import flash.display.Sprite;
              import flash.events.MouseEvent;
              public class Main extends Sprite
                        var xPos:int; //Stores the initial x position
                        var yPos:int; //Stores the initial y position
    public function Main():void
                        addListeners(alpine,armadillo,battery,blizzard,cactus,carnivoreplant,cloud,coolfire,coral,crystal,dandelion,darkfire); //A function to add the listeners to the clips in the parameters
    private function getPosition(target:Object):void
                        xPos = target.x;
                        yPos = target.y;
    private function dragObject(e:MouseEvent):void
                        getPosition(e.target);
                        e.target.startDrag(true);
    private function stopDragObject(e:MouseEvent):void
                        if (e.target.hitTestObject(getChildByName(e.target.name + "Target"))) //Checks the correct drop target
                                            e.target.x = getChildByName(e.target.name + "Target").x; //If its correct, place the clip in the same position as the target
                                            e.target.y = getChildByName(e.target.name + "Target").y;
                        else
                                            e.target.x = xPos; //If not, return the clip to its original position
                                            e.target.y = yPos;
                        e.target.stopDrag(); //Stop drag
    private function addListeners(... objects):void
              for (var i:int = 0; i < objects.length; i++)
                                  objects[i].addEventListener(MouseEvent.MOUSE_DOWN, dragObject);
                                  objects[i].addEventListener(MouseEvent.MOUSE_UP, stopDragObject);
    The 4 errors still remain on Line 14, 19, 25, and 40.  All the same Error Code.

  • Error 1013: The private attribute may be used only on class property definitions

    Been trying to solve this problem for the past 4 hours, been searching all over different forums and I still don't get it, I'm a complete newbie with AS3 and just starting to learn it. Can someone tell me what I have done wrong to get this error.
    package {
              import flash.display.Sprite;
              import flash.events.Event;
              public class Main extends Sprite {
                        private const FIELD_WIDTH:uint=16;
                        private const FIELD_HEIGHT:uint=12;
                        private const TILE_SIZE:uint=40;
                        private var the_snake:the_snake_mc;
                        private var snakeDirection:uint;
                        private var snakeContainer:Sprite= new Sprite();
                        private var bg:bg_mc=new bg_mc();
                        public function Main() {
                                  addChild(bg);
                                  placeSnake(); }
                                  addEventListener(Event.ENTER_FRAME,onEnterFr);
    private function placeSnake():void {
              addChild(snakeContainer);
              var col:uint=Math.floor(Math.random()*(FIELD_WIDTH-10))+5;
              var row:uint=Math.floor(Math.random()*(FIELD_HEIGHT-10))+5;
              snakeDirection=Math.floor(Math.random()*4);
              the_snake=new the_snake_mc(col*TILE_SIZE,row*TILE_SIZE,snakeDirection+1);
              snakeContainer.addChild(the_snake);
              switch (snakeDirection) {
                        case 0 : // facing left
                        trace("left");
                        the_snake = new the_snake_mc((col+1)*TILE_SIZE,row*TILE_SIZE,6);
                        snakeContainer.addChild(the_snake);
                        the_snake = new the_snake_mc((col+2)*TILE_SIZE,row*TILE_SIZE,6);
                        snakeContainer.addChild(the_snake);
                        break;
                        case 1 : // facing up
                        trace ("up");
                        the_snake = new the_snake_mc(col*TILE_SIZE,(row+1)*TILE_SIZE,5);
                        snakeContainer.addChild(the_snake);
                        the_snake = new the_snake_mc(col*TILE_SIZE,(row+2)*TILE_SIZE,5);
                        snakeContainer.addChild(the_snake);
                        break;
                        case 2 : // facing down
                        trace ("down");
                        the_snake = new the_snake_mc((col-1)*TILE_SIZE.row*TILE_SIZE,6);
                        snakeContainer.addChild(the_snake);
                        the_snake = new the_snake_mc((col-2)*TILE_SIZE.row*TILE_SIZE,6);
                        snakeContainer.addChild(the_snake);
                        break
                        case 3 : // facing right
                        trace ("right");
                        the_snake = new the_snake_mc(col*TILE_SIZE,(row-1)*TILE_SIZE,5);
                        snakeContainer.addChild(the_snake);
                        the_snake = new the_snake_mc(col*TILE_SIZE,(row-2)*TILE_SIZE,5);
                        snakeContainer.addChild(the_snake);
                        break;
    private function onEnterFr(e:Event) {     <<   ERROR ON THIS LINE
              var the_head:the_snake_mc=snakeContainer.addChildAt(0) as the_snake_mc;
              var new_piece:the_snake_mc=new the_snake_mc(the_head.x,the_head.y,1);
              snakeContainer.addChildAt(new_piece,1);
              var the_body:the_snake_mc=snakeContainer.getChildAt(2) as the_snake_mc;
              var p:uint=snakeContainer.numChildren;
              var the_tail:the_snake_mc=snakeContainer.getChildAt(p-1) as the_snake_mc;
              var the_new_tail:the_snake_mc=snakeContainer.getChildAt(p-2) as the_snake_mc;
              the_head.moveHead(snakeDirection,TILE_SIZE);
              // brute force
              if (is_up(new_piece,the_head)&&is_down(new_piece,the_body)) {
                        new_piece.gotoAndStop(5);
              if (is_down(new_piece,the_head)&&is_up(new_piece,the_body)) {
                        new_piece.gotoAndStop(5);
              if (is_left(new_piece,the_head)&&is_right(new_piece,the_body)) {
                        new_piece.gotoAndStop(6);
              if (is_right(new_piece,the_head)&&is_left(new_piece,the_body)) {
                        new_piece.gotoAndStop(6);
              // end of brute force
              snakeContainer.removeChild(the_tail);

    does this solve your problem
    package
              import flash.display.Sprite;
              import flash.events.Event;
              public class Main extends Sprite
                        private const FIELD_WIDTH:uint = 16;
                        private const FIELD_HEIGHT:uint = 12;
                        private const TILE_SIZE:uint = 40;
                        private var the_snake:the_snake_mc;
                        private var snakeDirection:uint;
                        private var snakeContainer:Sprite = new Sprite();
                        private var bg:bg_mc = new bg_mc();
                        public function Main()
                                  addChild(bg);
                                  placeSnake();
                                  addEventListener(Event.ENTER_FRAME, onEnterFr);
                        private function placeSnake():void
                                  addChild(snakeContainer);
                                  var col:uint = Math.floor(Math.random() * (FIELD_WIDTH - 10)) + 5;
                                  var row:uint = Math.floor(Math.random() * (FIELD_HEIGHT - 10)) + 5;
                                  snakeDirection = Math.floor(Math.random() * 4);
                                  the_snake = new the_snake_mc(col * TILE_SIZE, row * TILE_SIZE, snakeDirection + 1);
                                  snakeContainer.addChild(the_snake);
                                  switch (snakeDirection)
                                            case 0: // facing left
                                                      trace("left");
                                                      the_snake = new the_snake_mc((col + 1) * TILE_SIZE, row * TILE_SIZE, 6);
                                                      snakeContainer.addChild(the_snake);
                                                      the_snake = new the_snake_mc((col + 2) * TILE_SIZE, row * TILE_SIZE, 6);
                                                      snakeContainer.addChild(the_snake);
                                                      break;
                                            case 1: // facing up
                                                      trace("up");
                                                      the_snake = new the_snake_mc(col * TILE_SIZE, (row + 1) * TILE_SIZE, 5);
                                                      snakeContainer.addChild(the_snake);
                                                      the_snake = new the_snake_mc(col * TILE_SIZE, (row + 2) * TILE_SIZE, 5);
                                                      snakeContainer.addChild(the_snake);
                                                      break;
                                            case 2: // facing down
                                                      trace("down");
                                                      the_snake = new the_snake_mc((col - 1) * TILE_SIZE.row * TILE_SIZE, 6);
                                                      snakeContainer.addChild(the_snake);
                                                      the_snake = new the_snake_mc((col - 2) * TILE_SIZE.row * TILE_SIZE, 6);
                                                      snakeContainer.addChild(the_snake);
                                                      break;
                                            case 3: // facing right
                                                      trace("right");
                                                      the_snake = new the_snake_mc(col * TILE_SIZE, (row - 1) * TILE_SIZE, 5);
                                                      snakeContainer.addChild(the_snake);
                                                      the_snake = new the_snake_mc(col * TILE_SIZE, (row - 2) * TILE_SIZE, 5);
                                                      snakeContainer.addChild(the_snake);
                                                      break;
                        private function onEnterFr(e:Event)
                                  var the_head:the_snake_mc = snakeContainer.addChildAt(0) as the_snake_mc;
                                  var new_piece:the_snake_mc = new the_snake_mc(the_head.x, the_head.y, 1);
                                  snakeContainer.addChildAt(new_piece, 1);
                                  var the_body:the_snake_mc = snakeContainer.getChildAt(2) as the_snake_mc;
                                  var p:uint = snakeContainer.numChildren;
                                  var the_tail:the_snake_mc = snakeContainer.getChildAt(p - 1) as the_snake_mc;
                                  var the_new_tail:the_snake_mc = snakeContainer.getChildAt(p - 2) as the_snake_mc;
                                  the_head.moveHead(snakeDirection, TILE_SIZE);
                                  // brute force
                                  if (is_up(new_piece, the_head) && is_down(new_piece, the_body))
                                            new_piece.gotoAndStop(5);
                                  if (is_down(new_piece, the_head) && is_up(new_piece, the_body))
                                            new_piece.gotoAndStop(5);
                                  if (is_left(new_piece, the_head) && is_right(new_piece, the_body))
                                            new_piece.gotoAndStop(6);
                                  if (is_right(new_piece, the_head) && is_left(new_piece, the_body))
                                            new_piece.gotoAndStop(6);
                                  // end of brute force
                                  snakeContainer.removeChild(the_tail);

  • Access to class attributs by coding in its mother class method definition

    Hi all,
    How can I retrieve information about a class attributs by coding?
    And is it possible to access to the attributs of the Child class from the Mother class?
    REPORT  ztest_method.
    ******      CLASS mother DEFINITION
    CLASS mother DEFINITION.
      PUBLIC SECTION.
        METHODS: get_data.
    ENDCLASS.                    "mother DEFINITION
    ******      CLASS child DEFINITION
    CLASS child DEFINITION inheriting from mother.
    ENDCLASS.                    "child DEFINITION
    *******      CLASS mother IMPLEMENTATION
    CLASS mother IMPLEMENTATION.
      METHOD get_data.
    ***Can I access to child class attributs here?
      ENDMETHOD.                    "get_data
    ENDCLASS.                    "mother IMPLEMENTATION
    DATA oref TYPE REF TO CHILD.
    DATA: method TYPE string.
    DATA: cla_name(20).
    START-OF-SELECTION.
      CREATE OBJECT oref .
      CALL METHOD oref->method).  "Here I want to access to this class's attribut without redefine it

    Hi,
    a very easy way is to define an attribute TYPE REF TO DATA in the super class and write generic access methods which work with it by dereferencing it and assigning a field symbol. This might even save you the effort of creating a class hierarchy, because one class may be able to handle all the data objects whose types are only known at run-time.
    In the below example, the only specific thing about the sub class is the constructor in which the data object is created and typed:
    REPORT  ztesta.
    *       CLASS lcl_mother DEFINITION
    CLASS lcl_mother DEFINITION.
      PUBLIC SECTION.
        METHODS get_data EXPORTING es_data TYPE any.
        METHODS set_data IMPORTING is_data TYPE any.
      PROTECTED SECTION.
        DATA mr_data TYPE REF TO data.
    ENDCLASS.                    "lcl_mother DEFINITION
    *       CLASS lcl_child1 DEFINITION
    CLASS lcl_child1 DEFINITION INHERITING FROM lcl_mother.
      PUBLIC SECTION.
        METHODS constructor.
    ENDCLASS.                    "lcl_child1 DEFINITION
    DATA:
      lr_child      TYPE REF TO lcl_mother,
      ls_but000_in  TYPE        but000,
      ls_but000_out type        but000.
    START-OF-SELECTION.
      CREATE OBJECT lr_child TYPE lcl_child1.
      ls_but000_in-partner = '0000004711'.
      lr_child->set_data( ls_but000_in ).
      lr_child->get_data( IMPORTING es_data = ls_but000_out ).
      write: / ls_but000_out-partner.
    *       CLASS lcl_mother IMPLEMENTATION
    CLASS lcl_mother IMPLEMENTATION.
      METHOD get_data.
        FIELD-SYMBOLS:
          <fs_data> TYPE ANY.
        ASSIGN mr_data->* TO <fs_data>.
        MOVE-CORRESPONDING <fs_data> TO es_data.
      ENDMETHOD.                    "get_data
      METHOD set_data.
        FIELD-SYMBOLS:
          <fs_data> TYPE ANY.
        ASSIGN mr_data->* TO <fs_data>.
        MOVE-CORRESPONDING is_data TO <fs_data>.
      ENDMETHOD.                    "set_data
    ENDCLASS.                    "lcl_mother IMPLEMENTATION
    *       CLASS lcl_child1 IMPLEMENTATION
    CLASS lcl_child1 IMPLEMENTATION.
      METHOD constructor.
        super->constructor( ).
        CREATE DATA mr_data TYPE but000.
      ENDMETHOD.                    "constructor
    ENDCLASS.                    "lcl_child1 IMPLEMENTATION
    Another variant would be to define an attribute MV_DATA which is typed individually in each sub class and program dynamically against it in the super class using field symbols.
    *& Report  ZTESTA
    REPORT  ztesta.
    *       CLASS lcl_mother DEFINITION
    CLASS lcl_mother DEFINITION.
      PUBLIC SECTION.
        METHODS get_data EXPORTING es_data TYPE any.
        METHODS set_data IMPORTING is_data TYPE any.
    ENDCLASS.                    "lcl_mother DEFINITION
    *       CLASS lcl_child1 DEFINITION
    CLASS lcl_child1 DEFINITION INHERITING FROM lcl_mother.
      PUBLIC SECTION.
        DATA: ms_data TYPE but000.
        METHODS constructor.
    ENDCLASS.                    "lcl_child1 DEFINITION
    *       CLASS lcl_child2 DEFINITION
    CLASS lcl_child2 DEFINITION INHERITING FROM lcl_mother.
      PUBLIC SECTION.
        DATA: ms_data TYPE t000.
        METHODS constructor.
    ENDCLASS.                    "lcl_child1 DEFINITION
    DATA:
      lr_child1     TYPE REF TO lcl_mother,
      lr_child2     TYPE REF TO lcl_mother,
      ls_but000     TYPE        but000,
      ls_t000       TYPE        t000.
    START-OF-SELECTION.
      CREATE OBJECT lr_child1 TYPE lcl_child1.
      lr_child1->get_data( IMPORTING es_data = ls_but000 ).
      WRITE: / ls_but000-partner.
      CREATE OBJECT lr_child2 TYPE lcl_child2.
      lr_child2->get_data( IMPORTING es_data = ls_t000 ).
      WRITE: / ls_t000-mwaer.
    *       CLASS lcl_mother IMPLEMENTATION
    CLASS lcl_mother IMPLEMENTATION.
      METHOD get_data.
        FIELD-SYMBOLS:
          <fs_data> TYPE ANY.
        ASSIGN ('MS_DATA') TO <fs_data>.
        es_data = <fs_data>.
      ENDMETHOD.                    "get_data
      METHOD set_data.
        FIELD-SYMBOLS:
          <fs_data> TYPE ANY.
        ASSIGN ('MS_DATA') TO <fs_data>.
        <fs_data> = is_data.
      ENDMETHOD.                    "set_data
    ENDCLASS.                    "lcl_mother IMPLEMENTATION
    *       CLASS lcl_child1 IMPLEMENTATION
    CLASS lcl_child1 IMPLEMENTATION.
      METHOD constructor.
        super->constructor( ).
        SELECT SINGLE * FROM but000 INTO ms_data.
      ENDMETHOD.                    "constructor
    ENDCLASS.                    "lcl_child1 IMPLEMENTATION
    *       CLASS lcl_child2 IMPLEMENTATION
    CLASS lcl_child2 IMPLEMENTATION.
      METHOD constructor.
        super->constructor( ).
        SELECT SINGLE * FROM t000 INTO ms_data.
      ENDMETHOD.                    "constructor
    ENDCLASS.                    "lcl_child2 IMPLEMENTATION
    I hope this helps!
    Regards,
    Thorsten

  • Problem with import statement for user created classe

    I recently downloaded J2sdk1.4.0_03 before that I had jdk1.3 and never had this problem.All the files other than named package I import for my
    application does not compile.But when I commented that out it work just fine.
    any help is appreciated

    thanks
    It makes sense not to import non-packaged class.
    My other problem is with JDBC ODBC.I have a Dell system with Windows XP.
    I registered my User Data Source to ODBC with MS Text driver(.txt , csv).When the code reaches at the .executeUpdate(CREAT TABLE CUSTOMERS)
    it throws an exception
    sQLException 3:java.sql.SQLException: [Microsoft][ODBC Text Driver] Cannot modify the design of table 'CUSTOMERS'. It is in a read-only database.
    Do I really need to change the attribues or some thing else.
    How can I chane the attributes of the database.Never had problem with windows 98.

  • How to deploy a single class to the web portal?

    EDIT: I've been able to create the deployment file. I found an older copy of NWDS and the old project folders are working perfectly again. I'll cross that bridge with the new version another time.
    Firstly, sorry if this post is in the wrong section ... I looked around and couldn't find a section that I thought fitted.
    A while back my company created a simple login module to similate a single sign on for our network. The module worked perfectly for a few months, then about a months ago it started rejecting logins for no apparent reason. I've asked all involved with the system and everyone claims that they haven't touched anything and that the problem must be within the Java class.
    Due to recent workstation upgrades, I now have the latest version of NetWeaver Development Studio installed (SDN_Preview_SR_5_IDECE71). This new version does not like the old project that was created for this task, and I am struggling to create a new project which will do what I need.
    Can someone point me to up-to-date documentation that explains how I can create a project which contains only a single java class that is to be deployed to a web portal? The class that is created extends the SAP class; com.sap.engine.interfaces.security.auth.AbstractLoginModule.
    Please note that I have already look at some of the online documentation, for example: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e1/8e51341a06084de10000009b38f83b/frameset.htm
    And that was of no help as it seems the documentation is no longer up-to-date with the current version ... or am I looking at the wrong documentation?
    Another possibility is to install the older NetWeaver Development Studio, the problem here is I do not know where I can download a copy for Windows? I can only find the latest version for Windows online.
    Thanks in advance for any and all assistance,
    Edited by: Markus Schönenberger on Sep 30, 2010 3:07 PM

    Hi Andreas,
    You need to do the following:
    - Upload the text file as a local configuration file in the "Local Content":
    http://wikis.sun.com/display/OC2dot5/Uploading+a+Local+Configuration+File
    - Create an OS Update Profile for the configuration file:
    http://wikis.sun.com/display/OC2dot5/Creating+an+OS+Update+Profile
    - Create a job and select the profile you have created as well as the servers you want to deploy the text file on:
    http://wikis.sun.com/display/OC2dot5/Updating+From+a+Solaris+OS+Profile
    Regards,
    [email protected]

Maybe you are looking for

  • Impact of FQDN changes in SAP PI

    Dear all, We are currently using the SAP Netweaver PI 7.31 and change the FQDN for the system. Please let me know where we need to change the new FDQN in PI Profiles apart from DEFAULT.PFL. Many thanks in advance for support and cooperation. Regards,

  • Where is the file extent map ?

    hello everybody, I have a question. In Oracle Cluster, when Database Instace want to do I/O on a database file stored in ASM it first have to interactive with ASM instance. ASM Instace will provide Database Instance with ASM File Extent Map . ASM Fil

  • How to implement such validation requirement?

    2 af:inputText A and B only numbers and letters are allowed for both of them, but both of them are letters is not allowed. how to implement it? JDev: 11g. Thanks. Kevin.

  • Installation Trouble with Photoshop Disk

    I'm trying to reinstall photoshop cs3 from the original disk. I have the correct serial number and it says it's invalid. Later, I had upgraded to cs5 and tried that serial number and that does not work either. I had to do a fresh reinstall after my c

  • Pricing: Access are in correct sequence

    Hi , I defined new Condition . and i placed  condition table in access as below 10) 735--- 20) 701 30) 506 40) 641 50)627 My question is the sequence what is kept is correct ? if the sequence is not in ascending or decending will it be problem in sea