code
stringlengths
10
174k
nl
stringlengths
3
129k
public KeyStroke(Character character,boolean ctrlDown,boolean altDown){ this(KeyType.Character,character,ctrlDown,altDown,false); }
Constructs a KeyStroke based on a supplied character, keyType is implicitly KeyType.Character. <p> A character-based KeyStroke does not support the shiftDown flag, as the shift state has already been accounted for in the character itself, depending on user's keyboard layout.
public Element parseXML(InputStream input) throws Exception { Document document=getParser().parse(input); return document.getDocumentElement(); }
Parse the input XML stream into a DOM.
public strong addElement(String hashcode,String element){ addElementToRegistry(hashcode,element); return (this); }
Adds an Element to the element.
public String nextToken() throws JSONException { char c; char q; StringBuffer sb=new StringBuffer(); do { c=next(); } while (Character.isWhitespace(c)); if (c == '"' || c == '\'') { q=c; for (; ; ) { c=next(); if (c < ' ') { throw syntaxError("Unterminated string."); }...
Get the next token or string. This is used in parsing HTTP headers.
private KNNHeap linearScan(Relation<? extends O> relation,DBIDIter iter,final O obj,KNNHeap heap){ double max=Double.POSITIVE_INFINITY; while (iter.valid()) { final double dist=SQUARED.distance(obj,relation.get(iter)); if (dist <= max) { max=heap.insert(dist,iter); } iter.advance(); } retu...
Main loop of the linear scan.
@Override protected boolean isBalanced(){ return totalLength >= minLengthByDepth[treeDepth]; }
Determines if the tree is balanced according to BAP95, which means the tree is flat-enough with respect to the bounds. Note that this definition of balanced is one where sub-trees of balanced trees are not necessarily balanced.
public <T extends DataObject>T findById(URI id){ if (id == null) { throw DatabaseException.fatals.nullIdProvided(); } Class<T> modelClass=getModelClass(id); if (modelClass != null) { return of(modelClass).findById(id); } else { return null; } }
Finds an object by ID.
public void createAsyncScenario04() throws Exception { freePeriodBasicScenario("test_04","Test02Customer","test04CustomerOrg",7,TestPriceModel.EXAMPLE_RATA_WEEK_PARAM,false,false,null); }
See testcase #4, PR price model in AsyncCombinations.docx
private void returnData(Object ret){ if (myHost != null) { myHost.returnData(ret); } }
Used to communicate a return object from a plugin tool to the main Whitebox user-interface.
public String apply(MediaElement shaper) throws RoomException { return apply(shaper,null); }
Changes the media passing through a chain of media elements by applying the specified element/shaper. The element is plugged into the stream only if the chain has been initialized (a.k.a. media streaming has started), otherwise it is left ready for when the connections between elements will materialize and the streamin...
public Iterator(String s){ desc=s; index=curPos=0; param=false; }
Constructs an iterator.
public void send(Message message){ Transport smtp=null; try { smtp=_session.getTransport("smtp"); smtp.connect(); smtp.send(message,_to); log.fine(this + " sent mail to " + _to[0]); } catch ( RuntimeException e) { throw e; } catch ( Exception e) { throw new RuntimeException(e); } f...
Sends to a mailbox
public <V>HashMap<String,V> newStringMap(){ return dbSettings.databaseToUpper ? new HashMap<String,V>() : new CaseInsensitiveMap<V>(); }
Create a new hash map. Depending on the configuration, the key is case sensitive or case insensitive.
public static void send(InternalDistributedMember recipient,int processorId,DM dm,int size){ Assert.assertTrue(recipient != null,"SizeReplyMessage NULL reply message"); SizeReplyMessage m=new SizeReplyMessage(processorId,size); m.setRecipient(recipient); dm.putOutgoing(m); }
Send an ack
public boolean compete(NamespaceSpecification other){ if ("".equals(other.wildcard)) { return covers(other.ns); } String[] otherParts=split(other.ns,other.wildcard); if (otherParts.length == 1) { return covers(other.ns); } if ("".equals(wildcard)) { return other.covers(ns); } String[] parts=...
Check if this namespace specification competes with another namespace specification.
public void addFirst(RTLStatement statement){ if (statement != null) { sequence.addFirst(statement); } }
Inserts a statement before the start of this sequence when it is not null, otherwise does nothing.
@Override public BufferedImage JPEG2000ToRGBImage(final byte[] data,int w,int h,final int pX,final int pY,final int d) throws PdfException { byte[] index=this.getIndexedMap(); if (cs.getNumComponents() == 3 || index != null) { return super.JPEG2000ToRGBImage(data,w,h,pX,pY,d); } else { return JPEG2000ToI...
convert byte[] datastream JPEG to an image in RGB
private void showFeedback(String message){ if (myHost != null) { myHost.showFeedback(message); } else { System.out.println(message); } }
Used to communicate feedback pop-up messages between a plugin tool and the main Whitebox user-interface.
@Override public void apply(Example e){ if (this.applicable(e)) { if (rejectionSampling) { coveredWeight++; if ((int)e.getLabel() == this.prediction) { positiveWeight++; } } else { coveredWeight+=e.getWeight(); if ((int)e.getLabel() == this.prediction) { positive...
Applies the rule to the given examples.
private CellIdentityLte(Parcel in){ mMcc=in.readInt(); mMnc=in.readInt(); mCi=in.readInt(); mPci=in.readInt(); mTac=in.readInt(); if (DBG) log("CellIdentityLte(Parcel): " + toString()); }
Construct from Parcel, type has already been processed
public void testConstructorSetsPropertyDefaults() throws Exception { assertEquals(configuration.getPropertyValue(WebLogicPropertySet.ADMIN_USER),"weblogic"); assertEquals(configuration.getPropertyValue(WebLogicPropertySet.ADMIN_PWD),"weblogic"); assertEquals(configuration.getPropertyValue(WebLogicPropertySet.SERV...
Test default values.
public CActionSelectSameParentFunction(final ZyGraph graph,final INaviFunction function){ super("Select nodes from the same function"); m_graph=Preconditions.checkNotNull(graph,"IE00936: Graph argument can't be null"); m_function=Preconditions.checkNotNull(function,"IE00937: Function argument can't be null"); }
Creates a new action object.
protected static Map<String,String> convertHeaders(Header[] headers){ Map<String,String> result=new TreeMap<String,String>(String.CASE_INSENSITIVE_ORDER); for (int i=0; i < headers.length; i++) { result.put(headers[i].getName(),headers[i].getValue()); } return result; }
Converts Headers[] to Map<String, String>.
public static void forceDelete(File file) throws IOException { if (file.isDirectory()) { deleteDirectory(file); } else { boolean filePresent=file.exists(); if (!file.delete()) { if (!filePresent) { throw new FileNotFoundException("File does not exist: " + file); } String messa...
Deletes a file. If file is a directory, delete it and all sub-directories. <p> The difference between File.delete() and this method are: <ul> <li>A directory to be deleted does not have to be empty.</li> <li>You get exceptions when a file or directory cannot be deleted. (java.io.File methods returns a boolean)</li> </u...
static BufferedImage gaussianBlur(BufferedImage src,BufferedImage dst,int radius){ int width=src.getWidth(); int height=src.getHeight(); if (dst == null || dst.getWidth() != width || dst.getHeight() != height || src.getType() != dst.getType()) { dst=createColorModelCompatibleImage(src); } float[] kernel=c...
Apply Gaussian Blur to Image
private void close0() throws IOException { if (LOG.isDebugEnabled()) LOG.debug("File system closed [uri=" + uri + ", endpoint="+ uriAuthority+ ']'); if (rmtClient == null) return; super.close(); rmtClient.close(false); if (clientLog.isLogEnabled()) clientLog.close(); if (factory != null) factory.sto...
Closes file system.
public static char[] toCharArray(Reader input) throws IOException { CharArrayWriter sw=new CharArrayWriter(); copy(input,sw); return sw.toCharArray(); }
Get the contents of a <code>Reader</code> as a character array. <p> This method buffers the input internally, so there is no need to use a <code>BufferedReader</code>.
public static Number findMaximumStackedRangeValue(CategoryDataset dataset){ ParamChecks.nullNotPermitted(dataset,"dataset"); Number result=null; boolean hasValidData=false; double maximum=0.0; int categoryCount=dataset.getColumnCount(); for (int item=0; item < categoryCount; item++) { double total=0.0; ...
Returns the maximum value in the dataset range, assuming that values in each category are "stacked".
@Override public boolean isCritical(){ return false; }
Return if this thought must run even under stress.
private void handleMultiChoiceEvents(final Event event){ switch (event.type) { case SWT.Dispose: if (this.popup != null && !this.popup.isDisposed()) { this.popup.dispose(); } final Shell shell=getShell(); shell.removeListener(SWT.Deactivate,this.listener); final Display display=getDisplay(); display.rem...
Handle a multichoice event
@SuppressWarnings("unchecked") public static <K,V>ImmutableSetMultimap<K,V> of(){ return (ImmutableSetMultimap<K,V>)EmptyImmutableSetMultimap.INSTANCE; }
Returns the empty multimap.
private void addChildView(View viewToAdd){ addView(viewToAdd,CONTENT_INDEX,new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.WRAP_CONTENT,mGravity)); }
Adds a View to this layout, before the InfoBar separator.
protected static OPTICSXi.SteepAreaResult findSteepAreaResult(ClusterOrder co){ for (Hierarchy.Iter<Result> r=co.getHierarchy().iterChildren(co); r.valid(); r.advance()) { if (OPTICSXi.SteepAreaResult.class.isInstance(r.get())) { return (OPTICSXi.SteepAreaResult)r.get(); } } return null; }
Find the OPTICS clustering child of a cluster order.
public Constraints(Anchor anchor,@NonNls String relativeToActionId){ myAnchor=anchor; myRelativeToActionId=relativeToActionId; }
Creates a new constraints instance with the specified anchor type and id of the relative action.
private void fireActionPerformed(){ ActionEvent e=null; ActionListener[] listeners=listenerList.getListeners(ActionListener.class); for (int i=0; i < listeners.length; i++) { if (e == null) e=new ActionEvent(this,ActionEvent.ACTION_PERFORMED,"actionPerformed"); listeners[i].actionPerformed(e); } }
Fire Action Performed
public _QueryOptions(final String[] flagStrings){ super(flagStrings); }
Constructs a _QueryOptions with the given flags initially set.
public boolean isSet(_Fields field){ if (field == null) { throw new IllegalArgumentException(); } switch (field) { case VALUE: return isSetValue(); case VERSION: return isSetVersion(); } throw new IllegalStateException(); }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
public void destroy() throws Exception { }
Called on undeploy
@Override public Action execute(Percept percept){ kb.makePerceptSentence((AgentPercept)percept,t); kb.tellTemporalPhysicsSentences(t); AgentPosition current=kb.askCurrentPosition(t); Set<Room> safe=kb.askSafeRooms(t); if (kb.askGlitter(t)) { Set<Room> goals=new LinkedHashSet<Room>(); goals.add(new Roo...
function HYBRID-WUMPUS-AGENT(percept) returns an action<br>
protected void pushGlobalVars(int contextNode) throws TransformerException { XPathContext xctxt=m_xcontext; VariableStack vs=xctxt.getVarStack(); StylesheetRoot sr=getStylesheet(); Vector vars=sr.getVariablesAndParamsComposed(); int i=vars.size(); vs.link(i); while (--i >= 0) { ElemVariable v=(ElemVar...
Internal -- push the global variables from the Stylesheet onto the context's runtime variable stack. <p>If we encounter a variable that is already defined in the variable stack, we ignore it. This is because the second variable definition will be at a lower import precedence. Presumably, global"variables at the same ...
private void outputFullLines() throws IOException { for (; ; ) { int leftLen=leftBuf.indexOf("\n"); if (leftLen < 0) { return; } int rightLen=rightBuf.indexOf("\n"); if (rightLen < 0) { return; } if (leftLen != 0) { out.write(leftBuf.substring(0,leftLen)); } if (r...
Outputs to the final destination as many full line pairs as there are in the pending output, removing those lines from their respective buffers. This method terminates when at least one of the two column buffers is empty.
public int size(){ return mostUsedValues.size(); }
Returns the number of cached attributes.
public static Scale quartiles(){ return scale(4); }
Specifies the computation of quartiles (i.e. 4-quantiles).
public void stopListening(ListenKey listener) throws IOException { if (!(listener instanceof SocketListenKey)) { throw new IllegalArgumentException("Invalid listener"); } synchronized (listener) { ServerSocket ss=((SocketListenKey)listener).socket(); if (ss.isClosed()) { throw new IllegalArgumentE...
Stop the listener
private boolean toNextState(LifecycleState newState){ LifecycleState state; synchronized (this) { state=_state; if (newState.ordinal() <= state.ordinal()) { return false; } _state=newState; _lastChangeTime=CurrentTime.currentTime(); } if (_log != null && _log.isLoggable(_lowLevel)) { ...
Changes to the next state.
protected int lengthOfByteStream(AbstractMRMessage m){ return 5; }
Determine how much many bytes the entire message will take, including space for header and trailer
public synchronized V remove(Object key){ int hash=getHash(key); return getSegment(hash).remove(key,hash); }
Remove an entry. Both resident and non-resident entries can be removed.
@Override public synchronized Object[] toArray(){ Object[] result=new Object[elementCount]; System.arraycopy(elementData,0,result,0,elementCount); return result; }
Returns a new array containing all elements contained in this vector.
public RichDocumentUndoManager(IRichDocument document){ super(); Assert.isNotNull(document); fDocument=document; fHistory=OperationHistoryFactory.getOperationHistory(); fUndoContext=new ObjectUndoContext(fDocument); fConnected=new ArrayList<Object>(); fDocumentUndoListeners=new ListenerList(); }
Create a DocumentUndoManager for the given document.
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case N4JSPackage.EXPORT_DECLARATION__EXPORTED_ELEMENT: return getExportedElement(); case N4JSPackage.EXPORT_DECLARATION__DEFAULT_EXPORTED_EXPRESSION: return getDefaultExportedExpression(); case N4JSPackage.EXPORT_DE...
<!-- begin-user-doc --> <!-- end-user-doc -->
private static int compositeReferenceSize(int flags){ int result=6; if ((flags & CompositeGlyph.FLAG_ARG_1_AND_2_ARE_WORDS) != 0) { result+=2; } if ((flags & CompositeGlyph.FLAG_WE_HAVE_A_SCALE) != 0) { result+=2; } else if ((flags & CompositeGlyph.FLAG_WE_HAVE_AN_X_AND_Y_SCALE) != 0) { result+...
Compute the size, in bytes, of a single composite reference.
public CActionSortModulesByName(final CModuleContainerNode node){ super("By Name"); m_node=node; }
Creates a new action object.
public String centerDataTipText(){ return "Center (rather than standardize) the data. PCA will " + "be computed from the covariance (rather than correlation) " + "matrix"; }
Returns the tip text for this property
@Override public boolean eIsSet(int featureID){ switch (featureID) { case N4JSPackage.CASE_CLAUSE__EXPRESSION: return expression != null; } return super.eIsSet(featureID); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public Rect(ReadonlyVec2D p1,ReadonlyVec2D p2){ Vec2D tl=Vec2D.min(p1,p2); Vec2D br=Vec2D.max(p1,p2); x=tl.x; y=tl.y; width=br.x - x; height=br.y - y; }
Constructs a new rectangle defined by the two points given.
public ResourceTraversal(IResource[] resources,int depth,int flags){ if (resources == null) throw new NullPointerException(); this.resources=resources; this.depth=depth; this.flags=flags; }
Creates a new resource traversal.
@Inline @Override public final void extentWrite(ObjectReference ref,Extent target,Word offset,Word location,int mode){ Magic.setExtentAtOffset(ref.toObject(),offset.toOffset(),target,location.toInt()); }
Perform the actual write of the write barrier, writing the value as a raw Extent.
private void onShutdown(){ if (autoSaveEnabled) { try { Files.deleteIfExists(autoSavedProcessPropertiesPath); Files.deleteIfExists(autoSavedProcessPath); } catch ( IOException e) { LogService.getRoot().log(Level.INFO,"com.rapidminer.gui.autosave.AutoSave.deletion_failed",e); } } }
Indicate a graceful shutdown where deletes the auto save because it is not needed.
@Override public BreakCondition onClockTick() throws EmulationException { if (context.cycleIncrement > 1) { context.cycleIncrement--; return null; } try { statement.reset(); ((FrStatement)statement).getNextStatement(platform.memory,platform.cpuState.pc); statement.setInstruction(FrInstructionS...
Perform one emulation step
protected boolean afterDelete(boolean success){ if (!success) return success; if (getS_ResourceAssignment_ID() != 0) { MResourceAssignment ra=new MResourceAssignment(getCtx(),getS_ResourceAssignment_ID(),get_TrxName()); ra.delete(true); } return updateHeaderTax(); }
After Delete
@EventHandler(ignoreCancelled=true) public void onEntityDamageByEntity(EntityDamageByEntityEvent event){ if (event.getDamager() instanceof Player && !canInteract((Player)event.getDamager())) { event.setCancelled(true); } }
Prevents a player that can't interact from taking void damage.
public ResolvedFunction(final MemoryModule memoryModule,final Address address){ assert address != null; assert memoryModule != null; this.address=address; this.function=null; this.memoryModule=memoryModule; }
Creates a new function object if the memory module and the function address could be resolved.
public TLongObjectHashMap(int initialCapacity,float loadFactor,TLongHashingStrategy strategy){ super(initialCapacity,loadFactor); _hashingStrategy=strategy; }
Creates a new <code>TLongObjectHashMap</code> instance with a prime value at or near the specified capacity and load factor.
protected EventSpecImpl(){ super(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public void addAll(final List<T> values){ checkWidget(); if (values == null) { SWT.error(SWT.ERROR_NULL_ARGUMENT); } if (this.elements == null) { this.elements=new ArrayList<T>(); } this.elements.addAll(values); refresh(); }
Adds the argument to the end of the receiver's list.
public void deleteExport(String id) throws IsilonException { delete(_baseUrl.resolve(URI_NFS_EXPORTS),id,"export"); }
Delete export
public int readPid(final long timeout,final TimeUnit unit) throws IOException, InterruptedException, TimeoutException { IllegalArgumentException iae=null; IOException ioe=null; int pid=0; final long timeoutMillis=unit.toMillis(timeout); final StopWatch stopWatch=new StopWatch(true); while (pid <= 0) { t...
Reads in the pid from the specified file, retrying until the specified timeout.
public void computeVertexSnaps(Collection edges){ for (Iterator i0=edges.iterator(); i0.hasNext(); ) { NodedSegmentString edge0=(NodedSegmentString)i0.next(); for (Iterator i1=edges.iterator(); i1.hasNext(); ) { NodedSegmentString edge1=(NodedSegmentString)i1.next(); computeVertexSnaps(edge0,edge1...
Computes nodes introduced as a result of snapping segments to vertices of other segments
boolean isDecoderSelected(){ return !dTree.isSelectionEmpty(); }
Has the user selected a decoder type, either manually or via a successful event?
public InputVariables(List<VariableData> inputVariables,Project project,LocalSearchScope scope){ myProject=project; myScope=scope; myInputVariables=new ArrayList<VariableData>(inputVariables); }
copy use only
public YammerMetricsAssembler(PrintStream out,long period,TimeUnit timeunit){ reporter=new ConsoleReporter(out); try { reporter.start(period,timeunit); } catch ( RuntimeException e) { e.printStackTrace(); throw e; } }
Creates a ConsoleReporter and sends the output to the given PrintStream.
public static boolean isGregorianLeapYear(int year){ boolean isLeap=false; if (year % 4 == 0) { isLeap=true; } if (year % 100 == 0) { isLeap=false; } if (year % 400 == 0) { isLeap=true; } return isLeap; }
if is leap year in gregorian mode
public static void registerNormalizationMethod(NormalizationMethod newMethod){ METHODS.add(newMethod); NORMALIZATION_METHODS=new String[METHODS.size()]; int i=0; for ( NormalizationMethod method : METHODS) { NORMALIZATION_METHODS[i]=method.getName(); i++; } }
This method can be used for registering additional normalization methods.
@Override public int hashCode(){ return this.name.hashCode(); }
Returns a hash code value for the object.
public Hyperpoint(IMultiPoint pt){ int d=this.dimensionality=pt.dimensionality(); values=new double[d]; for (int i=1; i <= d; i++) { values[i - 1]=pt.getCoordinate(i); } }
Construct when given an IMultiPoint.
@Override public Set<String> locationNames(){ Set<String> locations=new HashSet<String>(); Set<StringBuilder> l=this.name2ids.keySet(); for ( StringBuilder s : l) { locations.add(s.toString()); } return locations; }
produce a set of location names
@Override public TPS apply(final IIndex ndx){ return atomicRead(ndx,schema,primaryKey,fromTime,toTime,0L,filter); }
Atomic read.
public void test_SelectGroupBy() throws SQLException { String selectQuery="SELECT rating, SUM(snum) AS sum FROM " + DatabaseCreator.CUSTOMERS_TABLE + " GROUP BY rating"; ResultSet result=statement.executeQuery(selectQuery); HashMap<Integer,Integer> values=new HashMap<Integer,Integer>(); values.put(100,3006); ...
SelectFunctionalityTest#test_SelectGroupBy(). Selects records from a table using group by
public static TreePath pathTillClass(final TreePath path){ return pathTillOfKind(path,classTreeKinds()); }
Gets path to the first enclosing class tree, where class is defined by the classTreeKinds method.
public Property yearOfCentury(){ return new Property(this,getChronology().yearOfCentury()); }
Get the year of century property which provides access to advanced functionality.
public LedgerAllocatorDelegator(LedgerAllocator allocator,boolean ownAllocator) throws IOException { this.allocator=allocator; this.ownAllocator=ownAllocator; if (this.ownAllocator) { this.allocator.start(); } }
Create an allocator's delegator.
@SuppressWarnings("static-access") public int run(String[] args) throws Exception { Options options=new Options(); options.addOption(OptionBuilder.withLongOpt("config-files").withDescription("Comma separated list of paths to configuration files").hasArg().withArgName("PATH").create()); options.addOption(OptionBui...
Run batch replication of the Hive metastore. 1. Parse input arguments. 2. Run three MR jobs in sequence.
@FlashException public static void removeStoragePools(String virtualArrayId,@As(",") String[] ids){ if ((ids != null) && (ids.length > 0)) { VirtualArrayRestRep virtualArray=getVirtualArray(virtualArrayId); updateStoragePools(uris(ids),removeVirtualArray(virtualArray)); } storagePools(virtualArrayId); }
Removes a number of storage pools from the given virtual array, and redisplays the storage pools page.
private void createJournal(MJournalBatch mjb){ int noPeriods=0; if (noOfPeriods == 0 || noOfPeriods > 12) noPeriods=12; else noPeriods=noOfPeriods; StringBuffer sql=new StringBuffer("SELECT * FROM I_Budget WHERE I_IsImported='N' ").append(clientCheck).append(docCheck); PreparedStatement pstmt=null; Res...
Create GL Journals
public boolean invalidateIt(){ log.info("invalidateIt - " + toString()); setDocAction(DOCACTION_Prepare); return true; }
Invalidate Document
public SnackbarWrapper appendMessage(@StringRes int message,@ColorRes int color){ return appendMessage(context.getString(message),ContextCompat.getColor(context,color)); }
Append text in the specified color to the Snackbar.
public void clearEntryReadVersion(){ serReadVer=null; }
Clears recorded read version, should be done before starting commit of not serializable/optimistic transaction.
public DeviceAutomator pressDPadUp(){ mDevice.pressDPadUp(); return this; }
Simulates a short press on the UP button.
public static void resetApiUrl(){ API_URL=DEF_API_URL; }
Reset the API_URL
public void startDragAction(DragGestureEvent dge,DragSourceListener dsl){ dragSource.startDrag(dge,getCursor(DragSource.DefaultMoveDrop),new DefaultTransferableObject(SinkGraphic.getSharedInstance()),dsl); }
Invoked on dragGestureRecognized in the ComponentDragGestureListener class.
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
private void scanFraction(int pos){ skipIllegalUnderscores(); if ('0' <= reader.ch && reader.ch <= '9') { scanDigits(pos,10); } int sp1=reader.sp; if (reader.ch == 'e' || reader.ch == 'E') { reader.putChar(true); skipIllegalUnderscores(); if (reader.ch == '+' || reader.ch == '-') { reade...
Read fractional part of floating point number.
@Override public void eUnset(int featureID){ switch (featureID) { case MappingPackage.INFO_MODEL_PROPERTY_SOURCE__PROPERTY: setProperty((FunctionblockProperty)null); return; } super.eUnset(featureID); }
<!-- begin-user-doc --> <!-- end-user-doc -->
private void validateJMSResources(){ if (queue == null || qFactory == null) { SaaSSystemException sse=new SaaSSystemException("JMS resources are not initialized!"); logger.logError(Log4jLogger.SYSTEM_LOG,sse,LogMessageIdentifier.ERROR_JMS_RESOURCE_NOT_INITIALIZED); throw sse; } }
Checks if the injected JMS resources are not <code>null</code>. If they are, a system exception will be thrown.
@Override public void putAll(Map<? extends K,? extends V> map){ putAllImpl(map); }
Copies all the mappings in the specified map to this map. These mappings will replace all mappings that this map had for any of the keys currently in the given map.
protected void checkPauseAndWait(){ pauseLock.lock(); try { while (paused && !stopped) { pausedCondition.await(); } } catch ( InterruptedException e) { } finally { pauseLock.unlock(); } }
This method is run by Threads in the ThreadPool and checks if the scan is paused and, if it is, waits until it's unpaused.
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public List<BucketRecommendation> placeBucket(VirtualArray vArray,VirtualPool vPool,VirtualPoolCapabilityValuesWrapper capabilities,Map<String,Object> attributeMap){ _log.debug("Schedule storage for {} resource(s) of size {}.",capabilities.getResourceCount(),capabilities.getSize()); List<StoragePool> candidatePools...
Schedule storage for Object in the varray with the given CoS capabilities.
public String generateChallan(final ReceiptHeader receipt,final boolean flag){ final List<BillReceiptInfo> receiptList=new ArrayList<BillReceiptInfo>(0); receiptList.add(new BillReceiptInfoImpl(receipt,egovCommon,new ReceiptHeader(),chartOfAccountsHibernateDAO,persistenceService)); final String templateName=Colle...
This method generates a challan for the given receipt
public static void doArrayStore(Instruction s,IR ir,Operator op,int logwidth){ if (LOWER_ARRAY_ACCESS) { Operand value=AStore.getClearValue(s); Operand array=AStore.getClearArray(s); Operand index=AStore.getClearIndex(s); Operand offset; LocationOperand loc=AStore.getClearLocation(s); if (inde...
Expand an array store.