public class PreparedScriptHelper
extends java.lang.Object
| Constructor and Description |
|---|
PreparedScriptHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <T> LinearSegment |
getSegment(PreparedScript<T> script,
MboRemote asset,
java.lang.Double woStartMeasure,
java.lang.Double woEndMeasure,
java.lang.String unitMeasure) |
static <T> java.util.List<LinearSegment> |
getSegments(PreparedScript<T> script,
MboRemote asset,
java.lang.Double woStartMeasure,
java.lang.Double woEndMeasure,
java.lang.String unitMeasure)
Get LinearSegments for a linear asset
|
static <T> java.lang.String |
verifySegmentAttributesAreUnique(PreparedScript<T> script,
MboRemote asset,
java.lang.Double woStartMeasure,
java.lang.Double woEndMeasure)
Check that the attributes have only 1 value for the work length.
|
public static <T> java.lang.String verifySegmentAttributesAreUnique(PreparedScript<T> script, MboRemote asset, java.lang.Double woStartMeasure, java.lang.Double woEndMeasure) throws java.rmi.RemoteException, MXException
asset - attributes - MXExceptionjava.rmi.RemoteExceptionpublic static <T> LinearSegment getSegment(PreparedScript<T> script, MboRemote asset, java.lang.Double woStartMeasure, java.lang.Double woEndMeasure, java.lang.String unitMeasure) throws java.rmi.RemoteException, MXException
script - asset - java.rmi.RemoteExceptionMXExceptionPreparedScriptHelper#getSegments(PreparedScript, MboRemote, Double, Double)public static <T> java.util.List<LinearSegment> getSegments(PreparedScript<T> script, MboRemote asset, java.lang.Double woStartMeasure, java.lang.Double woEndMeasure, java.lang.String unitMeasure) throws java.rmi.RemoteException, MXException
script - The script that list the attributes / functions used by the expressionasset - The linear asset which hold the linear attributeswoStartMeasure - the start measure of the WO (multiassetlocci start or simulation start) in which the calculation must be performed. if null the linear segments will be return as a segment (0-1)woEndMeasure - the end measure of the WO (multiassetlocci end or simulation end) in which the calculation must be performed. if null the linear segments will be return as a segment (0-1)java.rmi.RemoteExceptionMXException