am using JACOB as a bridge with java to access objects of a simulator (PTV vissim)to be able to manipulate it in real time , most objects has methods and properties... i was going well , because i was using the ...
getProperty
and invoke
functions but now I need to access an object attribute e.g. name but i don't know which function should I use , the object am dealing with is an instance of
ActiveXComponent
package com.vissim;
import java.util.List;
import java.util.Scanner;
import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.Variant;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Vissim vissim = new Vissim();
vissim.start();
vissim.LoadNet("H:\\MY VISSIM\\projects\\new.inpx");
Net net = new Net(vissim);
ActiveXComponent linkContainer = net.getNetProperty("links");
System.out.println("links fetched");
ActiveXComponent link =linkContainer.invokeGetComponent("itemByKey", new Variant(1));
// the problem is here , i need to do something like
//link.getProperty("Attributes");
System.out.println("we are here ");
}