/** * Check if the value has the manual override attribute set * * @return <code>true</code> if the value is manually overridden, <code>false</code> otherwise */ public boolean isManual () { return isAttribute ( "manual", false ) || isAttribute ( "org.eclipse.scada.da.manual.active", false ); }
public boolean isBlocked () { return isAttribute ( "blocked", false ); }
/** * Check if the value has the manual override attribute set * * @return <code>true</code> if the value is manually overridden, <code>false</code> otherwise */ public boolean isManual () { return isAttribute ( "manual", false ) || isAttribute ( "org.eclipse.scada.da.manual.active", false ); }
public boolean isBlocked () { return isAttribute ( "blocked", false ); }
public boolean isAlarm () { return isAttribute ( "alarm", false ); }
public boolean isWarning () { return isAttribute ( "warning", false ); }
public boolean isWarning () { return isAttribute ( "warning", false ); }
public boolean isAlarm () { return isAttribute ( "alarm", false ); }
/** * Get the boolean value of the named attribute * * @param attributeName * the attribute name to check * @param defaultValue * the default value, if the attribute is not set * @return the attribute value or the default value it the attribute is not available */ public boolean isAttribute ( final String attributeName, final boolean defaultValue ) { final Boolean value = isAttribute ( attributeName ); if ( value != null ) { return value; } return defaultValue; }
/** * Get the boolean value of the named attribute * * @param attributeName * the attribute name to check * @param defaultValue * the default value, if the attribute is not set * @return the attribute value or the default value it the attribute is not available */ public boolean isAttribute ( final String attributeName, final boolean defaultValue ) { final Boolean value = isAttribute ( attributeName ); if ( value != null ) { return value; } return defaultValue; }
public boolean isAckRequired ( final String name ) { final DataItemValue div = getValue ( name ); if ( div == null ) { return false; } else { return div.isAttribute ( "ackRequired", false ); } }
public boolean isError () { if ( isConnected () ) { return isAttribute ( "error", false ); } return false; }
public boolean isError () { if ( isConnected () ) { return isAttribute ( "error", false ); } return false; }
public boolean isAckRequired ( final String name ) { final DataItemValue div = getValue ( name ); if ( div == null ) { return false; } else { return div.isAttribute ( "ackRequired", false ); } }
public boolean isAttribute ( final String attributeName, final boolean defaultValue ) { for ( final DataValue value : this.data.values () ) { if ( value == null || value.getValue () == null || value.isIgnoreSummary () ) { continue; } if ( value.getValue ().isAttribute ( attributeName, defaultValue ) ) { return true; } } for ( final SummaryInformation child : this.childData ) { if ( child.isAttribute ( attributeName, defaultValue ) ) { return true; } } return false; }