Examples of Stack


Examples of cn.wensiqun.asmsupport.utils.Stack

    public Method(MethodEntity me, IClassContext context, SuperMethodBody methodBody, int mode) {
        super();
        this.me = me;
        this.context = context;
        this.throwExceptions = new ThrowExceptionContainer();
        this.stack = new Stack();
        this.locals = new LocalVariables();
        this.mode = mode;

        CollectionUtils.addAll(throwExceptions, me.getExceptions());
       
View Full Code Here

Examples of com.amazonaws.services.cloudformation.model.Stack

      final CloudFormation formation = getCloudFormation(
          stackTemplateFile, stackParams);

      formation.logParamList();

      final Stack stack = formation.stackCreate();

      final StackStatus status = StackStatus.fromValue(stack
          .getStackStatus());

      switch (status) {
      case CREATE_COMPLETE:
        break;
      default:
        throw new IllegalStateException("stack create failed");
      }

      getLog().info("stack create stack=\n" + stack);

      getLog().info("stack create output:");

      final List<Output> outputList = stack.getOutputs();

      final Properties outputProps = new Properties();

      for (final Output output : outputList) {
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.ui.Stack

  public TableLayout getLayout (Table table) {
    return table.getTableLayout();
  }

  public Actor newStack () {
    return new Stack();
  }
View Full Code Here

Examples of com.sequenceiq.cloudbreak.domain.Stack

    @Override
    public void accept(Event<MetadataUpdateComplete> event) {
        MetadataUpdateComplete data = event.getData();
        Long stackId = data.getStackId();
        Set<CoreInstanceMetaData> coreInstanceMetaData = data.getCoreInstanceMetaData();
        Stack stack = stackRepository.findById(stackId);
        MDCBuilder.buildMdcContext(stack);
        LOGGER.info("Accepted {} event.", ReactorConfig.METADATA_UPDATE_COMPLETE_EVENT, stackId);
        ambariRoleAllocator.updateInstanceMetadata(stackId, coreInstanceMetaData);
    }
View Full Code Here

Examples of com.volantis.synergetics.cornerstone.stack.Stack

    }

    // Javadoc inherited.
    public DefinitionScope beginDefinitionScope(DefinitionType definitionType) {

        Stack scopeStack = (Stack) type2ScopeStack.get(definitionType);
        if (scopeStack == null) {
            scopeStack = new ArrayListStack();
            type2ScopeStack.put(definitionType, scopeStack);
        }
        DefinitionScope scope = new DefinitionScopeImpl(definitionType);
        scopeStack.push(scope);
        return scope;
    }
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.bootstrap.components.progress.Stack

        ProgressBar animated = new ProgressBar("animated", Model.of(45)).active(true);
        add(animated);

        ProgressBar labeledProgressBar = new ProgressBar("labeled");
        Stack labeledStack = new Stack(labeledProgressBar.getStackId(), Model.of(45)) {
            @Override
            protected IModel<String> createLabelModel() {
                return new AbstractReadOnlyModel<String>() {
                    @Override
                    public String getObject() {
                        return String.format("The progress is: %s%%", getModelObject());
                    }
                };
            }
        };
        labeledStack.labeled(true).type(ProgressBar.Type.SUCCESS);
        labeledProgressBar.addStacks(labeledStack);
        add(labeledProgressBar);


        ProgressBar stacked = new ProgressBar("stacked");
        add(stacked);
        Stack stackedStack1 = new Stack(stacked.getStackId(), Model.of(35)).type(ProgressBar.Type.SUCCESS);
        Stack stackedStack2 = new Stack(stacked.getStackId(), Model.of(20)).type(ProgressBar.Type.WARNING);
        Stack stackedStack3 = new Stack(stacked.getStackId(), Model.of(10)).type(ProgressBar.Type.DANGER);
        stacked.addStacks(stackedStack1, stackedStack2, stackedStack3);

        ProgressBar coloredInfo = new ProgressBar("coloredInfo", Model.of(20), ProgressBar.Type.INFO);
        add(coloredInfo);
View Full Code Here

Examples of edu.cmu.cs.stage3.alice.core.Stack

public abstract class StackNumberQuestion extends edu.cmu.cs.stage3.alice.core.question.NumberQuestion {
  public final StackProperty stack = new StackProperty( this, "stack", null );
  //protected abstract double getValue( Stack stack );
  protected abstract int getValue( Stack stack );
  public Object getValue() {
    Stack stackValue = stack.getStackValue();
    if( stackValue!=null ) {
            return new Integer( getValue( stackValue ) );
    } else {
      return null;
    }
View Full Code Here

Examples of java.util.Stack

        SAXParser parser = factory.newSAXParser();

        rootNode = helmaNode;
        currentNode = null;
        convertedNodes = new HashMap();
        nodeStack = new Stack();
        parsingHopObject = true;

        parser.parse(in, this);

        return rootNode;
View Full Code Here

Examples of java.util.Stack

   */
  public HashMap getQuryData(String target,String source)
  {
    HashMap hmap = new HashMap();

    Stack stack = getTableTrack(target, source);

    Set tableSet = new TreeSet();
   
    String pop1 = "";
    String pop2 = "";   
    pop1 = (String)stack.pop();
    tableSet.add(pop1);
    String searchClause = " ";
   
    while(!stack.empty())
    {
      pop2 = (String)stack.pop();     
      tableSet.add(pop1);
      tableSet.add(pop2);     
      Vector vec = (Vector) ((HashMap)this.get(pop2)).get(pop1);

      String clause = "";
View Full Code Here

Examples of java.util.Stack

   */
  private Stack getTableTrack(String target,String source )
  {
    String currEle = source;

    Stack current = new Stack();
    Stack track = new Stack();
    Stack found = new Stack();

    found.push(source);

    if (source.equals(target))
    {
      track.push(source);
      return track ;     
    }
   

    while(!found.empty() )
    {
      String popEle = (String)found.pop();
      String lastTrack ="";

      //1 st Step
      if (!track.empty() )
      {
        lastTrack = (String)track.pop();

        if (popEle.equals(lastTrack))  continue;
        else
        {
          currEle = popEle;
          found.push(currEle);
          track.push(lastTrack);
        }
      }
      // 2 nd Step
      HashMap currChild = (HashMap)get(currEle);
      Set set = currChild.keySet();
      current.addAll(set);
     
      //3 rd Step
      if (current.empty())
      {
        continue;
      }
      else
      {
        if (current.search(target) != -1)
        {
          track.push(currEle);
          track.push(target);         
          break;
        }
        else
        {
          while ( !current.empty())
          {
            found.push(current.pop());
            track.push(currEle);
          }
        }
      }
   
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.