public class CesiumGeneratorContext extends Object
CesiumSource instances to add
 CesiumGenerators to be written.| Modifier and Type | Field and Description | 
|---|---|
static String | 
Version
Gets the CZML version being written. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addAdditionalSource(CesiumSource source,
                   IServiceProvider serviceProvider)
Adds an additional  
CesiumSource required for a given service provider. | 
void | 
addChildGenerator(CesiumGenerator childGenerator)
Adds a Cesium generator for a property. 
 | 
CesiumGeneratorContext | 
constrain(TimeInterval interval)
Return a new instance that has  
RequestedInterval (get) intersected with the given interval. | 
CesiumGeneratorContext | 
getContext()  | 
boolean | 
getEnableAutomaticReferencing()
Gets a value indicating whether to enable automatic CZML reference creation for objects with the same definition. 
 | 
EvaluatorGroup | 
getEvaluatorGroup()
Gets the  
EvaluatorGroup to use when evaluating. | 
Integer | 
getMaximumDataPointsPerFragment()
Gets the maximum number of data points to write at a time. 
 | 
boolean | 
getPrettyFormatting()
Gets a value indicating whether the written data should be formatted for easy human readability. 
 | 
TimeInterval | 
getRequestedInterval()
Gets the requested interval for data. 
 | 
Duration | 
getStep()
Gets the smallest step that should be taken when sampling. 
 | 
void | 
raiseSamplingError(Object sender,
                  RuntimeException exception)
Called when an exception is encountered while sampling a property. 
 | 
@Nonnull public static final String Version
public final void addChildGenerator(CesiumGenerator childGenerator)
childGenerator - The generator responsible for generating the property.@Nonnull public final EvaluatorGroup getEvaluatorGroup()
EvaluatorGroup to use when evaluating.@Nonnull public final TimeInterval getRequestedInterval()
@Nonnull public final Duration getStep()
ICesiumFixedStepService.@Nullable public final Integer getMaximumDataPointsPerFragment()
public final boolean getPrettyFormatting()
false (the default), more compact CZML is generated.public final boolean getEnableAutomaticReferencing()
public final void raiseSamplingError(Object sender, RuntimeException exception)
sender - The instance which generated the exception.exception - The exception.@Nonnull public final CesiumGeneratorContext constrain(TimeInterval interval)
RequestedInterval (get) intersected with the given interval.interval - The interval to further constrain by.public final void addAdditionalSource(@Nonnull CesiumSource source, @Nonnull IServiceProvider serviceProvider)
CesiumSource required for a given service provider.
    This method may only be called while creating generators.source - The additional source required for the item.serviceProvider - The service provider that requires the additional source.IllegalStateException - This method was not called while creating generators.public final CesiumGeneratorContext getContext()