Show
Ignore:
Timestamp:
03/02/10 11:28:24 (2 years ago)
Author:
romain.reuillon
Message:

Netlogo task, debug grouping

Location:
trunk/openmole/plugins
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/openmole/plugins

    • Property svn:ignore set to
      .pom.xml.swp
  • trunk/openmole/plugins/org.openmole.plugin.specializedhellotask/src/main/java/org/openmole/plugin/specializedhellotask/SpecializedHelloTask.java

    r3058 r3138  
    66package org.openmole.plugin.specializedhellotask; 
    77 
     8import java.math.BigDecimal; 
     9import org.openmole.core.workflow.model.data.Data; 
     10import org.openmole.core.workflow.model.data.Prototype; 
    811import org.openmole.misc.exception.InternalProcessingError; 
    912import org.openmole.misc.exception.UserBadDataError; 
     
    1215import org.openmole.core.workflow.model.job.IContext; 
    1316import org.openmole.core.workflow.model.mole.execution.IExecutionContext; 
     17import org.openmole.core.workflow.model.task.annotations.Output; 
    1418 
    1519/** 
     
    1822 */ 
    1923public class SpecializedHelloTask extends HelloTask { 
     24 
     25    @Output 
     26    Data<BigDecimal> hello = new Data<BigDecimal>("hello", BigDecimal.class); 
    2027 
    2128    public SpecializedHelloTask(String name) throws UserBadDataError, InternalProcessingError { 
     
    2633    protected void process(IContext context, IExecutionContext executionContext, IProgress progress) throws UserBadDataError, InternalProcessingError, InterruptedException { 
    2734        super.process(context, executionContext, progress); 
     35 
    2836        System.out.println("Specialized"); 
     37 
     38        context.setValue(hello.getPrototype(), new BigDecimal(20.0)); 
    2939    } 
    3040     

logo cemagref

logo iscpif

logo lifegrid

logo region auvergne

logo patres project