code
stringlengths
10
174k
nl
stringlengths
3
129k
public static void addFile(File file){ files.offer(Pair.of(file,0)); }
Registers new file or directory in FileCleaner.
@Deprecated public SslCertificate(String issuedTo,String issuedBy,String validNotBefore,String validNotAfter){ this(issuedTo,issuedBy,parseDate(validNotBefore),parseDate(validNotAfter),null); }
Creates a new SSL certificate object
public long sum(){ Cell[] as=cells; Cell a; long sum=base; if (as != null) { for (int i=0; i < as.length; ++i) { if ((a=as[i]) != null) sum+=a.value; } } return sum; }
Returns the current sum. The returned value is <em>NOT</em> an atomic snapshot; invocation in the absence of concurrent updates returns an accurate result, but concurrent updates that occur while the sum is being calculated might not be incorporated.
public void insertBack(Item x){ if (size == items.length) { resize(size * RFACTOR); } items[size]=x; size=size + 1; }
Inserts X into the back of the list.
public boolean wasNull() throws SQLException { return lastValueWasNull; }
Ascertains whether the last value read from this <code>SQLInputImpl</code> object was <code>null</code>.
@Override public void layout(){ if (getLayouter() != null) { Rectangle2D.Double bounds=getBounds(); Point2D.Double p=new Point2D.Double(bounds.x,bounds.y); getLayouter().layout(this,p,p); invalidate(); } }
A layout algorithm is used to define how the child components should be laid out in relation to each other. The task for layouting the child components for presentation is delegated to a Layouter which can be plugged in at runtime.
private Node ceiling(Node x,Key key){ if (x == null) return null; int cmp=key.compareTo(x.key); if (cmp == 0) return x; if (cmp > 0) return ceiling(x.right,key); Node y=ceiling(x.left,key); if (y != null) return y; else return x; }
Returns the node in the subtree with the smallest key greater than or equal to the given key.
private List<URI> preparePromotedVolumes(List<VplexMirror> copiesToStop,TaskList taskList,String opId){ List<URI> promotedVolumes=new ArrayList<URI>(); for ( VplexMirror copy : copiesToStop) { Volume v=new Volume(); v.setId(URIUtil.createId(Volume.class)); Volume sourceVplexVolume=_dbClient.queryObject...
This method creates volume objects for the copiesToStop which will used as independent virtual volumes if detach mirror action completes successfully.
public void traceOperation(String operation,int id){ if (trace.isDebugEnabled()) { trace.debug("{0} {1}",operation,id); } }
Write the operation to the trace system if debug trace is enabled.
private List<List> mergeWebs(Body body,List<List> webs,Map<ValueBox,Unit> boxToUnit,LocalUses localUses){ List<List> result=new ArrayList<>(); LinkedList<List> websCopy=new LinkedList<>(webs); while (!websCopy.isEmpty()) { List<ValueBox> web1=websCopy.removeFirst(); Local local1=(Local)web1.get(0).getValu...
Merges webs referring to the same local variable in the original source code. This prevents splitting of Locals which correspond to local variables. Splitting would otherwise interfere with debug info generation. RoboVM note: Added in RoboVM.
protected StoragePort checkEthernetStoragePortExistsInDB(String scsiAddress,DbClient _dbClient,StorageSystem device){ StoragePort port=null; try { URIQueryResultList result=new URIQueryResultList(); _dbClient.queryByConstraint(AlternateIdConstraint.Factory.getStoragePortByNativeGuidConstraint(NativeGUIDGene...
find if Storage Port already present in DB, via SCSI Address
public void removeAt(final int index){ checkWidget(); checkNullElement(); checkRange(index); final Object removedElement=this.elements.remove(index); this.selection.remove(removedElement); refresh(); }
Removes the item from the receiver's list at the given zero-relative index.
private static void removeTable(Connection conn,String name) throws SQLException { name=name.replace('.','_'); Statement stat=conn.createStatement(); stat.execute("DROP TABLE " + name); DBUtil.commitEL(conn); }
remove a table from the memory database
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 void write() throws IOException { handleEmptyPages(); preparePagesForWriting(); writeDataPages(); if (_dataPages.size() > MAX_CACHE_SIZE) { purgeOldPages(); } }
Writes any outstanding changes for this index to the file.
SnmpEngineId(byte[] bin){ engineId=bin; hexString=SnmpTools.binary2ascii(bin).toLowerCase(); }
New <CODE>SnmpEngineId</CODE> with a binary value. You can use <CODE> SnmpTools </CODE> to convert from hex string to binary format.
public static int length(Object obj){ if (obj == null) { return 0; } if (obj instanceof CharSequence) { return ((CharSequence)obj).length(); } if (obj instanceof Collection) { return ((Collection)obj).size(); } if (obj instanceof Map) { return ((Map)obj).size(); } int count; if (obj ...
Returns length of the object. Returns <code>0</code> for <code>null</code>. Returns <code>-1</code> for objects without a length.
public DestroyFailedException(){ super(); }
Constructs a DestroyFailedException with no detail message. A detail message is a String that describes this particular exception.
public void close(){ if (buf.length <= 1024 * 8) { bufLocal.set(new SoftReference<char[]>(buf)); } this.buf=null; }
Close the stream. This method does not release the buffer, since its contents might still be required. Note: Invoking this method in this class will have no effect.
public AveragedRegressor(List<Regressor> voters){ if (voters == null || voters.isEmpty()) throw new RuntimeException("No voters given for construction"); this.voters=voters.toArray(new Regressor[0]); }
Constructs a new averaged regressor using the given list of voters. The list of voters will be copied into a new space, so the list may safely be reused.
@Override public void translate(final ITranslationEnvironment environment,final IInstruction instruction,final List<ReilInstruction> instructions) throws InternalTranslationException { TranslationHelpers.checkTranslationArguments(environment,instruction,instructions,"movsb"); if (instruction.getOperands().size() !=...
Translates a MOVSB instruction to REIL code.
public boolean isUseReasonCodes(){ if (useReasonCodes == null) { return true; } else { return useReasonCodes; } }
Gets the value of the useReasonCodes property.
public Kim(byte[] bytes,int from,int thru){ int sum=1; int value; this.hashcode=0; this.length=thru - from; if (this.length > 0) { this.bytes=new byte[this.length]; for (int at=0; at < this.length; at+=1) { value=(int)bytes[at + from] & 0xFF; sum+=value; this.hashcode+=sum; thi...
Make a kim from a portion of a byte array.
public static String capitalizeNameTitleAbbrvs(String line){ String result=line; for ( String title : new String[]{"dr","miss","mr","mrs","ms","prof"}) { result=result.replaceAll("\\b" + title + "\\b",Character.toUpperCase(title.charAt(0)) + title.substring(1)); } result=result.replaceAll("\\b" + "phd" + "...
Capitalize the first character of the titles of names: Mr Mrs Ms Miss Dr Prof
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:33:26.695 -0500",hash_original_method="7515F8CCC6CE3690666F2F3E64F5CA86",hash_generated_method="78C00479EB39A17F314FBD5CDA52E669") private static ProcessStartResult zygoteSendArgsAndGetResult(ArrayList<String> args) throws ZygoteStartF...
Sends an argument list to the zygote process, which starts a new child and returns the child's pid. Please note: the present implementation replaces newlines in the argument list with spaces.
public SVGOMFlowRegionElement(String prefix,AbstractDocument owner){ super(prefix,owner); }
Creates a new BatikRegularPolygonElement object.
public boolean closeIfStale() throws IOException { if (isOpen && isStale()) { LOG.debug("Connection is stale, closing..."); close(); return true; } return false; }
Closes the connection if stale.
public Pair addElseIf(ExprBoolean condition,Statement body,Position start,Position end){ Pair pair; ifs.add(pair=new Pair(condition,body,start,end)); body.setParent(this); return pair; }
adds a else statement
public void put(K key,V val){ if (_list != null) { Entry lookup=_list.get(key); if (lookup == null) _list=new Entry(key,val,_list); else lookup._val=val; } else { _list=new Entry(key,val,_list); size=size + 1; } }
Inserts the key-value pair of KEY and VALUE into this dictionary, replacing the previous value associated to KEY, if any.
public DescendantIterator(){ super(null); m_axis=Axis.DESCENDANTSORSELFFROMROOT; int whatToShow=DTMFilter.SHOW_ALL; initNodeTest(whatToShow); }
Create a DescendantIterator object.
void updateThumbnailPaintFilter(){ if (mInvisible) { return; } int mul=(int)((1.0f - mDimAlpha) * mThumbnailAlpha * 255); int add=(int)((1.0f - mDimAlpha) * (1 - mThumbnailAlpha) * 255); if (mBitmapShader != null) { mLightingColorFilter=new LightingColorFilter(Color.argb(255,mul,mul,mul),Color.argb(0,...
Updates the paint to draw the thumbnail.
private void updateSleepTimer(){ if (mSleepMenuItem == null || mSleepTimerMenuItem == null) { return; } long now=Calendar.getInstance().getTimeInMillis(); long timeToAlarm=AppPrefHelper.getInstance(this).getSleepTimer(); mSleepTimerMenuItem.setTitle(DatetimeHelper.convertSecondsToDuration(timeToAlarm - no...
Updates the sleep timer
public LoopingForUnsafeCopier(Unsafe unsafe,long offset,long length){ super(unsafe); Preconditions.checkArgument(offset >= 0,"Offset must be >= 0"); Preconditions.checkArgument(length >= 0,"Length must be >= 0"); Preconditions.checkArgument(length % COPY_STRIDE == 0,"Lengths must be a multiple of 8 bytes"); t...
Copier designed to copy to a dest offset, and for length bytes.
public BinaryProperty(byte[] data,T type){ setData(data,type); }
Creates a binary property.
@KnownFailure("Fixed on DonutBurger, Wrong Exception thrown") public void test_wrap_ByteBuffer_ByteBuffer_03(){ String host="new host"; int port=8080; ByteBuffer bbsN=null; ByteBuffer bbdN=null; ByteBuffer bbs=ByteBuffer.allocate(10); ByteBuffer bbd=ByteBuffer.allocate(100); SSLEngine sse=getEngine(host,p...
javax.net.ssl.SSLEngine#wrap(ByteBuffer src, ByteBuffer dst) IllegalArgumentException should be thrown.
public boolean isDone(){ if (findAllTypes) { return hasProperIntersection && hasNonProperIntersection; } if (findProper) { return hasProperIntersection; } return hasIntersection; }
Tests whether processing can terminate, because all required information has been obtained (e.g. an intersection of the desired type has been detected).
public PointNeuronRulePanel(){ super(); this.add(tabbedPane); mainTab.addItem("Excitatory Reversal",tfER); mainTab.addItem("Inhibitory Reversal",tfIR); mainTab.addItem("Leak Reversal",tfLR); mainTab.addItem("Leak Conductance",tfLC); outputFunctionTab.addItem("Output Function",cbOutputFunction); outputFu...
Creates an instance of this panel.
public void becomeDefaultLogger(){ LoggingConfiguration.replaceDefaultHandler(new LogPanelHandler()); }
Become the default logger.
private boolean isOverridden(OutputNode node,Object value) throws Exception { return factory.setOverride(type,value,node); }
This is used to determine whether the specified value has been overridden by the strategy. If the item has been overridden then no more serialization is require for that value, this is effectively telling the serialization process to stop writing.
@Override public boolean equals(Object o){ if (!(o instanceof GSSModel)) { return false; } GSSModel otherModel=(GSSModel)o; if (otherModel.hypothesis.equals(this.hypothesis)) { return true; } else { return false; } }
Returns true if the hypothesis contained in the model are equal.
protected double entropy(double[][] dataZs,double[][] dataWs){ double entropy=0.0; int numInstances=dataZs.length; for (int j=0; j < m_numClasses; j++) { double m=0.0; double sum=0.0; for (int i=0; i < numInstances; i++) { m+=dataZs[i][j] * dataWs[i][j]; sum+=dataWs[i][j]; } m/=sum...
Helper function to compute entropy from Z/W values.
private static void assertOverridePendingTransition(ShadowActivity shadowActivity,@AnimRes int enterAnim,@AnimRes int exitAnim){ assertEquals(enterAnim,shadowActivity.getPendingTransitionEnterAnimationResourceId()); assertEquals(exitAnim,shadowActivity.getPendingTransitionExitAnimationResourceId()); }
Generic method for asserting pending transition animation
@SuppressWarnings({"UnusedDeclaration"}) public static ChiSquare serializableInstance(){ return new ChiSquare(); }
Generates a simple exemplar of this class to test serialization.
public static boolean hasGetMethod(JField field,JClassType clazz){ String getterMethodName="get" + Character.toUpperCase(field.getName().charAt(0)) + field.getName().substring(1); try { return (clazz.getMethod(getterMethodName,new JType[]{}) != null); } catch ( Exception e) { try { getterMethodNam...
Returns <code>true</code> is the given field has an associated public "get" method.
public ParallelTask(RequestProtocol requestProtocol,int concurrency,HttpMeta httpMeta,TargetHostMeta targetHostMeta,SshMeta sshMeta,TcpMeta tcpMeta,UdpMeta udpMeta,PingMeta pingMeta,ParallecResponseHandler handler,Map<String,Object> responseContext,Map<String,StrStrMap> replacementVarMapNodeSpecific,Map<String,String> ...
Instantiates a new parallel task.
public void runTest(DriverThread driver,WorkerThread[] workers){ driver.run(workers); try { driver.join(); } catch ( InterruptedException ie) { unexpectedException(Thread.currentThread(),ie); } if (failCnt.get() == 0) { System.out.println(TEST_NAME + ": Test PASSed."); } else { System.out...
Run the test with the specified DriverThread and the specified WorkerThreads.
public CustomizedOsmNetworkReader(final Network network,final CoordinateTransformation transformation,final boolean useHighwayDefaults){ log.warn("This is experimental customized version of the org.matsim.core.utils.io.OsmNetworkReader and should only be used by persons how now what they do. " + "The additional tags ...
Creates a new Reader to convert OSM data into a MATSim network.
public Date to(){ return to; }
Gets the to.
protected void cancelAnimationFrame(){ ScriptHelper.evalNoResult("if(typeof this._frameId==='number'){window.cancelAnimationFrame(this._frameId);}",this); }
Uses last stored frame ID to cancel the request.
public AllocationSite(int line,int column){ synchronized (sites) { this.id=sites.size(); sites.add(this); } this.line=line; this.column=column; }
Create an allocation site for a given source code line/column.
private EdgeRing findShell(List minEdgeRings){ int shellCount=0; EdgeRing shell=null; for (Iterator it=minEdgeRings.iterator(); it.hasNext(); ) { EdgeRing er=(MinimalEdgeRing)it.next(); if (!er.isHole()) { shell=er; shellCount++; } } Assert.isTrue(shellCount <= 1,"found two shells in M...
This method takes a list of MinimalEdgeRings derived from a MaximalEdgeRing, and tests whether they form a Polygon. This is the case if there is a single shell in the list. In this case the shell is returned. The other possibility is that they are a series of connected holes, in which case no shell is returned.
@LargeTest public void testThumbnailForH264VGA() throws Exception { final String videoItemFilename=INPUT_FILE_PATH + "H264_BP_640x480_30fps_192kbps_1_5.mp4"; final int outWidth=32; final int outHeight=32; final int atTime=0; final int renderingMode=MediaItem.RENDERING_MODE_BLACK_BORDER; final MediaVideoItem...
To test thumbnail / frame extraction on H264 VGA.
void parseAttributeDefaultValue(AttributeList atts) throws IOException { if (ch == '#') { ch=in.read(); if (!parseIdentifier(true)) { error("invalid","attribute value"); return; } skipParameterSpace(); atts.modifier=AttributeList.name2type(getString(0)); if (atts.modifier != FIXED)...
Parse an attribute default value. [147] 425:1
@SuppressWarnings({"unused","null"}) private static void unusedTestCompile() throws IOException { FunctionValues f=null; double ret=f.doubleVal(2); }
This method is unused, it is just here to make sure that the function signatures don't change. If this method fails to compile, you also have to change the byte code generator to correctly use the FunctionValues class.
public TransactionBuilder performInitialized(String taskName) throws IOException { if (!isConnected()) { if (!connect()) { throw new IOException("1: Unable to connect to device: " + getDevice()); } } if (!isInitialized()) { TransactionBuilder builder=createTransactionBuilder("Initialize device")...
Send commands like this to the device: <p> <code>perform("sms notification").write(someCharacteristic, someByteArray).queue(getQueue());</code> </p> TODO: support orchestration of multiple reads and writes depending on returned values
public final void allowSpaces(final boolean allowSpaces){ this.allowSpaces=allowSpaces; }
Sets, whether spaces should be allowed, or not.
public static void main(final String[] args){ DOMTestCase.doMain(hc_namednodemapreturnattrnode.class,args); }
Runs this test from the command line.
public double outsideDistance(final PlanetModel planetModel,final DistanceStyle distanceStyle,final double x,final double y,final double z){ final double upperDistance=distanceStyle.computeDistance(planetModel,upperConnectingPlane,x,y,z,lowerConnectingPlane,startCutoffPlane,endCutoffPlane); final double lowerDistan...
Compute external distance.
@Override public boolean eIsSet(int featureID){ switch (featureID) { case EipPackage.CHANNEL__TO_ENDPOINT: return toEndpoint != null; case EipPackage.CHANNEL__FROM_ENDPOINT: return fromEndpoint != null; case EipPackage.CHANNEL__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case ...
<!-- begin-user-doc --> <!-- end-user-doc -->
public static boolean checkValueIsType(Object value,Object name,Class type){ if (value != null) { if (type.isAssignableFrom(value.getClass())) { return true; } else { throw new RuntimeException("The value argument of '" + name + "' must be of type "+ type.getName()+ ". Found: "+ value.getClass())...
Checks type of value against builder type
@Override public void add(int index,T linkable){ if (index < 0 || index > size()) { throw new IndexOutOfBoundsException("index:" + index); } insert(index,linkable); }
Inserts <tt>linkable</tt> at index <tt>index</tt> in the list. All values > index are shifted over one position to accomodate the new addition.
static final public String binary(int what,int digits){ String stuff=Integer.toBinaryString(what); if (digits > 32) { digits=32; } int length=stuff.length(); if (length > digits) { return stuff.substring(length - digits); } else if (length < digits) { int offset=32 - (digits - length); re...
Returns a String that contains the binary value of an int. The digits parameter determines how many digits will be used.
public int canDisplayUpTo(char[] text,int start,int limit){ StringCharacterIterator sci=new StringCharacterIterator(new String(text)); return canDisplayUpTo(sci,start,limit); }
Checks whether this Font can display the characters in the specified character array starting at start and ending at limit.
@ModelAttribute public void addDataToModel(ModelMap model){ SearchData advancedSearchData=new SearchData(); advancedSearchData.setCurrentPage(1); advancedSearchData.setNumberResultsPerPage(DEFAULT_NUMBER_OF_RESULTS_PER_PAGE); advancedSearchData.setSearchMode("natural"); advancedSearchData.setCurrentPage(1); ...
Add an empty searchData object to the model - this is needed just for the search bar. TBD - Search a way to optimize this ...
void write(ImageOutputStream ios) throws IOException { }
Writes the data for this segment to the stream in valid JPEG format.
public static BookTypeConf bookTypeConf(int bookType,String entidad){ BookTypeConf result=null; try { result=ConfiguratorBookType.getInstance(entidad).getBookTypeConf(bookType); } catch ( Exception e) { log.error("Impossible to load invesicres configuration",e); } return result; }
Obtenemos la configuracion del tipo de libro
public CRemoveTagFromSelectedNodesAction(final JFrame parent,final ZyGraph graph,final ITreeNode<CTag> tag){ super("Remove Tag from selected Nodes"); m_parent=Preconditions.checkNotNull(parent,"IE01217: Parent argument can not be null"); m_graph=Preconditions.checkNotNull(graph,"IE01218: Graph argument can not be...
Creates a new action object.
public Builder removePhoneNumber(PhoneNumber phoneNumber){ this.phoneNumbers.remove(phoneNumber); return this; }
removes one single phoneNumber from the User
protected void ensureCapacity(int newCapacity){ int oldCapacity=data.length; if (newCapacity <= oldCapacity) { return; } if (size == 0) { threshold=calculateThreshold(newCapacity,loadFactor); data=new HashEntry[newCapacity]; } else { HashEntry oldEntries[]=data; HashEntry newEntries[]=new...
Changes the size of the data structure to the capacity proposed.
public ReadRequest(ContentFormat format,int objectId,int objectInstanceId){ this(format,new LwM2mPath(objectId,objectInstanceId)); }
Creates a request for reading a particular object instance from a client.
OPDSFeedHandler(NetworkLibrary library,String baseURL,OPDSCatalogItem.State result){ if (!(result.Link instanceof OPDSNetworkLink)) { throw new IllegalArgumentException(result.Link + " is not an instance of OPDSNetworkLink class"); } myLibrary=library; myCatalog=result.Loader.Tree.Item; myBaseURL=baseURL;...
Creates new OPDSFeedHandler instance that can be used to get NetworkItem objects from OPDS feeds.
public boolean hasTarget(){ return getTarget() != null; }
Returns whether it has the export target mime type.
public T caseChannel(Channel object){ return null; }
Returns the result of interpreting the object as an instance of '<em>Channel</em>'. <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
@Override public boolean eIsSet(int featureID){ switch (featureID) { case FunctionblockPackage.STATUS__PROPERTIES: return properties != null && !properties.isEmpty(); } return super.eIsSet(featureID); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public static TermsQueryBuilder termsQuery(String name,Collection<?> values){ return new TermsQueryBuilder(name,values); }
A filer for a field based on several terms matching on any of them.
private boolean isPrimitive(Class type){ if (Number.class.isAssignableFrom(type)) { return true; } if (type == Boolean.class) { return true; } if (type == Character.class) { return true; } return type.isPrimitive(); }
This is used to determine if the type specified is primitive. A primitive is any type that can be reliably transformed in to an XML attribute without breaking the XML.
@Override public void onDestroyFloatView(View floatView){ ((ImageView)floatView).setImageDrawable(null); mFloatBitmap.recycle(); mFloatBitmap=null; }
Removes the Bitmap from the ImageView created in onCreateFloatView() and tells the system to recycle it.
public <T>List<T> createListDtoFromJson(String json,Class<T> dtoInterface){ final DtoProvider<T> dtoProvider=getDtoProvider(dtoInterface); final JSONArray jsonArray=JSONParser.parseStrict(json).isArray(); final List<T> result=new ArrayList<>(); for (int i=0; i < jsonArray.size(); i++) { String payload=jsonA...
Parses the JSON data from the specified sting into list of objects of the specified type.
public void showCourseAnnouncement(Activity activity,EnrolledCoursesResponse model){ final Bundle courseBundle=new Bundle(); courseBundle.putSerializable(EXTRA_COURSE_DATA,model); courseBundle.putBoolean(EXTRA_ANNOUNCEMENTS,true); final Intent courseDetail=new Intent(activity,CourseAnnouncementsActivity.class);...
FIXME - it will bring to different view in the future
public boolean similar(Object other){ try { if (!(other instanceof JSONObject)) { return false; } Set<String> set=this.keySet(); if (!set.equals(((JSONObject)other).keySet())) { return false; } Iterator<String> iterator=set.iterator(); while (iterator.hasNext()) { String ...
Determine if two JSONObjects are similar. They must contain the same set of names which must be associated with similar values.
public ModelException(String msg,Throwable baseEx){ super(msg,baseEx); }
Creates a new exception object.
public SQLInvalidAuthorizationSpecException(Throwable cause){ super(cause); }
Creates an SQLInvalidAuthorizationSpecException object. The Reason string is set to the null if cause == null or cause.toString() if cause!=null,and the cause Throwable object is set to the given cause Throwable object.
public String buildQuery(String[] projectionIn,String selection,String groupBy,String having,String sortOrder,String limit){ String[] projection=computeProjection(projectionIn); StringBuilder where=new StringBuilder(); boolean hasBaseWhereClause=mWhereClause != null && mWhereClause.length() > 0; if (hasBaseWher...
Construct a SELECT statement suitable for use in a group of SELECT statements that will be joined through UNION operators in buildUnionQuery.
public OneWayANOVA(int numberOfGroups){ super(numberOfGroups); if (numberOfGroups <= 1) { throw new IllegalArgumentException("requires two or more groups"); } }
Constructs a one-way ANOVA statistical test with the specified number of groups.
@Override public boolean isResetted(){ return (min == 0.0f && max == 0.0f); }
reset methods
public MonitorException(String message){ super(message); }
Create a MonitorException with the given message.
private void flattenStyles(IXMLElement elem) throws IOException { if (elem.getName() != null && elem.getName().equals("style") && readAttribute(elem,"type","").equals("text/css") && elem.getContent() != null) { CSSParser cssParser=new CSSParser(); cssParser.parse(elem.getContent(),styleManager); } else { ...
Flattens all CSS styles. Styles defined in a "style" attribute and in CSS rules are converted into attributes with the same name.
public T caseMarker(Marker object){ return null; }
Returns the result of interpreting the object as an instance of '<em>Marker</em>'. <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
private static ConfigSettings readConfiguration(final String path) throws IOException, SAXException, ParserConfigurationException { ConfigurationReader reader=new ConfigurationReader(path); return reader.read(); }
Reads and parses the configuration file.
public void writeTreeLikelihood(PartitionPattern partition,XMLWriter writer){ PartitionSubstitutionModel substModel=partition.getPartitionSubstitutionModel(); PartitionClockModel clockModel=partition.getPartitionClockModel(); writer.writeComment("Microsatellite Sampler Tree Likelihood"); writer.writeOpenTag(Mic...
Write Microsatellite Sampler tree likelihood XML block.
protected final V unwrapValue(V value){ return value; }
Unwraps a value
public static synchronized void logEnvironment(){ userLog("serial = " + License.getSerialNumber()); userLog("email = " + License.getPersonEmail()); logVersion(); final SortedMap<String,String> env=new TreeMap<>(Environment.getEnvironmentMap()); for ( final Map.Entry<String,String> e : env.entrySet()) { u...
Write a bunch of environmental information to the log stream, in the form of <code>(key,value)</code> pairs.
public void publish(LogRecord record){ if (!isLoggable(record)) return; int level=getLevel().intValue(); for (int i=0; i < _handlers.length; i++) { Handler handler=_handlers[i]; if (level <= handler.getLevel().intValue()) handler.publish(record); } }
Publishes the record.
public SVGOMFEPointLightElement(String prefix,AbstractDocument owner){ super(prefix,owner); initializeLiveAttributes(); }
Creates a new SVGOMFEPointLightElement object.
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { if (xmlWriter.getPrefix(namespace) == null) { xmlWriter.writeNamespace(prefix,namespace); x...
Util method to write an attribute with the ns prefix
public void write(byte[] b,int off,int len,long pos) throws IOException { if (b == null) { throw new NullPointerException("b == null!"); } if ((off < 0) || (len < 0) || (pos < 0)|| (off + len > b.length)|| (off + len < 0)) { throw new IndexOutOfBoundsException(); } long lastPos=pos + len - 1; if (la...
Overwrites and/or appends the cache from a byte array. The length of the cache will be extended as needed to hold the incoming data.
public static long parseDateValue(String s,int start,int end){ if (s.charAt(start) == '+') { start++; } int s1=s.indexOf('-',start + 1); int s2=s.indexOf('-',s1 + 1); if (s1 <= 0 || s2 <= s1) { throw new IllegalArgumentException(s); } int year=Integer.parseInt(s.substring(start,s1)); int month=I...
Parse a date string. The format is: [+|-]year-month-day
@Override public void close(){ manager.checkAccess(); target.close(); setLevel(Level.OFF); }
Close this handler and target handler, free all associated resources.
public boolean removeFromGoogleMap(){ if (googlePolyline != null) { googlePolyline.remove(); return true; } return false; }
Remove this polyline from a GoogleMap (if it was added).
public synchronized void updateLayerLabels(){ for ( LayerPane pane : getPanes()) { pane.updateLayerLabel(); } }
Update the layer names - if a layer name has changed, tell the LayerPanes to check with their layers to update their labels.