Examples of Context


Examples of org.nlogo.nvm.Context

  @Override
  public Object report(final Context context) throws LogoException {
    AgentSet sourceSet = argEvalAgentSet(context, 0);
    double winningValue = -Double.MAX_VALUE;
    Context freshContext = new Context(context, sourceSet);
    List<Agent> result = new ArrayList<Agent>();
    args[1].checkAgentSetClass(sourceSet, context);
    for (AgentSet.Iterator iter = sourceSet.iterator(); iter.hasNext();) {
      Agent tester = iter.next();
      Object value = freshContext.evaluateReporter(tester, args[1]);
      if (!(value instanceof Double)) {
        continue;
      }
      double dvalue = ((Double) value).doubleValue();
      if (dvalue >= winningValue) {
View Full Code Here

Examples of org.nutz.lang.util.Context

   * 保存对象到attribute
   */
  public static void putRequestAttribute(HttpServletRequest req, Object re){
    if (null != re){
      if(re instanceof Context){
        Context context = (Context) re;
        for(String key : context.keys()){
          req.setAttribute(key, context.get(key));
        }
      } else {
        req.setAttribute(ViewProcessor.DEFAULT_ATTRIBUTE, re);
      }
    }
View Full Code Here

Examples of org.ocpsoft.rewrite.context.Context

   @Override
   public Context getRewriteContext()
   {
      if (this.context == null)
      {
         Context context = (Context) request.getAttribute(RewriteLifecycleContext.LIFECYCLE_CONTEXT_KEY);
         if (context == null)
         {
            throw new RewriteException("RewriteContext was null. Something is seriously wrong, " +
                     "or you are attempting to access this event outside of the Rewrite lifecycle.");
         }
View Full Code Here

Examples of org.omg.CORBA.Context

                                 org.omg.CORBA.NamedValue ret,
                                 org.omg.CORBA.ExceptionList exList)
        throws Exception {
        Request request = null;
        ContextList ctxList = orb.create_context_list();
        Context ctx = orb.get_default_context();           

        org.omg.CORBA.Object targetObj =
            (org.omg.CORBA.Object)message.get(CorbaConstants.CORBA_ENDPOINT_OBJECT);
        if (targetObj != null) {
            request = targetObj._create_request(ctx, opName, nvlist, ret, exList, ctxList);
View Full Code Here

Examples of org.onebusaway.webapp.gwt.common.context.Context

      }
    });

    _dialog.show();

    Context context = new ContextImpl();

    if (!_stopsById.isEmpty()) {
      CoordinateBounds b = new CoordinateBounds();
      for (StopBean stop : _stopsById.values())
        b.addPoint(stop.getLat(), stop.getLon());
      b = SphericalGeometryLibrary.bounds(b, 100);
      context = stopFinder.getCoordinateBoundsAsContext(b);
      System.out.println("context=" + context);
    }

    final Context c = context;

    DeferredCommand.addCommand(new Command() {
      @Override
      public void execute() {
        stopFinder.onContextChanged(c);
View Full Code Here

Examples of org.openengsb.core.api.context.Context

        }
        return contexts.get(0).toContext();
    }

    private Context getContext(String path, boolean create) {
        Context c = getContext();
        if (c == null) {
            return null;
        }
        Context parent = null;
        for (String pathElem : new ContextPath(path).getElements()) {
            parent = c;
            c = c.getChild(pathElem);
            if (c == null) {
                if (!create) {
                    return null;
                }
                c = parent.createChild(pathElem);
            }
        }
        return c;
    }
View Full Code Here

Examples of org.openmim.infrastructure.Context

    private StatusRoomListenerExternalGUIImpl statusRoomListenerExternalGUI;
    private IMListenerImpl imListener;

    private Kernel(ConfigurationBean configurationBean) {
        statusRoomListenerExternalGUI = new StatusRoomListenerExternalGUIImpl();
        ctx=new Context(new MetaNetwork(), configurationBean, statusRoomListenerExternalGUI);
        ctx.getMetaNetwork().postLoad(imListener=new IMListenerImpl());
    }
View Full Code Here

Examples of org.openqa.selenium.remote.Context

  public void setSessionId(String sessionId) {
    this.sessionId = new SessionId(sessionId);
  }

  public void setContext(String context) {
    this.context = new Context(context);
  }
View Full Code Here

Examples of org.opensolaris.opengrok.search.context.Context

        if (!docs.isEmpty()) {
            sourceContext = null;
            summarizer = null;
            try {
                sourceContext = new Context(query, queryBuilder.getQueries());
                if (sourceContext.isEmpty()) {
                    sourceContext = null;
                }
                summarizer = new Summarizer(query, analyzer);
            } catch (Exception e) {
View Full Code Here

Examples of org.osoa.sca.annotations.Context

    public ContextProcessor() {
    }

    public void visitMethod(Method method, ComponentType type) throws ConfigurationLoadException {
        Context context = method.getAnnotation(Context.class);
        if (context == null) {
            return;
        }
        type.getExtensibilityElements().add(new ContextExtensibilityElement(method));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.