User Tools

Site Tools


tutorials:interfaces:tour

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:interfaces:tour [2025/06/04 14:28] – [Headless] tim2tutorials:interfaces:tour [2025/06/04 15:03] (current) – [Minimal required preparations] tim2
Line 99: Line 99:
 </code> </code>
  
 +
 +{{ :tutorials:interfaces:cut.gsz |}}
 ===== Headless ===== ===== Headless =====
  
Line 178: Line 180:
 And to make the csv a bit clearer: And to make the csv a bit clearer:
  
-protected void init () +<code java> 
-+protected void init ()[ 
- Axiom ==> A(1); + Axiom ==> A(1); 
- {time=0; + {time=0; 
- dataset("data").clear(); + dataset("data").clear(); 
- dataset("data").addRow() + dataset("data").addRow() 
- .setText(0,"time"+  .setText(0,"time"
- .setText(2,"sumFlength"+  .setText(2,"sumFlength"
- .setText(3,"meanFlength"+  .setText(3,"meanFlength"
- .setText(4,"countLeaf"+  .setText(4,"countLeaf"
- .setText(5,"sumLeafgetArea"+  .setText(5,"sumLeafgetArea"
- .setText(6,"meanLeaf getArea"); +  .setText(6,"meanLeaf getArea"); 
- + 
 +
 +</code> 
 + 
 +{{ :tutorials:interfaces:cut_headless.gsz |}}
  
-+This setup would now allow us to integrate the model into pipelines, e.g. an R script:
-]This setup would now allow us to integrate the model into pipelines, e.g. an R script:+
 <code r> <code r>
 splitPoint <-5 splitPoint <-5
Line 219: Line 224:
 To do so we test if we have an HTTPResponse object, this object is created when the model is opened through the server and holds the request from the client and the ability to respond.  To do so we test if we have an HTTPResponse object, this object is created when the model is opened through the server and holds the request from the client and the ability to respond. 
  
-<code >+<code java>
 protected void startup(){ protected void startup(){
  super.startup();  super.startup();
Line 345: Line 350:
  
  
- +{{ :tutorials:interfaces:lazy_http_cut.gsz |}}
-{{ :tutorials:interfaces:cut_grow.gsz |}}+
 ===== API ===== ===== API =====
  
tutorials/interfaces/tour.1749040104.txt.gz · Last modified: 2025/06/04 14:28 by tim2