Skip to content

Commit

Permalink
Notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferdinando Villa committed Dec 7, 2024
1 parent 4053958 commit c0e478a
Showing 1 changed file with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.function.DoubleConsumer;
import java.util.function.IntConsumer;

import org.integratedmodelling.klab.api.geometry.Geometry;
import org.integratedmodelling.klab.api.knowledge.Artifact;
import org.integratedmodelling.klab.api.knowledge.Concept;
import org.integratedmodelling.klab.api.knowledge.observation.scale.Scale;
Expand Down Expand Up @@ -76,6 +77,20 @@ interface ObjectFiller {

interface ObjectBuilder {

/**
* @return
*/

ObjectBuilder name();

ObjectBuilder geometry(Geometry geometry);

/**
* To create object states or sub-objects, a new builder in the context of this one may be requested.
*
* @return
*/
Builder builder();
}

interface FillCurve extends PrimitiveIterator.OfLong {
Expand All @@ -85,12 +100,15 @@ interface FillCurve extends PrimitiveIterator.OfLong {
/**
* A builder is passed to a resource encoder and is used to define the result of a resource's
* contextualization.
* <p>
* TODO maybe would be better to have type-specific builders (or ALSO have them) and adapt
* the resource type to the builder requested in the encoder parameters.
*/
interface Builder {

/**
* The default fill curve for the state geometry under consideration. Normally the fastest
* possible. A different one can be constructed and passed to the fillers as required.
* The default fill curve for the state geometry under consideration. Normally the fastest possible. A
* different one can be constructed and passed to the fillers as required.
*
* @return
*/
Expand Down

0 comments on commit c0e478a

Please sign in to comment.