Examples of Goal


Examples of it.eng.spagobi.kpi.goal.metadata.bo.Goal

    GoalKpi g = new GoalKpi(hibernateGoalKpi.getKpiInstanceId(), hibernateGoalKpi.getWeight1(), hibernateGoalKpi.getWeight2(), hibernateGoalKpi.getThreshold1(), hibernateGoalKpi.getThreshold2(), hibernateGoalKpi.getThreshold1sign(), hibernateGoalKpi.getThreshold2sign(), hibernateGoalKpi.getGoalKpiId(),  hibernateGoalKpi.getSbiGoalHierarchy().getGoalHierarchyId());
    return g;
  }
 
  public Goal toGoal(SbiGoal hibernateGoal) {
    Goal g = new Goal(hibernateGoal.getGoalId(), hibernateGoal.getStartDate(), hibernateGoal.getEndDate(), hibernateGoal.getName(), hibernateGoal.getLabel(), hibernateGoal.getDescription(), hibernateGoal.getGrantId());
    return g;
  }
View Full Code Here

Examples of javax.constraints.impl.search.goal.Goal

    com.exigen.ie.constrainer.Goal goal2 = (com.exigen.ie.constrainer.Goal)g2.getImpl();
    if (goal2 == null)
      throw new RuntimeException("Goal "+g2.getName() + " cannot be used inside solver.or()");
    com.exigen.ie.constrainer.Goal orGoal = new com.exigen.ie.constrainer.GoalOr(goal1,goal2);
    orGoal.name(name);
    Goal goal = new javax.constraints.impl.search.ConstrainerGoal(this,orGoal);
    goal.setName(name);
    return goal;
  }
View Full Code Here

Examples of net.itscrafted.entity.Goal

    // set up factories
    EnemyFactory.init(pushBalls, player);
    ParticleFactory.init(particles);
   
    // set up goal
    goal = new Goal();
    LevelData.setGoal(goal);
   
    // use custom cursor
    Game.setCursor(Game.INVISIBLE);
    cursor = new Cursor();
View Full Code Here

Examples of org.apache.maven.werkz.Goal

            {
                String goalName = (String) i.next();
                log.debug( "attaining goal " + goalName );
                try
                {
                    Goal goal = werkzProject.getGoal( goalName );
                    if ( goal == null || goal.getAction() == null )
                    {
                        throw new NoSuchGoalException( goalName );
                    }
                    goal.attain( session );
                }
                catch ( NoSuchGoalException e )
                {
                    throw new UnknownGoalException( goalName );
                }
View Full Code Here

Examples of org.apache.maven.werkz.Goal

     * @throws JellyTagException If an error occurs while executing the tag.
     */
    public void doTag( XMLOutput output )
        throws JellyTagException
    {
        Goal goal = getProject().getGoal( getName() );

        if ( goal == null || goal.getAction() == null )
        {
            super.doTag( output );
            goal = getProject().getGoal( getName() );
            JellyScriptHousing currentHousing = (JellyScriptHousing) getContext()
                .getVariable( PluginManager.PLUGIN_HOUSING );
            goal.setAction( new MavenGoalAction( currentHousing ) );
        }
    }
View Full Code Here

Examples of org.apache.maven.werkz.Goal

            defaultGoalName = mapper.defaultGoalName;
        }

        for ( Iterator i = mapper.goalProject.getGoals().iterator(); i.hasNext(); )
        {
            Goal goal = (Goal) i.next();
            Goal existingGoal = goalProject.getGoal( goal.getName() );
            if ( existingGoal == null )
            {
                goalProject.addGoal( goal );
            }
            else
            {
                for ( Iterator j = goal.getPrecursors().iterator(); j.hasNext(); )
                {
                    existingGoal.addPrecursor( (Goal) j.next() );
                }
                for ( Iterator j = goal.getPostcursors().iterator(); j.hasNext(); )
                {
                    existingGoal.addPostcursor( (Goal) j.next() );
                }
            }
        }
        resolvedPlugins.addAll( mapper.resolvedPlugins );
    }
View Full Code Here

Examples of org.apache.maven.werkz.Goal

        Goal[] chain = getExecutionChain( goal, goalProject );
        log.debug( "execution chain: " + Arrays.asList( chain ).toString() );

        for ( int i = 0; i < chain.length; i++ )
        {
            Goal g = chain[i];
            Object plugin = goalPluginMap.get( g.getName() );
            if ( plugin == null )
            {
                throw new NoSuchGoalException( g.getName() );
            }
            pluginSet.add( plugin );
            Collection decorators = getPostGoalDecorators( g.getName() );
            if ( log.isDebugEnabled() && !decorators.isEmpty() )
            {
                log.debug( "goal " + g.getName() + " has postGoal decorators " + decorators );
            }
            pluginSet.addAll( decorators );
            decorators = getPreGoalDecorators( g.getName() );
            if ( log.isDebugEnabled() && !decorators.isEmpty() )
            {
                log.debug( "goal " + g.getName() + " has preGoal decorators " + decorators );
            }
            pluginSet.addAll( decorators );
        }

        // Done like this as the dynatag plugin dependencies must be first in the list
View Full Code Here

Examples of org.apache.maven.werkz.Goal

     * @todo [1.0] use werkz beta-11 version instead
     */
    public Goal[] getExecutionChain( String name, WerkzProject project )
        throws NoSuchGoalException
    {
        Goal goal = project.getGoal( name );

        LinkedList chain = new LinkedList();
        LinkedList stack = new LinkedList();

        stack.addLast( goal );

        while ( !stack.isEmpty() )
        {
            goal = (Goal) stack.removeFirst();

            if ( goal == null || chain.contains( goal ) )
            {
                continue;
            }

            chain.addFirst( goal );

            List precursors = goal.getPrecursors();

            for ( Iterator i = precursors.iterator(); i.hasNext(); )
            {
                Goal eachPrecursor = (Goal) i.next();

                if ( !chain.contains( eachPrecursor ) )
                {
                    stack.addLast( eachPrecursor );
                }
View Full Code Here

Examples of org.apache.maven.werkz.Goal

    public void addGoal( String name, String prereqs, String description, JellyScriptHousing jellyScriptHousing )
    {
        // We load plugins in order of priority, so don't add goals that already exist.
        if ( !goalPluginMap.containsKey( name ) )
        {
            Goal goal = goalProject.getGoal( name, true );

            goal.setDescription( description );

            goalProject.addGoal( goal );

            // Add to the goal -> plugin map.
            goalPluginMap.put( name, jellyScriptHousing );

            if ( prereqs != null )
            {
                String[] s = StringUtils.split( prereqs, "," );

                for ( int i = 0; i < s.length; i++ )
                {
                    try
                    {
                        Goal prereq = goalProject.getGoal( s[i].trim(), true );
                        goal.addPrecursor( prereq );
                    }
                    catch ( CyclicGoalChainException e )
                    {
                        // do nothing.
View Full Code Here

Examples of org.apache.maven.werkz.Goal

        return goalPluginMap.keySet();
    }

    String getGoalDescription( String goalName )
    {
        Goal goal = goalProject.getGoal( goalName );
        String goalDescription = ( goal != null ? goal.getDescription() : null );
        if ( goalDescription != null )
        {
            goalDescription = goalDescription.trim();
            if ( "null".equals( goalDescription ) )
            {
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.