public Schema profile(Set<Name> profile) { return new ProfileImpl(this, profile); } }
/** * Profile of GMLSchema capturing a unique mapping of Java classes. * * <p>This profile mostly matches to JTS Geometry classes. * * @return Subset of GMLSchema capturing a unique mapping of Java classes */ public ProfileImpl profile() { Set<Name> profile = new LinkedHashSet<Name>(); profile.add(new NameImpl(GML.PointPropertyType)); profile.add(new NameImpl(GML.MultiPointPropertyType)); profile.add(new NameImpl(GML.LineStringPropertyType)); profile.add(new NameImpl(GML.MultiLineStringPropertyType)); profile.add(new NameImpl(GML.PolygonPropertyType)); profile.add(new NameImpl(GML.MultiPolygonPropertyType)); profile.add(new NameImpl(GML.GeometryPropertyType)); return new ProfileImpl(this, profile); } }
/** * Profile of GMLSchema capturing a unique mapping of Java classes. * * <p>This profile mostly matches to JTS Geometry classes. * * @return Subset of GMLSchema capturing a unique mapping of Java classes */ public ProfileImpl profile() { Set<Name> profile = new LinkedHashSet<Name>(); profile.add(new NameImpl(GML.MeasureType)); profile.add(new NameImpl(GML.PointPropertyType)); profile.add(new NameImpl(GML.MultiPointPropertyType)); profile.add(new NameImpl(GML.LineStringPropertyType)); profile.add(new NameImpl(GML.MultiLineStringPropertyType)); profile.add(new NameImpl(GML.CurvePropertyType)); profile.add(new NameImpl(GML.MultiCurvePropertyType)); profile.add(new NameImpl(GML.SurfacePropertyType)); profile.add(new NameImpl(GML.MultiSurfacePropertyType)); profile.add(new NameImpl(GML.PolygonPropertyType)); profile.add(new NameImpl(GML.MultiPolygonPropertyType)); profile.add(new NameImpl(GML.GeometryPropertyType)); profile.add(new NameImpl(GML.MultiGeometryPropertyType)); return new ProfileImpl(this, profile); } }
profile.add(new NameImpl(XS.DECIMAL)); // BigDecimal.class profile.add(new NameImpl(XS.ANYURI)); // URI.class return new ProfileImpl(this, profile);
import jade.core.Runtime; import jade.core.Profile; import jade.core.ProfileImpl; ... Runtime myRuntime = Runtime.instance(); // prepare the settings for the platform that we're going to start Profile myProfile = new ProfileImpl(); // create the main container myContainer = myRuntime.createMainContainer(myProfile);
import jade.core.Runtime; import jade.core.Profile; import jade.core.ProfileImpl; ... Runtime myRuntime = Runtime.instance(); // prepare the settings for the platform that we're going to connect to Profile myProfile = new ProfileImpl(); myProfile.setParameter(Profile.MAIN_HOST, "myhost"); myProfile.setParameter(Profile.MAIN_PORT, "1099"); // create the agent container myContainer = myRuntime.createAgentContainer(myProfile);
public Schema profile(Set<Name> profile) { return new ProfileImpl(this, profile); } }
import jade.core.Runtime; import jade.core.Profile; import jade.core.ProfileImpl; ... Runtime myRuntime = Runtime.instance(); // prepare the settings for the platform that we're going to connect to Profile myProfile = new ProfileImpl(); myProfile.setParameter(Profile.MAIN_HOST, "myhost"); myProfile.setParameter(Profile.MAIN_PORT, "1099"); // create the agent container ContainerController myContainer = myRuntime.createAgentContainer(myProfile);
public Schema profile(Namespace profile) { return new ProfileImpl(this, profile); } }
Profile p = new ProfileImpl(); p.setParameter(Profile.FILE_DIR, Environment.getExternalStorageDirectory().getAbsolutePath()+"/jade/");
Properties containerProps = new jade.util.leap.Properties(); containerProps.setProperty(Profile.AGENTS, "annoyer:myTest.MyAgent"); Profile containerProfile = new ProfileImpl(containerProps); Runtime.instance().setCloseVM(false); Runtime.instance().createMainContainer(containerProfile);
jade.core.Runtime runtime = jade.core.Runtime.instance(); jade.wrapper.AgentContainer home = runtime.createAgentContainer(new ProfileImpl()); home.createNewAgent(getName(), Agent.class.getName(), args);
String host = "172.16.200.100"; // Platform IP int port = 1099; // default-port 1099 String MTP_hostIP = "172.16.200.100"; String MTP_Port = "7778"; Runtime runtime = Runtime.instance(); Profile profile = new ProfileImpl(host, port, null, true); profile.setParameter(Profile.MTPS, "jade.mtp.http.MessageTransportProtocol(http://"+MTP_hostIP+":"+MTP_Port+"/acc)"); // create container AgentContainer container = runtime.createMainContainer(profile); try { AgentController ac = container.createNewAgent("AgentSmith",AgentSmith.class.getName(),null); ac.start(); } catch (StaleProxyException e) { e.printStackTrace(); }
jade.core.Runtime runtime = jade.core.Runtime.instance(); Profile profile = new ProfileImpl(); // profile.setParameter( ... ); AgentContainer container = runtime.createMainContainer( profile ); Agent agent = new HelloAgent(); // agent.addBehaviour( ... ); AgentController ac = container.acceptNewAgent( "hello-agent", agent); ac.start();
Runtime rt = Runtime.instance(); rt.setCloseVM(true); AgentContainer mc = rt.createMainContainer(new ProfileImpl()); Profile p = new ProfileImpl(); p.setParameter("container-name", "Foo"); AgentContainer ac = rt.createAgentContainer(p);
Profile mainProfile = new ProfileImpl(true); AgentContainer mainContainer = runTime.createMainContainer(mainProfile); AgentController rma = mainContainer.createNewAgent("rma", "jade.tools.rma.rma", null); anotherProfile = new ProfileImpl(false); anotherContainer = runTime.createAgentContainer(anotherProfile); System.out.println("Starting up a BuyerAgent..."); Thread.sleep(900); anotherProfile = new ProfileImpl(false); anotherContainer = runTime.createAgentContainer(anotherProfile); System.out.println("Starting up a BuyerAgent..."); Thread.sleep(900); anotherProfile = new ProfileImpl(false); anotherContainer = runTime.createAgentContainer(anotherProfile); System.out.println("Starting up a ShipperAgent...");
/** * Profile of GMLSchema capturing a unique mapping of Java classes. * <p> * This profile mostly matches to JTS Geometry classes. * * @return Subset of GMLSchema capturing a unique mapping of Java classes */ public ProfileImpl profile() { Set<Name> profile = new LinkedHashSet<Name>(); profile.add(new NameImpl(GML.MeasureType)); profile.add(new NameImpl(GML.PointPropertyType)); profile.add(new NameImpl(GML.MultiPointPropertyType)); profile.add(new NameImpl(GML.LineStringPropertyType)); profile.add(new NameImpl(GML.MultiLineStringPropertyType)); profile.add(new NameImpl(GML.CurvePropertyType)); profile.add(new NameImpl(GML.MultiCurvePropertyType)); profile.add(new NameImpl(GML.SurfacePropertyType)); profile.add(new NameImpl(GML.MultiSurfacePropertyType)); profile.add(new NameImpl(GML.PolygonPropertyType)); profile.add(new NameImpl(GML.MultiPolygonPropertyType)); profile.add(new NameImpl(GML.GeometryPropertyType)); profile.add(new NameImpl(GML.MultiGeometryPropertyType)); return new ProfileImpl(this,profile); }