本文整理汇总了Java中org.jmol.util.Logger.info方法的典型用法代码示例。如果您正苦于以下问题:Java Logger.info方法的具体用法?Java Logger.info怎么用?Java Logger.info使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jmol.util.Logger
的用法示例。
在下文中一共展示了Logger.info方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readPartialCharges
import org.jmol.util.Logger; //导入方法依赖的package包/类
/**
* Reads partial charges and assigns them only to the last atom set.
* @throws Exception When an I/O error or discardlines error occurs
*/
// TODO this really should set the charges for the last nOrientations read
// being careful about the dummy atoms...
void readPartialCharges() throws Exception {
discardLines(1);
int atomCount = atomSetCollection.getAtomCount();
int i0 = atomSetCollection.getLastAtomSetAtomIndex();
Atom[] atoms = atomSetCollection.getAtoms();
for (int i = i0; i < atomCount; ++i) {
// first skip over the dummy atoms
while (atoms[i].elementNumber == 0)
++i;
// assign the partial charge
float charge = parseFloat(getTokens(readLine())[2]);
atoms[i].partialCharge = charge;
}
Logger.info("Mulliken charges found for Model " + atomSetCollection.getAtomSetCount());
}
示例2: setAtomProperties
import org.jmol.util.Logger; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
private void setAtomProperties() {
int atomIndex = baseAtomIndex;
int modelAtomCount = 0;
for (int i = baseModelIndex; i < modelCount; atomIndex += modelAtomCount, i++) {
modelAtomCount = models[i].bsAtoms.cardinality();
Map<String, String> atomProperties = (Map<String, String>) getModelAuxiliaryInfo(i,
"atomProperties");
if (atomProperties == null)
continue;
for (Map.Entry<String, String> entry : atomProperties.entrySet()) {
String key = entry.getKey();
String value = entry.getValue();
// no deletions yet...
BitSet bs = getModelAtomBitSetIncludingDeleted(i, true);
key = "property_" + key.toLowerCase();
Logger.info("creating " + key + " for model " + getModelName(i));
viewer.setData(key, new Object[] { key, value, bs }, atomCount, 0,
0, Integer.MAX_VALUE, 0);
}
}
}
示例3: createAtomSetCollectionFromString
import org.jmol.util.Logger; //导入方法依赖的package包/类
Object createAtomSetCollectionFromString(String strModel,
StringBuffer loadScript,
Map<String, Object> htParams,
boolean isAppend,
boolean isLoadVariable) {
if (!isLoadVariable)
DataManager.getInlineData(loadScript, strModel, isAppend, viewer
.getDefaultLoadFilter());
setLoadState(htParams);
Logger.info("FileManager.getAtomSetCollectionFromString()");
FileReader fileReader = new FileReader("string", "string", "string", null,
getBufferedReaderForString(strModel), htParams, isAppend);
fileReader.run();
if (!isAppend && !(fileReader.atomSetCollection instanceof String)) {
viewer.zap(false, true, false);
fullPathName = fileName = (strModel == JmolConstants.MODELKIT_ZAP_STRING ? JmolConstants.MODELKIT_ZAP_TITLE
: "string");
}
return fileReader.atomSetCollection;
}
示例4: initializeReader
import org.jmol.util.Logger; //导入方法依赖的package包/类
@Override
protected void initializeReader() throws Exception {
while (mopacVersion == 0) {
discardLinesUntilContains("MOPAC");
if (line.indexOf("2009") >= 0)
mopacVersion = 2009;
else if (line.indexOf("6.") >= 0)
mopacVersion = 6;
else if (line.indexOf("7.") >= 0)
mopacVersion = 7;
else if (line.indexOf("93") >= 0)
mopacVersion = 93;
else if (line.indexOf("2002") >= 0)
mopacVersion = 2002;
}
Logger.info("MOPAC version " + mopacVersion);
}
示例5: acceptConnections
import org.jmol.util.Logger; //导入方法依赖的package包/类
/**
*
*/
private void acceptConnections() {
while (!_mySocket.isClosed()) {
try {
if (port == NetworkConfiguration.DEVICE_PORT) {
Logger.info("[GestureServer] Accepting device connections");
acceptConnection(_mySocket.accept());
return; // only one of these
}
Logger.info("[GestureServer] Accepting client connections");
acceptConnection(_mySocket.accept());
} catch (IOException e) {
Logger.error("[GestureServer] Failed to establish connection on port " + port);
e.printStackTrace();
}
}
Logger.info("[GestureServer] Socket Closed on port " + port);
}
示例6: processMep
import org.jmol.util.Logger; //导入方法依赖的package包/类
private void processMep() {
for (int atomIndex = qmAtoms.length; --atomIndex >= 0;) {
if ((thisAtom = qmAtoms[atomIndex]) == null)
continue;
float x0 = potentials[atomIndex];
if (Logger.debugging)
Logger.info("process map for atom " + atomIndex + thisAtom + " charge=" + x0);
thisAtom.setXYZ(true);
for (int ix = xMax; --ix >= xMin;) {
float dX = X2[ix];
for (int iy = yMax; --iy >= yMin;) {
float dXY = dX + Y2[iy];
for (int iz = zMax; --iz >= zMin;) {
voxelData[ix][iy][iz] += valueFor(x0, dXY + Z2[iz], distanceMode);
}
}
}
}
}
示例7: gotoData
import org.jmol.util.Logger; //导入方法依赖的package包/类
@Override
protected void gotoData(int n, int nPoints) throws Exception {
//called by VolumeFileReader.readVoxelData
if (n > 0)
Logger.info("skipping " + n + " data sets, " + nPoints + " points each");
vertexDataOnly = jvxlData.vertexDataOnly = (nPoints == 0);
for (int i = 0; i < n; i++) {
jvxlReadDefinitionLine(true);
Logger.info("JVXL skipping: jvxlSurfaceDataCount=" + surfaceDataCount
+ " jvxlEdgeDataCount=" + edgeDataCount
+ " jvxlDataIsColorMapped=" + jvxlDataIsColorMapped);
jvxlSkipData(nPoints, true);
}
jvxlReadDefinitionLine(true);
}
示例8: runNextScript
import org.jmol.util.Logger; //导入方法依赖的package包/类
private boolean runNextScript() {
if (scriptQueue.size() == 0)
return false;
//Logger.info("SCRIPT QUEUE BUSY" + scriptQueue.size());
List<Object> scriptItem = getScriptItem(false, startedByCommandThread);
if (scriptItem == null)
return false;
String script = (String) scriptItem.get(0);
String statusList = (String) scriptItem.get(1);
String returnType = (String) scriptItem.get(2);
boolean isScriptFile = ((Boolean) scriptItem.get(3)).booleanValue();
boolean isQuiet = ((Boolean) scriptItem.get(4)).booleanValue();
if (Logger.debugging) {
Logger.info("Queue[" + pt + "][" + scriptQueue.size()
+ "] scripts; running: " + script);
}
//System.out.println("removing: " + scriptItem);
scriptQueue.remove(0);
//System.out.println("removed: " + scriptItem);
runScript(returnType, script, statusList, isScriptFile, isQuiet);
if (scriptQueue.size() == 0) {// might have been cleared with an exit
//Logger.info("SCRIPT QUEUE READY", 0);
return false;
}
return true;
}
示例9: getString
import org.jmol.util.Logger; //导入方法依赖的package包/类
private String getString(String string) {
if (!doTranslate || translationResourcesCount == 0)
return string;
for (int bundle = 0; bundle < translationResourcesCount; bundle++) {
try {
String trans = translationResources[bundle].getString(string);
return trans;
} catch (MissingResourceException e) {
// Normal
}
}
if (Logger.debugging) {
Logger.info("No trans, using default: " + string);
}
return string;
}
示例10: gotoData
import org.jmol.util.Logger; //导入方法依赖的package包/类
@Override
protected void gotoData(int n, int nPoints) throws Exception {
if (!params.blockCubeData)
return;
if (n > 0)
Logger.info("skipping " + n + " data sets, " + nPoints + " points each");
for (int i = 0; i < n; i++)
skipData(nPoints);
}
示例11: waitForQueue
import org.jmol.util.Logger; //导入方法依赖的package包/类
public void waitForQueue() {
int n = 0;
while (queueThreads[0] != null || queueThreads[1] != null) {
try {
Thread.sleep(100);
if (((n++) % 10) == 0)
if (Logger.debugging) {
Logger.info("...scriptManager waiting for queue: "
+ scriptQueue.size() + " thread=" + Thread.currentThread().getName());
}
} catch (InterruptedException e) {
}
}
}
示例12: checkIn
import org.jmol.util.Logger; //导入方法依赖的package包/类
synchronized static void checkIn(String name, Applet applet) {
cleanRegistry();
if (name != null) {
Logger.info("AppletRegistry.checkIn(" + name + ")");
htRegistry.put(name, applet);
}
if (Logger.debugging) {
for (Map.Entry<String, Applet> entry : htRegistry.entrySet()) {
String theApplet = entry.getKey();
Logger.debug(theApplet + " " + entry.getValue());
}
}
}
示例13: hklParameter
import org.jmol.util.Logger; //导入方法依赖的package包/类
private Point4f hklParameter(int i) throws ScriptException {
if (!isSyntaxCheck && viewer.getCurrentUnitCell() == null)
error(ERROR_noUnitCell);
Point3f pt = (Point3f) getPointOrPlane(i, false, true, false, true, 3, 3);
Point4f p = getHklPlane(pt);
if (p == null)
error(ERROR_badMillerIndices);
if (!isSyntaxCheck && Logger.debugging)
Logger.info("defined plane: " + p);
return p;
}
示例14: gotoData
import org.jmol.util.Logger; //导入方法依赖的package包/类
@Override
protected void gotoData(int n, int nPoints) throws Exception {
if (n > 0)
Logger.info("skipping " + n + " data sets, " + nPoints + " points each");
vertexDataOnly = jvxlData.vertexDataOnly = (nPoints == 0);
for (int i = 0; i < n; i++) {
jvxlSkipData(nPoints, true);
}
xr.toTag("jvxlSurface");
jvxlReadSurfaceInfo();
}
示例15: ScriptMathProcessor
import org.jmol.util.Logger; //导入方法依赖的package包/类
ScriptMathProcessor(ScriptEvaluator eval, boolean isArrayItem,
boolean asVector, boolean asBitSet) {
this.eval = eval;
this.viewer = eval.viewer;
this.logMessages = eval.logMessages;
this.isSyntaxCheck = wasSyntaxCheck = eval.isSyntaxCheck;
this.isArrayItem = isArrayItem;
this.asVector = asVector || isArrayItem;
this.asBitSet = asBitSet;
wasX = isArrayItem;
if (logMessages)
Logger.info("initialize RPN");
}