code
stringlengths
10
174k
nl
stringlengths
3
129k
public void infoNoCRLInfoFound(){ addInfo("No CRL info found !"); }
This method adds an information as CRL not found
public BluetoothHandsfreeClientCall(int id,int state,String number,boolean multiParty,boolean outgoing){ mId=id; mState=state; mNumber=number != null ? number : ""; mMultiParty=multiParty; mOutgoing=outgoing; }
Creates BluetoothHandsfreeClientCall instance.
public SetQuestToYearAction(final String questname){ this.questname=checkNotNull(questname); this.index=-1; }
Creates a new SetQuestToYearAction.
@Override public HierarchicalStreamWriter createWriter(final Writer out){ return new JsonWriter(out); }
Create a HierarchicalStreamWriter that writes JSON.
public void runTest() throws Throwable { Document doc; NodeList elementList; Node anotherElement; NamedNodeMap anotherMap; Node arg; Node testAddress; NamedNodeMap map; Node setNode; doc=(Document)load("staffNS",true); elementList=doc.getElementsByTagName("address"); anotherElement=elementList.ite...
Runs the test case.
@Override protected EClass eStaticClass(){ return UmplePackage.eINSTANCE.getStringExpr_(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
@Override @Deprecated public boolean awaitTermination(long l,TimeUnit timeUnit) throws InterruptedException { throw new UnsupportedOperationException(); }
Not supported and throws an exception when used.
public static void addImageFileToTheMapOfCatalogImages(String key,CachedFile file){ assert file != null : "Program Error: attempt to add 'null' file to image map"; assert (file.getName().equals("c2o_thumbnail.jpg") || file.getName().equals("c2o_resizedcover.jpg") || file.getName().equals(Constants.CALIBRE_COVER_FIL...
Add a file to the map of image files that are to be copied to the catalog (assuming this option is even set!)
public Iterable<Integer> post(){ return postorder; }
Returns the vertices in postorder.
public Graph(Table nodes,Table edges,boolean directed,String nodeKey,String sourceKey,String targetKey){ init(nodes,edges,directed,nodeKey,sourceKey,targetKey); }
Create a new Graph.
final void longAccumulate(long x,LongBinaryOperator fn,boolean wasUncontended){ int h; if ((h=getProbe()) == 0) { ThreadLocalRandom.current(); h=getProbe(); wasUncontended=true; } boolean collide=false; for (; ; ) { Cell[] as; Cell a; int n; long v; if ((as=cells) != null && (n...
Handles cases of updates involving initialization, resizing, creating new Cells, and/or contention. See above for explanation. This method suffers the usual non-modularity problems of optimistic retry code, relying on rechecked sets of reads.
public static void incrementRecycled(){ Log.d(TAG,"onBind: " + bound.get()); Log.d(TAG,"onRecycled: " + recycled.incrementAndGet()); }
Used to count and log the recycling of ViewHolders to track memory leaks
public static Typeface robotoBoldItalic(Context context){ sRobotoBoldItalic=getFontFromRes(R.raw.roboto_bolditalic,context); return sRobotoBoldItalic; }
Roboto-BoldItalic font face
public FileTransfer transferFile(ContactId contact,Uri file,Disposition disposition,boolean attachFileIcon) throws RcsPersistentStorageException, RcsServiceNotAvailableException, RcsGenericException { if (mApi == null) { throw new RcsServiceNotAvailableException(); } try { tryToGrantUriPermissionToStackSe...
Transfers a file to a contact. The parameter file contains the URI of the file to be transferred (for a local or a remote file). The parameter contact supports the following formats: MSISDN in national or international format, SIP address, SIP-URI or Tel-URI. If the format of the contact is not supported an exception i...
public static JSONObject rowToJSONObject(JSONArray names,JSONTokener x) throws JSONException { JSONArray ja=rowToJSONArray(x); return ja != null ? ja.toJSONObject(names) : null; }
Produce a JSONObject from a row of comma delimited text, using a parallel JSONArray of strings to provides the names of the elements.
public void matrixChanged(){ m_tableModel.fireTableStructureChanged(); m_classesField.setText("" + m_matrix.size()); }
Responds to a change in structure of the matrix being edited.
public void back() throws JSONException { if (this.usePrevious || this.index <= 0) { throw new JSONException("Stepping back two steps is not supported"); } this.index-=1; this.character-=1; this.usePrevious=true; this.eof=false; }
Back up one character. This provides a sort of lookahead capability, so that you can test for a digit or letter before attempting to parse the next number or identifier.
public GBC fill(int value){ fill=value; if ((value == HORIZONTAL) || (value == BOTH)) { weightx=1.0; } if ((value == VERTICAL) || (value == BOTH)) { weighty=1.0; } return this; }
set this <code>GridBagConstraints</code> so that the corresponding will fill according to the
public void updateCommitIndex(int index){ CoreCmd ccmd=getQueue.peek(); while (ccmd != null && ccmd.index <= index) { ccmd.update(Command.STATUS_OK,cmember.leaderId); getQueue.poll(); ccmd=getQueue.peek(); } }
Called by SaveQueue and Peer whenever savedIndex or matchIndex increases.
public String toString(Instances instances,char outerDelim,char innerDelim){ StringBuffer text=new StringBuffer(); for (int i=0; i < instances.numAttributes(); i++) { if (m_items[i] != -1) { text.append(instances.attribute(i).name()).append('=').append(instances.attribute(i).value(m_items[i])).append(inne...
Returns the contents of an item set as a delimited string.
public ActivityTransitionExitHelper background(View background){ this.background=background; return this; }
add root view of this layout
private OpenSSLSignature(String algorithm,EngineType engineType) throws NoSuchAlgorithmException { super(algorithm); if ("RSA-MD2".equals(algorithm)) { throw new NoSuchAlgorithmException(algorithm); } this.engineType=engineType; this.evpAlgorithm=algorithm; }
Creates a new OpenSSLSignature instance for the given algorithm name.
private void removeFromFavorites(){ for ( String game : list.getSelectedValuesList()) { favorites.remove(game); } saveFavorites(); update(); }
Removes the currently selected games from the favorites.
public static <T>Iterator<T> sort(Iterator<T> self){ return sort((Iterable<T>)toList(self)).listIterator(); }
Sorts the given iterator items into a sorted iterator. The items are assumed to be comparable. The original iterator will become exhausted of elements after completing this method call. A new iterator is produced that traverses the items in sorted order.
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public Schwefel(int numberOfVariables){ super(numberOfVariables); }
Constructs a new instance of the Schwefel function.
public Expression parseExpression(String sql){ parameters=New.arrayList(); initialize(sql); read(); return readExpression(); }
Parse a SQL code snippet that represents an expression.
public ServerProxyEmptyResponse(){ requestFileName="proxyemulator.query"; responseFile="empty.query"; }
Constructs the test case.
public void addAdjustmentListener(AdjustmentListener l){ listenerList.add(AdjustmentListener.class,l); }
Adds an AdjustmentListener. Adjustment listeners are notified each time the scrollbar's model changes. Adjustment events are provided for backwards compatibility with java.awt.Scrollbar. <p> Note that the AdjustmentEvents type property will always have a placeholder value of AdjustmentEvent.TRACK because all changes ...
public final AC shrink(float w,int... indexes){ Float sw=new Float(w); for (int i=indexes.length - 1; i >= 0; i--) { int ix=indexes[i]; makeSize(ix); cList.get(ix).setShrink(sw); } return this; }
Specifies the indicated rows'/columns' shrink weight within the columns/rows with the same <code>shrink priority</code>. <p> For a more thorough explanation of what this constraint does see the White Paper or Cheat Sheet at www.migcomponents.com.
protected char checkZone(char zone){ zone=Character.toUpperCase(zone); if (zone <= 'A' || zone == 'B' || zone == 'Y' || zone >= 'Z' || zone == 'I' || zone == 'O') { throw new NumberFormatException("Invalid MGRSPoint zone letter: " + zone); } return zone; }
Method that provides a check for MGRS zone letters. Returns an uppercase version of any valid letter passed in.
public String dc_language(){ if (this.languages == null) return null; if (this.languages.isEmpty()) return null; if (this.languages.size() == 1) return this.languages.iterator().next(); if (this.languages.contains(this.source.language())) return this.source.language(); return this.languages.iterator()...
compute a set of languages that this document contains the language is not computed using a statistical analysis of the content, only from given metadata that came with the document if there are several languages defined in the document, the TLD is taken to check which one should be picked If there is no metadata at al...
public int add(GL10 gl,Drawable background,String text,Paint textPaint){ return add(gl,background,text,textPaint,0,0); }
Call to add a label
public static void main(String... a) throws Exception { TestBase.createCaller().init().test(); }
Run just this test.
private void updateProgress(String progressLabel,int progress){ if (myHost != null && ((progress != previousProgress) || (!progressLabel.equals(previousProgressLabel)))) { myHost.updateProgress(progressLabel,progress); } previousProgress=progress; previousProgressLabel=progressLabel; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
@Override public void saveLink(ProjectLink link){ }
Unused, not implemented
public boolean match(UnionType node,Object other){ if (!(other instanceof UnionType)) { return false; } UnionType o=(UnionType)other; return safeSubtreeListMatch(node.types(),o.types()); }
Returns whether the given node and the other object match. <p> The default implementation provided by this class tests whether the other object is a node of the same type with structurally isomorphic child subtrees. Subclasses may override this method as needed. </p>
public void resetCount(){ if (originalCount == 0) { releaseAll(); } else { final int diff=originalCount - sync.getCount(); applyDelta(diff); } }
Reset the latch to its original count.
static Object createReference(final int width,final int height){ return new ESRef(width,height); }
Create an empty sprite reference.
@Inline private void closeAndInsertHead(int arity){ queue.enqueue(head,arity,false); }
Close the head buffer and enqueue it at the front of the shared buffer deque.
public final void removeCallbacksAndMessages(Object token){ mExec.removeCallbacksAndMessages(token); }
Remove any pending posts of callbacks and sent messages whose <var>obj</var> is <var>token</var>. If <var>token</var> is null, all callbacks and messages will be removed.
private int findNearestPair(double key,double secondaryKey){ int low=0; int high=m_CondValues.size(); int middle=0; while (low < high) { middle=(low + high) / 2; double current=m_CondValues.elementAt(middle).doubleValue(); if (current == key) { double secondary=m_Values.elementAt(middle).doubl...
Execute a binary search to locate the nearest data value
private static boolean isIBMPre8(){ if (isClassPresent("com.ibm.misc.JarVersion")) { String ver=System.getProperty("java.class.version","45"); if (ver != null && ver.length() >= 2) { ver=ver.substring(0,2); if ("52".compareTo(ver) > 0) { return true; } } } return false; }
Are we running on a pre-Java8 IBM VM?
public void invalidateChildNodes(Node n){ XBLRecord rec=getRecord(n); if (rec.childNodes != null) { rec.childNodes.invalidate(); } if (rec.scopedChildNodes != null) { rec.scopedChildNodes.invalidate(); } }
Mark the xblChildNodes and xblScopedChildNodes variables as invalid.
public static boolean checkForProtectedVplexBackendVolume(DbClient dbClient,Volume volume){ if (checkForVplexBackEndVolume(dbClient,volume)) { Volume vplexVolume=fetchVplexVolume(dbClient,volume); if (vplexVolume != null && vplexVolume.checkForRp()) { return true; } } return false; }
Utility function that tells if the passed in volume is a back-end volume of a protected VPLEX virtual volume. For now the only supported protection type for VPLEX virtual volumes is RecoverPoint, if additional protection types are added in the future we can add checks for them as they are introduced.
public void requestFocus(){ }
Requests focus for this object. If this object cannot accept focus, nothing will happen. Otherwise, the object will attempt to take focus.
public static JSONObject toJSONObject(String string) throws JSONException { return toJSONObject(new XMLTokener(string)); }
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform. Each XML tag is represented as a JSONObject with a "tagName" property. If the tag has attributes, then the attributes will be in the JSONObject as properties. If the tag contains children, the object will have a "...
private void declareExtensions(){ new CrawlIssuesFeed().declareExtensions(extProfile); new KeywordsFeed().declareExtensions(extProfile); new MessagesFeed().declareExtensions(extProfile); new SitemapsFeed().declareExtensions(extProfile); new SitesFeed().declareExtensions(extProfile); }
Declare the extensions of the feeds for the Google Webmaster Tools Data API.
@Override public boolean equals(Object obj){ if (obj == this) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof XYPolygonAnnotation)) { return false; } XYPolygonAnnotation that=(XYPolygonAnnotation)obj; if (!Arrays.equals(this.polygon,that.polygon)) { return...
Tests this annotation for equality with an arbitrary object.
protected POInfo initPO(Properties ctx){ POInfo poi=POInfo.getPOInfo(ctx,Table_ID,get_TrxName()); return poi; }
Load Meta Data
public void reset() throws IOException { ensureNotClosed(); nextSegment(); }
Moves into the next segment of the current block.
public Context createSubcontext(String name) throws NamingException { return createSubcontext(nameParser.parse(name)); }
Creates subcontext with name, relative to this Context.
private final int internalNextInt(int origin,int bound){ int r=TLRandom.mix32(nextSeed()); if (origin < bound) { int n=bound - origin, m=n - 1; if ((n & m) == 0) r=(r & m) + origin; else if (n > 0) { for (int u=r >>> 1; u + m - (r=u % n) < 0; u=TLRandom.mix32(nextSeed()) >>> 1) ; ...
The form of nextInt used by IntStream Spliterators. Exactly the same as long version, except for types.
private void throwTagException(Byte tag) throws IOException { Byte[] expectedTags=PKCS9_VALUE_TAGS[index]; StringBuffer msg=new StringBuffer(100); msg.append("Value of attribute "); msg.append(oid.toString()); msg.append(" ("); msg.append(getName()); msg.append(") has wrong tag: "); msg.append(tag.toStr...
Throw an exception when the tag on a value encoding is wrong for the attribute whose value it is. This method will only be called for known tags.
boolean isSelection(){ return !lines().isEmpty() || !offsets().isEmpty() || !lengths().isEmpty(); }
Returns true if partial formatting was selected.
@Override public void deliver(WriteStream os,OutHttp2 outHttp) throws IOException { outHttp.writeFlow(_streamId,_credit); }
Deliver the message
@Override public void initVertex(final IGASContext<PATHS.VS,PATHS.ES,Void> ctx,final IGASState<PATHS.VS,PATHS.ES,Void> state,final Value u){ state.getState(u).visit(0,null,null); }
Not used.
public void resetOptions(){ m_removeMissingCols=false; m_verbose=false; m_delta=0.05; m_minMetric=0.90; m_numRules=10; m_lowerBoundMinSupport=0.1; m_upperBoundMinSupport=1.0; m_significanceLevel=-1; m_outputItemSets=false; m_car=false; m_classIndex=-1; m_treatZeroAsMissing=false; m_metricType=...
Resets the options to the default values.
public static void toXml(Object obj,OutputStream output){ xstream.toXML(obj,output); }
Serialize an object to an <code>OutputStream</code>.
public static void execute(final PoolImpl pool,Function function,ServerFunctionExecutor executor,Object args,MemberMappedArgument memberMappedArg,boolean allServers,byte hasResult,ResultCollector rc,boolean isFnSerializationReqd,UserAttributes attributes,String[] groups){ final AbstractOp op=new ExecuteFunctionOpImpl...
Does a execute Function on a server using connections from the given pool to communicate with the server.
private static void createSMaskFill(final GraphicsState gs,final PdfObjectReader currentPdfFile,final DynamicVectorRenderer current,final ParserOptions parserOptions,final int formLevel,final float multiplyer){ final PdfObject maskObj=gs.SMask.getDictionary(PdfDictionary.G); currentPdfFile.checkResolved(maskObj); ...
make image from SMask and colour in with fill colour to simulate effect
public static boolean testRayAar(Vector2dc origin,Vector2dc dir,Vector2dc min,Vector2dc max){ return testRayAar(origin.x(),origin.y(),dir.x(),dir.y(),min.x(),min.y(),max.x(),max.y()); }
Test whether the ray with the given <code>origin</code> and direction <code>dir</code> intersects the given axis-aligned rectangle specified as its minimum corner <code>min</code> and maximum corner <code>max</code>. <p> This method returns <code>true</code> for a ray whose origin lies inside the axis-aligned rectangle...
@Override public void changedUpdate(javax.swing.event.DocumentEvent e){ }
Gives notification that an attribute or set of attributes changed.
public AndroidAuthenticator(Context context,Account account,String authTokenType){ this(context,account,authTokenType,false); }
Creates a new authenticator.
@Override public void eSet(int featureID,Object newValue){ switch (featureID) { case UmplePackage.ANONYMOUS_GEN_EXPR_2__INDEX_1: setIndex_1((String)newValue); return; } super.eSet(featureID,newValue); }
<!-- begin-user-doc --> <!-- end-user-doc -->
Item newDouble(final double value){ key.set(value); Item result=get(key); if (result == null) { pool.putByte(DOUBLE).putLong(key.longVal); result=new Item(index,key); index+=2; put(result); } return result; }
Adds a double to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item.
@Override public void eUnset(int featureID){ switch (featureID) { case SRuntimePackage.COMPOSITE_SLOT__SLOTS: getSlots().clear(); return; } super.eUnset(featureID); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public void remove(int index){ mCategories.remove(index); mTitles.remove(index); mValues.remove(index); }
Removes an existing value from the series.
public String defaultHostname(){ return defaultHostname; }
Returns the default hostname of this virtual host.
public boolean isCompressionEnabled(){ return compression; }
Returns true if compression is enabled.
public SqlMigration(){ this(null); }
Creates <code>SqlMigration</code> that migrates using <code>/$MODULE_ID_$VERSION.sql</code> on the classpath.
public void testDetectLanguageTh(){ LOGGER.debug("detectLanguage th"); LanguageDetector instance=LanguageDetector.getInstance(); Document doc; try { doc=Jsoup.parse(new File(PATH + "th.wikipedia.org-wiki_20140701.html"),UTF_8); LOGGER.debug("start detection"); assertEquals("th",instance.detectLangua...
Test of detectLanguage method, of class LanguageDetector with th pages.
public static ImportDeclaration createEmptyDeclaration(){ return new ImportDeclaration(); }
Create an empty import declaration without specifying its position.
private static String f(String msg){ return caller() + msg; }
Format the log
static public CounterSetBTree create(final IRawStore store){ final IndexMetadata metadata=new IndexMetadata(UUID.randomUUID()); metadata.setBTreeClassName(CounterSetBTree.class.getName()); metadata.setTupleSerializer(new CounterSetBTreeTupleSerializer(new ASCIIKeyBuilderFactory(INITIAL_CAPACITY))); return (Coun...
Create a new instance.
PackedBuffer(ByteBuffer bb){ this.bb=bb; this.out=new PackedBufferOutput(); this.temp=new byte[SPAN_ID_BYTE_LENGTH]; this.packer=new MessagePacker(out,MSGPACK_CONF); }
Create a new PackedBuffer.
public String toString(){ String ps=""; for ( Point2D p : points) ps+=p + ";"; return ps; }
Transform the polygon information in a text
public boolean verbose(){ return soot.PhaseOptions.getBoolean(options,"verbose"); }
Verbose -- Print statistics about the resulting call graph. Setting this option to true causes Soot to print out statistics about the call graph computed by this phase, such as the number of methods determined to be reachable.
public static SpeechletResponse newAskResponse(final OutputSpeech outputSpeech,final Reprompt reprompt,final Card card){ if (card == null) { throw new IllegalArgumentException("Card cannot be null"); } SpeechletResponse response=newAskResponse(outputSpeech,reprompt); response.setCard(card); return respons...
Creates and returns a response intended to ask the user a question, both in speech and with a graphical card displayed in the companion app. After the ask response is read to the user, the user can respond and continue to interact with the skill. The session does not immediately end after the ask response. <p> All argu...
@NoWarning("NP") int fp1(int level){ Object x=null; if (level > 0) x=new Object(); if (level > 4) return x.hashCode(); return 0; }
Benchmark tests for null pointer defect detectors This benchmark tests local variable tracking tracking tp1, tp2, tp3, tp4, tp5, tp6 : true positive cases fp1, fp2, fp3, fp4 : false positives versions of the above ifp1, ifp2, ifp3 : interprocedural false positives itp1 : true versions of the ifp1
private StoragePort selectStoragePort(List<StoragePort> spList){ Collections.shuffle(spList); return spList.get(0); }
Select a storage port from a list of all ports in transport zone and its subset of ports already used for export. TODO: - select ports based on load - select ports based on multipath requirement - select ports based on fault domains
public static boolean isPotentialLocalEmergencyNumber(String number,Context context){ return isLocalEmergencyNumberInternal(number,context,false); }
Checks if a given number might *potentially* result in a call to an emergency service, for the country that the user is in. The current country is determined using the CountryDetector. Specifically, this method will return true if the specified number is an emergency number in the current country, *or* if the number si...
public static long[] remove(long[] buffer,int offset,int length){ int len2=buffer.length - length; long temp[]=new long[len2]; System.arraycopy(buffer,0,temp,0,offset); System.arraycopy(buffer,offset + length,temp,offset,len2 - offset); return temp; }
Removes sub-array from <code>long</code> array.
public void clear(){ this.rowKeys.clear(); this.columnKeys.clear(); this.rows.clear(); }
Clears all the data and associated keys.
public void close() throws IOException { finish(); out.close(); }
Writes remaining compressed data to the output stream and closes the underlying stream.
@ModelAttribute public void addDataToModel(ModelMap model){ SearchData dataForSearchBar=new SearchData(); dataForSearchBar.setSearchMode("natural"); dataForSearchBar.setCurrentPage(1); dataForSearchBar.setQueryText(null); dataForSearchBar.setNumberResultsPerPage(10); model.put("advancedSearchData",dataForSe...
Add an empty searchData object to the model
private void transform(byte[] block,int offset){ for (int i=0; i < 16; i++) X[i]=(block[offset++] & 0xFF) | (block[offset++] & 0xFF) << 8 | (block[offset++] & 0xFF) << 16 | (block[offset++] & 0xFF) << 24; int A=context[0]; int B=context[1]; int C=context[2]; int D=context[3]; A=FF(A,B,C,D,X[0],3); D=FF(...
MD4 basic transformation. <p> Transforms context based on 512 bits from input block starting from the offset'th byte.
public KeyInfoReference itemKeyInfoReference(int i) throws XMLSecurityException { Element e=XMLUtils.selectDs11Node(this.constructionElement.getFirstChild(),Constants._TAG_KEYINFOREFERENCE,i); if (e != null) { return new KeyInfoReference(e,this.baseURI); } return null; }
Method itemKeyInfoReference
public void test_getInnerCause01_find_exact(){ Throwable t=new RuntimeException(); assertTrue(t == getInnerCause(t,RuntimeException.class)); }
Finds cause when it is on top of the stack trace and the right type.
private void genPreambleImports() throws JasperException { Iterator<String> iter=pageInfo.getImports().iterator(); while (iter.hasNext()) { out.printin("import "); out.print(iter.next()); out.println(";"); } out.println(); }
Generate preamble imports (shared by servlet and tag handler preamble generation)
int checkBlockLine(int[] par1ArrayOfInteger,int[] par2ArrayOfInteger){ int[] var3=new int[]{0,0,0}; byte var4=0; byte var5; for (var5=0; var4 < 3; ++var4) { var3[var4]=par2ArrayOfInteger[var4] - par1ArrayOfInteger[var4]; if (Math.abs(var3[var4]) > Math.abs(var3[var5])) { var5=var4; } } if ...
Checks a line of blocks in the world from the first coordinate to triplet to the second, returning the distance (in blocks) before a non-air, non-leaf block is encountered and/or the end is encountered.
public UplevelReference noteReference(Environment env,LocalMember target){ int targetScopeNumber=!isInScope(target) ? -1 : target.scopeNumber; UplevelReference res=null; int currentFrameNumber=-1; for (Context refctx=this; refctx != null; refctx=refctx.prev) { if (currentFrameNumber == refctx.frameNumber) {...
Notice a reference (usually an uplevel one). Update the references list of every enclosing class which is enclosed by the scope of the target. Update decisions about which uplevels to make into fields. Return the uplevel reference descriptor, or null if it's local. <p> The target must be in scope in this context. So, c...
public static List<String> readLines(File file,String charset) throws IOException { return IOGroovyMethods.readLines(newReader(file,charset)); }
Reads the file into a list of Strings, with one item for each line.
protected void addValuePropertyDescriptor(Object object){ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),getResourceLocator(),getString("_UI_TypeConstraint_value_feature"),getString("_UI_PropertyDescriptor_description","_UI_TypeConstraint_v...
This adds a property descriptor for the Value feature. <!-- begin-user-doc --> <!-- end-user-doc -->
public AddWorkingSetModificationStrategy(final IWorkingSet toAdd){ this(toAdd,APPEND_TO_END_INDEX,APPEND_TO_END_INDEX); }
Creates a new strategy with the argument that has to be added to the working set manager as the last element.
protected void processCloudletCancel(int cloudletId,int userId,int vmId,int containerId){ Cloudlet cl=getVmAllocationPolicy().getHost(vmId,userId).getContainerVm(vmId,userId).getContainer(containerId,userId).getContainerCloudletScheduler().cloudletCancel(cloudletId); sendNow(userId,CloudSimTags.CLOUDLET_CANCEL,cl);...
Processes a Cloudlet cancel request.
@SuppressWarnings({"rawtypes","unchecked"}) synchronized public ICounterNode detach(final String path){ final ICounterNode node=getPath(path); if (node != null && !node.isRoot()) { final CounterSet p=(CounterSet)node.getParent(); p.children.remove(node.getName()); if (node.isCounterSet()) { ((Coun...
Detaches and returns the node having that path.
public void removeComment(){ comment=null; }
remove the comment field.
private final ArrayList<Move> movesToSearch(SearchRequest sr){ ArrayList<Move> moves=null; ArrayList<Move> legalMoves=new MoveGen().legalMoves(sr.currPos); if (engineOptions.rootProbe) moves=Probe.getInstance().removeNonOptimal(sr.currPos,legalMoves); if (moves != null) { sr.searchMoves=moves; } else {...
Decide what moves to search. Filters out non-optimal moves if tablebases are used.
public static CCJumpTiles3D action(int j,float amp,ccGridSize gridSize,float d){ return new CCJumpTiles3D(j,amp,gridSize,d); }
creates the action with the number of jumps, the sin amplitude, the grid size and the duration