public class PlusCFldToleranceUpdate extends MboValueAdapter
| Modifier and Type | Field and Description |
|---|---|
static int |
MAXFRACTION
The Constant MAXFRACTION.
|
static long |
NOVALIDATIONORACTION
The Constant NOVALIDATIONORACTION.
|
mboValueTYPE_DOMAIN, TYPE_FIELDCLASS, TYPE_KEY, TYPE_UNKNOWNALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER| Constructor and Description |
|---|
PlusCFldToleranceUpdate(MboValue mbv)
Instantiates a new plus c fld tolerance update.
|
| Modifier and Type | Method and Description |
|---|---|
void |
action()
Called if the data is valid, to perform some action
Does nothing
|
boolean |
action(boolean bFromValidate)
Action.
|
void |
checkInstrTypeSetPermissions(java.lang.String instrType,
MboRemote mboRemote)
Check if the Instr can be set as desired type values 1- function 2-
dynamic 3- calpoint.
|
boolean |
continueInstrTypeChange(MboRemote mboRemote)
Issue 08-17303.
|
protected boolean |
doCalculateAveragesAndStdDevs(MboRemote mboRemote,
java.lang.String fieldName)
Calculates averages and standard deviations for the given field in the
point's group.
|
java.lang.String |
formatDouble(java.lang.String value,
int minFraction,
boolean shouldRound)
Format double.
|
protected java.lang.String |
formatDoubleMax(java.lang.String value,
int maxFraction)
Format double max.
|
protected java.lang.String |
formatDoubleMinMax(java.lang.String value,
int minFraction,
int maxFraction)
Format double min max.
|
void |
formatTolerancesValues(MboRemote instr,
int minFraction)
Set Tolerances Values based on new input
Intrument's tolerances's values
Issue 07-23405.
|
java.util.HashMap |
getDSConfig()
Gets the configuration set for the current Data Sheet.
|
MboRemote |
getMyInstr(MboRemote mboRemote)
Returns the Asset function associated with the current MBO.
|
boolean |
hasCalPoints(MboRemote mboRemote)
Returns if the Instr has Cal Points.
|
boolean |
hasDynamicPoints(MboRemote mboRemote)
Returns if the Instr has Dynamic Points.
|
boolean |
hasFuncPoints(MboRemote mboRemote)
Returns if the Instr has Functional Points.
|
boolean |
hasPoints(MboRemote mboRemote)
Checks it there is entered calpoints for this asset funcion 1- function
2- dynamic 3- calpoint *.
|
void |
init()
Initizalize
Does nothing in this implementation.
|
boolean |
instrSetAsDynamic(MboRemote mboRemote)
Checks if the instr is set as Dynamic Dynamic Checks - Issue # 07-10302.
|
boolean |
instrSetAsFunctional(MboRemote mboRemote)
Checks if the instr is set as Functional Functional Checks - Issue
#06-18226.
|
boolean |
instrSetAsPoint(MboRemote mboRemote)
Checks if the instr is set as Point.
|
void |
setInstrType(MboRemote mboRemote,
boolean flag,
java.lang.String instrType)
Functional Checks - Issue #06-18226 Dynamic Checks - Issue # 07-10302 1-
function 2- dynamic 3- calpoint *.
|
void |
setSquaredFieldFlags(MboRemote mboRemote)
Issue 07-21305
Set field flags when squared is checked.
|
protected double |
strToDbl(java.lang.String a)
Str to dbl.
|
void |
validate()
Called to validate the data
Does nothing.
|
void |
validateSetPointAdj(MboRemote mboRemote)
Set Point Override for Dead Band Adjustments - Issue # 93937 SETPOINTADJ
becomes editable only if Discrete and for the Cal Points 2 or greater.
|
getAppLink, getIntegrationService, getList, getLookupName, getMatchingAttr, getMatchingAttr, getMboValue, getMboValue, getTranslator, getType, hasList, initValue, setType, setValueFromLookup, smartFill, smartFind, smartFindpublic static final long NOVALIDATIONORACTION
public static final int MAXFRACTION
public PlusCFldToleranceUpdate(MboValue mbv)
mbv - the mbvpublic void setSquaredFieldFlags(MboRemote mboRemote) throws java.rmi.RemoteException
mboRemote - the new squared field flagsjava.rmi.RemoteException - the remote exceptionpublic java.util.HashMap getDSConfig()
public void validate()
throws MXException,
java.rmi.RemoteException
MboValueAdaptervalidate in interface MboValueListenervalidate in class MboValueAdapterMXExceptionjava.rmi.RemoteExceptionpublic void checkInstrTypeSetPermissions(java.lang.String instrType,
MboRemote mboRemote)
throws java.rmi.RemoteException,
MXException
instrType - the instr typemboRemote - the mbo remotejava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionpublic boolean hasPoints(MboRemote mboRemote) throws java.rmi.RemoteException, MXException
mboRemote - the mbo remotejava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionpublic boolean hasFuncPoints(MboRemote mboRemote) throws java.rmi.RemoteException, MXException
mboRemote - the mbo remotejava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionpublic boolean hasCalPoints(MboRemote mboRemote) throws java.rmi.RemoteException, MXException
mboRemote - the mbo remotejava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionpublic boolean hasDynamicPoints(MboRemote mboRemote) throws java.rmi.RemoteException, MXException
mboRemote - the mbo remotejava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionpublic boolean instrSetAsFunctional(MboRemote mboRemote) throws java.rmi.RemoteException, MXException
mboRemote - the mbo remotejava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionpublic boolean instrSetAsDynamic(MboRemote mboRemote) throws java.rmi.RemoteException, MXException
mboRemote - the mbo remotejava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionpublic boolean instrSetAsPoint(MboRemote mboRemote) throws java.rmi.RemoteException, MXException
mboRemote - the mbo remotejava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionpublic void setInstrType(MboRemote mboRemote, boolean flag, java.lang.String instrType) throws java.rmi.RemoteException, MXException
mboRemote - the mbo remoteflag - the flaginstrType - the instr typejava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionpublic boolean continueInstrTypeChange(MboRemote mboRemote) throws java.rmi.RemoteException, MXException
mboRemote - the mbo remotejava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionpublic void action()
throws MXException,
java.rmi.RemoteException
MboValueAdapteraction in interface MboValueListeneraction in class MboValueAdapterMXExceptionjava.rmi.RemoteExceptionpublic void formatTolerancesValues(MboRemote instr, int minFraction) throws java.rmi.RemoteException, MXException
instr - the instrminFraction - the min fractionjava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionpublic boolean action(boolean bFromValidate)
throws MXException,
java.rmi.RemoteException
bFromValidate - the b from validateMXException - the mX exceptionjava.rmi.RemoteException - the remote exceptionprotected boolean doCalculateAveragesAndStdDevs(MboRemote mboRemote, java.lang.String fieldName) throws java.rmi.RemoteException, MXException, MXApplicationException
mboRemote - WO DS point that changedfieldName - name of the field that changedjava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionMXApplicationException - the mX application exceptionpublic MboRemote getMyInstr(MboRemote mboRemote) throws MXException, java.rmi.RemoteException
mboRemote - the current MBOMXException - the mX exceptionjava.rmi.RemoteException - the remote exceptionpublic java.lang.String formatDouble(java.lang.String value,
int minFraction,
boolean shouldRound)
throws MXException
value - the valueminFraction - the min fractionshouldRound - the should roundMXException - the mX exceptionprotected java.lang.String formatDoubleMax(java.lang.String value,
int maxFraction)
throws MXApplicationException
value - the valuemaxFraction - the max fractionMXApplicationException - the mX application exceptionprotected java.lang.String formatDoubleMinMax(java.lang.String value,
int minFraction,
int maxFraction)
value - the valueminFraction - the min fractionmaxFraction - the max fractionprotected double strToDbl(java.lang.String a)
throws MXApplicationException
a - the aMXApplicationException - the mX application exceptionpublic void init()
throws MXException,
java.rmi.RemoteException
MboValueAdapterinit in interface MboValueListenerinit in class MboValueAdapterMXExceptionjava.rmi.RemoteExceptionpublic void validateSetPointAdj(MboRemote mboRemote) throws java.rmi.RemoteException, MXException
mboRemote - the mbo remotejava.rmi.RemoteException - the remote exceptionMXException - the mX exception