How the jcre to invoke select method?

hi,
I have some problems as follows:
one : applets store on the card must as files or not ?
two: when the jcre receive the SELECT FILE COMMOD, the JCRE could impletment the selection of an applet ,how the jcre kown the address (or the token)of the applet' the select method and process method,
three : l see some applet have not a select() method ,how they selected by jcre
Edited by: user8638804 on 2011-3-26 上午7:03

user8638804 wrote:
one : applets store on the card must as files or not ?That is up to the implementation. Generally speaking files are a ISO7816 concept. An applet would be stored as an executable.
two: when the jcre receive the SELECT FILE COMMOD, the JCRE could impletment the selection of an applet ,how the jcre kown the address (or the token)of the applet' the select method and process method,The SELECT FILE command is an ISO7816 command that allows a GP/Java Card based card to treat an application like a 7816 file system object. The card manager would keep a map of applets that have been installed by the installer. The JCVM is responsible for being able to execute a method on a Java class.
three : l see some applet have not a select() method ,how they selected by jcreThe javacard.framework.Applet class has a select method so all applets have a select method.
Cheers,
Shane

Similar Messages

  • How to recognize the name of invoked classes&methods&fields in a class

    I am now doing some programming used to recognize the name of all classes, methods, constructors and fields invoked from other classes in a given class. This recognition is required automatical. Now I really have no idea how to realize it. Can anyone please give me some suggestions how to programme it?
    Now I show you a specific example to make sure you understand my question.
    From the following example, firstly I've no idea what outer classes, methods and fields are used in class "PointShadowProtocol". However, the expected functionality of realization is to find out: 1, the name of two used outer classes: Shadow, Point; 2, invoked constructor: Shadow s=new Shadow(int x,int y); 3, invoked methods: Point.getX(), Point.getY(), Point.printPosition(),Shadow.offset,Shadow.printPosition(); and 4, invoked field: Point.x,Point.y,Shadow.x,Shadow.y
    public class PointShadowProtocol{
    private int shadowCount=0;
    public static Shadow getShadow(Point p){
    Shadow s=new Shadow(p.x,p.y);
    return s;
    public void setting(Point p){
    Shadow s=new Shadow(p.x,p.y);
    shadowCount++;
    public void settingX(Point p){
    Shadow s=getShadow(p);
    s.x=p.getX()+Shadow.offset;
    p.printPosition();
    s.printPosition();
    public void settingY(Point p){
    Shadow s=getShadow(p);
    s.y=p.getY()+Shadow.offset;
    p.printPosition();
    s.printPosition();
    Actually, after realizing this functionality, I will use these results to automatically generate the related class stub, method stub, field stub, which can be used to test the given class "PointShadowProtocol", probably equivalent to unit test.
    Any suggestions are welcome. Thank you in advance for your reply.

    Using BCEL sounds a good idea for a class in Java. Actually, I want to target an aspect, which is from AspectJ, without knowing any invoked classes, class methods and fields inside an aspect in the first place (examples of an aspect is as showed below). An aspect in AspectJ is just like a class in Java. But an aspect can't be compiled if the invoked outer classes and methods don't exist. (In fact, the weaving of an aspect into classes happens in the compile time, an aspect can't be compiled if the woven classes (or invoked classes) don't exist, which means I have to find out the all the invoked classes, class methods and fields in that aspect before the compile time) So BCEL could not apply into an aspect in AspectJ.
    I am sorry to introduce new concepts here. However,the solution to find out all the invoked outer classes, class methods and fields in a given class before the compile time can be applied to an aspect as well.
    Thank you for your time to think about my question.
    public aspect PointShadowProtocolAspect {
         private int shadowCount=0;
         public static Shadow getShadow(Point p){
              Shadow s=new Shadow(p.x,p.y);
              return s;
         pointcut setting(Point p): target(p)&&call(Point.new(int,int));
         pointcut settingX(Point p):target(p)&&call(void Point.setX(int));
         pointcut settingY(Point p):target(p)&&call(void Point.setY(int));
         after(Point p): setting(p){
              Shadow s=new Shadow(p.x,p.y);
              shadowCount++;
         after(Point p):settingX(p){
              Shadow s=getShadow(p);
              s.x=p.getX()+Shadow.offset;
              p.printPosition();
              s.printPosition();
         after(Point p):settingY(p){
              Shadow s=getShadow(p);
              s.y=p.getY()+Shadow.offset;
              p.printPosition();
              s.printPosition();

  • Difference between invoking a method using reflect.proxy and reflect.Method

    Could any one tell me the difference between invoking a method using reflection java.lang.reflect.Method and java.lang.reflect.Proxy
    using both the class, we can invoke a method at runtime
    1)
    Method mthd=cl.getMethod("methodName",parameterName);
    Integer output=(Integer)mthd.invoke(new RunMthdRef(),input);
    2)
    Proxy.newProxyInstance(super.getClass().getClassLoader(), new Class[] { adapter }, new SomeClass(this));
    Does anybody have any idea?

    The two idioms are fundamentally different. Using java.lang.reflect.Method is how we call a method on a class, using Proxy is how we intercept that method call. An exercise for you, to illustrate that they do not do the same thing: write a simple class with one method, then use java.lang.reflect.Method to invoke that method, and then use a Proxy to invoke that method

  • MF50 Selection Method

    Hi Gurus,
    In planning table, MF50 -
    at control data tab, you have a Selection Method.
    We have option of keeping selection Method blank or select
    SAP00001 SAP Only Reciepts
    SAP00002 SAP Reciepts and Stocks
    SAP00003 SAP Without PIR's
    SAP00004 SAP Dely schedule instead of Schedule lines
    SAP00005 SAP PIR with dept requirements
    How will Blank option behave?
    It will consider which MRP elements like reciepts, PIRs etc?
    How will my result if selection method is Blank?
    How will it if I select the other five options which I have?

    blank selection rule is i.e. all display.

  • How the join works

    Hi,
    Could you please tell me how the below join works
    Select a.col1,a,col2,b.col1,c.col1,d.col1
    from Table1 a, Table2 b, Table3 c, Table4 d
    where
    a.col4 = b.col4 (+)
    and c.col4(+) = d.col4
    How do this tables are joining and displays the result.

    Hi,
    VJ wrote:
    Hi,
    Could you please tell me how the below join works
    Select a.col1,a,col2,b.col1,c.col1,d.col1
    from Table1 a, Table2 b, Table3 c, Table4 d
    where
    a.col4 = b.col4 (+)
    and c.col4(+) = d.col4(1) There is an inner join between a and b: rows in a will be joined to rows in b if they have the same value of col4.
    (2) There is an outer join between c and d: rows in c will be joined to rows in d if they have the same value of col4, but rows from c will appear regardless of whether they match or not.
    (3) There are no other join conditions, so there is a cross join between the result sets of (1) and (2): every row in each will be joined to every row in the other.

  • Invoking java methods

    hi
    i have used flash builder 4.
    i can't plugin eclipse ide.
    can i invoke java methods in flash builder 4 .
    is it possible.
    if it's possible pls give some ideas.
    thanks in advance
    regards
    athi

    If you want to invoke java methods that are remote though, you might want to use a Java Remoting technology like BlazeDS.
    Using a <s:RemoteObject> tag, you could connect to the server and invoke java methods.
    Here is a small sample app code that helps me execute a remote java method.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
       creationComplete="ro.getProducts()">
    <fx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.messaging.channels.AMFChannel;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    protected function ro_resultHandler(event:ResultEvent):void
    Alert.show(event.result.toString())
    protected function ro_faultHandler(event:FaultEvent):void
    Alert.show(event.fault.faultString);
    ]]>
    </fx:Script>
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    <s:RemoteObject id="ro"
    destination="productService"
    endpoint="http://localhost:8400/samples"
    fault="ro_faultHandler(event)"
    result="ro_resultHandler(event)"/>
    </fx:Declarations>
    </s:Application>
    Hope this helps,
    Balakrishnan V

  • How can I invoke a method on a subclass based on the runtime type?

    Hi all,
    I have defined a base class OrderDetail, and 2 subclasses which extend it: OrderDetailSingleReservation and OrderDetailMonthReservation. Furthermore, I have a method:
        public Order order_generate(OrderDetail orderDetail) {
            if (orderDetail instanceof OrderDetailSingleReservation) {
                return order_generate((OrderDetailSingleReservation) orderDetail);
            }  else if (orderDetail instanceof OrderDetailMonthReservation) {
                return order_generate((OrderDetailMonthReservation) orderDetail);
            } else {
                Misc.alert("orderAndInvoice_Generate(GENERIC): unsupported type.");
                return null;
        }The type of this method's parameter is OrderDetail, as you can see. (This particular method only serves as a kind of dispatcher and is therefore not very interesting in itself, but the same pattern using 'instanceof' occurs in a codebase I am working on several times, and I would like to factor it out if possible.)
    My question: it seems that the invocation of order_generate() from within this method requires an explicit downcast to one of the two subclasses. If not, java invokes the method on the superclass. But at runtime, the JVM knows what type of object it is dealing with, right? So is there no way to do this without the explicit downcast?
    A similar problem occurs when trying to invoke a method on an object whose type is one of the subclasses; the method on superclass is called, instead of the one in the appropriate subclass that overrides it.
    Any help would be greatly appreciated!
    Thanks,
    Erik

    Thanks for your replies! I was editing my post last night to clarify it, but my connection went down and the edit was lost :(
    Anyway, yes, it should be done with polymorphism. I was constructing an example using the famous Animal, Cat and Dog classes to demonstrate my question more clearly, and to my surprise the problem does not occur in my example code.
    LRMK: Invoking a method such as in your example, where the method is inside the class itself, works fine. However for MVC's sake, I have a separate class called Invoicing with methods as below:
    class invoicing
      // the method for the superclass
      public Invoice invoice_create(OrderDetail orderDetail) {
         System.out.println("type: " + orderDetail.getClass());
         return null;
      // the method for one of the subclasses (this method is being not invoked)
      public Invoice invoice_create(OrderDetailSingleReservation orderDetail) {
         return null;
      // ...nor is this one.
      public Invoice invoice_create(OrderDetailMonthReservation od) {
         return null;
    }Now I attempt to invoke these methods:
    // create example objects
    OrderDetailSingleReservation odSingle = new OrderDetailSingleReservation();
    OrderDetailMonthReservation odMonth = new OrderDetailMonthReservation();
    // this call displays "odSingle type: OrderDetailSingleReservation"
    System.out.println("odSingle type: " + odSingle.getClass());
    // this call displays "odMonth type: OrderDetailMonthReservation"
    System.out.println("odMonth type: " + odMonth.getClass());
    // this call invokes Invoicing.invoice_create(OrderDetail)
    // instead of Invoicing.invoice_create(OrderDetailSingleReservation)
    Invoicing.invoice_create(odSingle);
    // this call invokes Invoicing.invoice_create(OrderDetail)
    // instead of Invoicing.invoice_create(OrderDetailMonthReservation)
    Invoicing.invoice_create(odMonth);So these calls will invoke the method for the superclass, i.e. Invoicing.invoice_create(OrderDetail od). That method then then executes the System.out.println() call which displays the class type of its parameter as one of { OrderDetailSingleReservation | OrderDetailMonthReservation }, that is, the expected subclass types!
    So the dynamic dispatch isn't working the way I would expect it to. If I do the explicit if-else checking using instanceof, as described in my first post, the correct methods are called.
    I hope the problem is somewhat clearer now. I am a bit lost as to what might be causing this, or how to monitor what's going on inside the jvm. Any ideas? BTW, the OrderDetail class and its subclasses are JPA entities (though I don't think it should matter).
    Thanks!
    Erik

  • How the compiler chooses which method to invoke?

      public class A {
            public void foo(Object o) {
                System.out.println("A.foo with an object");
      public class B extends A {
            public void foo(Object o) {
                System.out.println("B.foo with an object");   
            public void foo(String s) {
                System.out.println("B.foo with a string");   
    public class C {
        public static void main(String[] args) {
            String s = "hello";
            A a = new B();
            a.foo(s);
    }why the output is "B.foo with an object" and not "B.foo with a String".
    or more generally: how the compiler choses the method to invoke?

    or more generally: how the compiler choses the method
    to invoke?Variable a is declared as a reference to an A. The compiler only knows this. It doesn't know that the object it happens to be pointing at is a B. So it only looks at A's methods.
    A has only foo(Object), so it will call the method with the signature foo(Object).
    Which signature to use is determined at compile time, and is determined by the type of the reference.
    Now, as for whether A's foo or B's foo, that's where Java's polymorphism comes in. In this case, the VM looks at the object, not the reference, and calls the "deepest" (furthest from Object) class' method that matches that signature.
    Which class' implementation of that signature to call is determined at runtime, and is determined by the object, not the reference.

  • How to find the class name, the location from where it invoked a method

    Hi,
    I have a class A. The caller calls A.someMethod(), whenever this method is invoked, I want to find out the caller info, which class invoked this method, from where this class was loaded (may be the jar file name). Any help will be appreciated.
    Thanks.

    However since version 1.4 there is an easier way to extract that information from the Throwable:
    java.lang.Throwable
    public StackTraceElement[] getStackTrace()
    Provides programmatic access to the stack trace information printed by printStackTrace(). Returns an array of stack trace elements, each representing one stack frame.

  • URGENT: How to Configure Ruote to Business Service that invokes 2 methods

    Hi,
    I am using ALSB 2.6.
    Currently I am working on a project, in which i have to configure business service and proxy service.
    Now the problem which i am facing is the following :-
    I'm trying to configure my Proxy service to route to 1 Business Service which in turn invokes 2 methods.
    I want to know how can i configure this route to business service that invokes 2 methods.
    Right now, to execute/ invoke any of the method i need to invoke each method by changing manually in the rotuing flow.
    Can any one tell me how can i configure both the methods for the same business service in a single rotuing flow only.
    Presently i am configuring it in this way:
    Route to BUSINESSSERVICE invoking METHOD1.
    At the place of method 1 theres a drop box from where you select the desired method.
    I want to know how to configure both the methods in single rotuing flow so that it invokes the desired method without manually editing it each time.
    What is the best solution to this problem? I would very much appreciate any help on this!
    Regards,
    Samir

    Hi,
    You can create a pipeline pair, add one (or more stages), and inside of the stage, invoke the a service callout to your business service.
    Regards,
    Fabio Douek.
    Regards,
    Fabio Douek

  • How to programmatically mimic the user action of selecting a button ?

    I am using JAVA Swings to build a desktop application. The application has many buttons, lists and text boxes etc. I have created actionPerformed methods that monitor the source for user action. I am able to execute the code whenever an action is performed by user manually.
    I also require to save the choices, and texts entered by a user during his active run with the application. This is to avoid user to re-enter all the information once again.
    The problem is to programmatically select those buttons and lists which were saved during users earlier session. How can I perform the action event of selecting a radio button from my java code.

    Kiran,
    Your approach is missing the whole idea of Model-View-Controller. I suspect that somewhere you are saving the data of the user's choices. For example, if you have a checkbox, I suspect you have a java bean somewhere containing a boolean value that is set to true when the checkbox is selected, and false when the checkbox is unselected. This process is mediated by a controller, which has a references to the model (the data) and the view (the UI). The controller sets up as a listener to the actions within the UI, and, when notified, sets the appropriate properties of the data, usually into one or more java beans.
    So, on the reverse side of things, the data is read into the java bean(s), and the controller uses that data to set the state of the UI elements. So, your controller can do something like this:
        uiThing.initUI(yourBean);And in the initUI method you have:
        public void initUI(DataBean data) {
             cbxBlue.setSelected(data.isBlue());
             txtLastName.setText(data.getLastName());
             // etc...
        }If you take that general approach, you'll find you don't need to simulate user actions.
    In the few cases within the UI where you think you do, you really don't. An ActionListener is just a receiver of when something like a button is pressed. If your program needs to do the same thing as when the button is clicked, create a method to perform the processing, and invoke it directly, rather than trying to figure out how to programmatically press a button.
         public void actionPerformed(ActionEvent e) {
              if (e.getActionCommand().equals("BlueButton"))
                  this.setBlue();
              //... etc.
         private void setBlue() {
             // whatever
         // somewhere else in the code
         private void someProcess() {
              // other work
              // other work
              if (someCondition) this.setBlue();  // rather than forcing an action event
              // other work
              // other work
         }

  • How do you invoke a method with native int array argument?

    Hi,
    Will someone help me to show me a few codes samples on how to invoke a method which has only one argument, an int [] array.
    For exampe:
    public void Method1(int [] intArray) {...};
    Here is some simple code fragment I used:
    Class<?> aClass = Class.forName("Test2");
    Class[] argTypes = new Class[] {int[].class};
    Method method = aClass.getDeclaredMethod("Method_1", argTypes);
    int [] intArray = new int[] {111, 222, 333};
    Object [] args = new Object[1];
    args[0] = Array.newInstance(int.class, intArray);
    method.invoke(aClass, args);I can compile without any error, but when runs, it died in the "invoke" statement with:
    Exception in thread "main" java.lang.IllegalArgumentException: object is not an instance of declaring class
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at Test1.invoke_Method_1(Test1.java:262)
         at Test1.start(Test1.java:33)
         at Test1.main(Test1.java:12)
    Any help is greatly appreciated!
    Jeff

    Sorry, my bad. I was able to invoke static methods and instance methods with all data types except native int, short, double and float, not sure the proper ways to declare them.
    After many frustrating hours, I posted the message for help, but at that time, my mind was so numb that I created a faulted example because I cut and pasted the static method invocation example to test the instance method passing int array argument.
    As your post suggested, "args[0] = intArray;", that works. Thanks!
    You know, I did tried passing the argument like that first, but because I was not declaring the type properly, I ended up messing up the actual passing as well as the instantiation step.
    I will honestly slap my hand three times.
    jml

  • How the Pop UP window got closed on line select

    Hi All,
    at BP_ADDR component we are calling component BP_SEARCH_HELPS by cross component usage on F4,
    then we are doing bank details search, then on single line select at View BP_SEARCH_HELPS/BankKeySearchHelpResult
    then it goes to event handler method EH_ONSELECT then.
    inside this method we have code for to call window outbound plug RETURNRESULT'
    METHOD eh_onselect.
    via viewmanager:
      DATA: lr_window          TYPE REF TO cl_bsp_wd_window.
      lr_window ?= me->view_manager->get_window_controller( ).
      lr_window->call_outbound_plug( iv_outbound_plug   = 'RETURNRESULT' ).
    endmethod.
    but at Window out bound plug there is no code for cross comp Window navigation (like Fire_outbound_plug with navigation link)
    then also popup is closing and it gets navigating to BP_ADDR component, how it happenning...?
    code at window BP_SEARCH_HELPS/BankKeySearchHelpW outbound plug is
    method OP_RETURNRESULT.
    endmethod.
    there is no navigation link also defined for window BP_SEARCH_HELPS/BankKeySearchHelpW at Runtime repository.
    one more question is how the event handler method EH_ONSELECT is executed for line select (we r not define any server event for any field of table's context node), is it property of Table context node?
    Thanks,
    VjMhyd

    Hi VJ,
    I hope you are able to find the answer to your question that "how pop up is closing and navigation is done to BP_ADDR component" if not here is the answer.
    Go to your window class and search for method call_outbound_plug ( remove the filter check box ). inside that method firstly your outbound plug method RETURNRESULT will be called and then you will find another method fire_outbound_plug. inside this method there is code to navigate back and close the pop up. this code is only triggered for pop up cases and that's how navigations takes places.
      check if this is a popup rep. view
        if ME->IS_TOPLEVEL_WINDOW = ABAP_TRUE.
        We ignore the navigation for popups but save the outbound plug if given
        and tell the current popup to get closed
          data: LV_VIEW_MANAGER    type ref to LCL_VIEW_MANAGER,
                LV_APPL_CONTROLLER type ref to CL_BSP_WD_APPL_CONTROLLER.
          try.
              LV_VIEW_MANAGER ?= ME->VIEW_MANAGER.
              LV_APPL_CONTROLLER ?= LV_VIEW_MANAGER->GET_APPLICATION_CONTROLLER( ).
              LV_APPL_CONTROLLER->POPUP_MANAGER->CLOSE_POPUP( IV_OUTBOUND_PLUG ).
            catch CX_SY_MOVE_CAST_ERROR.                    "#EC NO_HANDLER
          endtry.
    I hope this clarifies your issue.
    Thanks
    Sudhir Grover

  • How do I change the colour of a selected cell in a jTable?

    I have a Jtable that displays URL names in one column. There are several problems I'm having. The effect I'm trying to achieve is this:
    When the user runs the mouse over the URL name the cursor should change into a hand (similar to what happens in an HTML hyperlink). I'm aware that the Cursor class can set the cursor graphic so i figure that i need a listener of some sort on each cell (so the cursor can change from an arrow to a hand) and also one to indicate when the cursor is not on a cell (so that it can change from a hand back into an arrow). Is this the right track?
    Also, I've looked at the DefaultTableCellRenderer class (which, as i understand it, is responsible for how each cell in the jtable is displayed) for a method that will allow me to set the background of a selected cell (or row or column). I require this because each time i select a cell (or row) it becomes highlighted in blue. I would rather it just remained white and changed the cursor to a hand. I know there exists a method for setting the background for an unselected cell but none for a selected cell. Again, I'm not sure if I'm going down the right track with this approach.
    Lastly, if the cell has been selected (by a mouse click) the font of the writing in the cell (i.e. The name of the URL) should change. This shouldn't be too much of a problem I think.
    I do not expect anyone to provide code to do all of this but some general pointers would be extremely helpful as I do not know if I'm thinking on the right track for any of this. Having some (limited) experience with Swing I doubt there is a simple way to do this but I can only hope!
    Thanks.
    Chris

    http://www2.gol.com/users/tame/swing/examples/SwingExamples.html
    there you can find some examples with CellRenderer's and so on ...
    have fun

  • How to get a LabVIEW class object to expose an invoke-node method?

    Hi,
          I like the property/invoke-node "paradigm" used for interacting with "objects".  Can LabVIEW-class objects expose their properties and methods this way?  Can one or more LabVIEW-class objects be compiled into a library or "assembly" (or other distrubution format) that allows the property/invoke-node usage?
    I've looked at (but not completely understood) "Creating LabVIEW Classes".  Have also searched for related posts.
    The pic below shows an invoke node wired to a class with a Public VI "VAT.Status.Hello.vi".  I'd like to see VAT.Status.Hello show-up as a Method.  (I just tried "Select Method", and selected "VAT.Status.Hello.vi" but dialog's "OK" button stays greyed-out.)
    Cheers.
    Message Edited by tbd on 03-29-2007 03:15 PM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    VATStat.JPG ‏54 KB

    Hi Aristos,
          Thanks for the reply!  It was a bit dissappointing, though.
    It appears the LabVIEW-class object will be moving away from (what seems to me) a convenient object-interface presented by the invoke-node/method paradigm - which allows us to interface with a large set of "objects" (.NET, ActiveX, LabVIEW GUI, VISA Resource, ?) in a similar manner and independent of the object's origin.  Being able to read the methods and parameters that appear in these nodes is also helpful for understanding diagram logic!
    I do like the option of dropping a friendly "VI looking" icon on the diagram, but perhaps an optional - even default - VI-icon representation for a class-object invoke-node is feasible - so the LabVIEW class-object could be the more generic object first, but with a traditional-G representation(?)
    Given the answer "We would like, someday, to support the property node"
    and "in the next version of LV, wiring the LV class to the property/invoke nodes will break the wire so we'll avoid confusion in the future",
    ... I guess you'll break the wire in the next version, but (perhaps) allow it again - if support of the property node is ever implemented?
    Regards.
    P.S. For the record, huge THANKS to whoever it was that straightened-out enumerated-types (somewhere) between LV4.1 and LV6.1.  Every time I add or remove an enumeration in a typedef, I silently give thanks to the bright and thoughtful soul(s) who made this valuable tool work so well!
    Hello. This is your friendly neighborhood R&D guy for LabVIEW classes.
    Regarding your request about property and invoke nodes as relates to LV classes....
    Short story: We would like, someday, to support the property node. We have no intention of ever supporting the invoke node.
    Long story: As we were creating LV classes, we had to evaluate the right programming interface for these things. We wanted LV classes to behave as new data types in LV. A developer should be able to create a LV class, then give it to someone who doesn't even know OO programming, and that second programmer could use the new data type without learning a lot of new concepts. From this principle, we held fast to the idea that the programming interface should be subVI calls whereever possible. The invoke node is really nothing more than a VI minus the icon. If you want, you can popup on any subvi node and uncheck the option "View as Icon". This will make the node display in a way that has the terminals listed as text, like the invoke node. So, at the end of the day, the invoke node is simply a subroutine call in LV that is language dependent, as opposed to the language independent iconography of LV generally.
    The property node is a slightly different story -- the functionality of a property node is actually different than an invoke node as its terminals are various subsets of the properties available, not a fixed list of parameters like the invoke node. The property node provides a nice interface for setting multiple properties in a block and only having to check a single error return. Very friendly. Our intent is to allow you to create a VI that has 5 terminals: object in, object out, error in, error out, and either a single input or a single output of your chosen type. VIs with this conpane could be marked as "properties" of the class and would show up when you wire the class wire to the property node. We would call the subVIs behind the scenes as needed to get/set the properties.
    This is on the longer term roadmap because it is "syntactic sugar" -- it sweetens the programming style, but it is not necessary to program effectively. You can get the same effect by writing those same VIs and stringing them along on a block diagram "railroad track" style. We'll probably get around to it in three or four versions of LV -- there are some major user requests that impact functionality that have to get done first.
    PS -- in the next version of LV, wiring the LV class to the property/invoke nodes will break the wire so we'll avoid confusion in the future of people thinking there's a way to use these nodes.
    Message Edited by Aristos Queue on 04-02-2007 09:56 AM
    Message Edited by tbd on 04-03-2007 12:39 PM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

Maybe you are looking for

  • Using SSI in a page. Pages in one folder don't work

    I have a fairly large site (page count wise that is) that I have tried my first case of using a Server Side Include. The site is http://www.schaefergreenhouses.com In the upper left area of the side navigation bar, green, there are two text links, Ch

  • Enqueue/ Dequeue Table record

    Dear Experts, I am updating a record in my z-table which is appended in LFA1 through a Z-program. Prior to my update command i want to Enqueue that particular record and once it is updated i want to dequeue it. Can you please suggest the function mod

  • How to send mass text message

    I would like to extend good will, with hopes for a peaceful future and wish everyone a happy and safe holiday ! Peace and God Bless  !

  • IMovie 09 crash on Mac 10.6.8

    I have iMovie09 on Mac OS X 10.6.8, and it crashes everytime I try the Title button. I deleted files like com.apple.imovie8.plist and com.apple.iapps.plist.. (after exiting iMovie). But it didn´t help at all. It still crashes. The file com.imovie8.pl

  • Petition - Zen 20Gb (DAP-HD00

    I have recently upgraded my music player from a zen micro to a Zen 20Gb and I am surprised to find that it is a step backward in terms of firmware. The zen micro went to deep sleep mode after 4 hours. However this player is still using the old settin