📄 paper.html
字号:
public <B>Paper</B>(java.lang.String pName)</PRE>
<DL>
<DD>Create an empty paper with paper name = pName
<P>
<DT><B>Parameters:</B><DD><CODE>pName</CODE> - paper Name</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="addQuestion(paper.AbstractQuestion)"><!-- --></A><H3>
addQuestion</H3>
<PRE>
public void <B>addQuestion</B>(<A HREF="../paper/AbstractQuestion.html">AbstractQuestion</A> q)</PRE>
<DL>
<DD>Appends a question at the end of questions set
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>q</CODE> - the question to be Appended</DL>
</DD>
</DL>
<HR>
<A NAME="calScore()"><!-- --></A><H3>
calScore</H3>
<PRE>
public int <B>calScore</B>()</PRE>
<DL>
<DD>calculate total score of user's answer
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>int of score</DL>
</DD>
</DL>
<HR>
<A NAME="getAnswer(int)"><!-- --></A><H3>
getAnswer</H3>
<PRE>
public <A HREF="../paper/AbstractAnswer.html">AbstractAnswer</A> <B>getAnswer</B>(int index)</PRE>
<DL>
<DD>get user answer
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - user's answer index<DT><B>Returns:</B><DD>user's answer</DL>
</DD>
</DL>
<HR>
<A NAME="getKey(int)"><!-- --></A><H3>
getKey</H3>
<PRE>
public <A HREF="../paper/AbstractAnswer.html">AbstractAnswer</A> <B>getKey</B>(int index)</PRE>
<DL>
<DD>get key answer
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - key answer index<DT><B>Returns:</B><DD>key answer</DL>
</DD>
</DL>
<HR>
<A NAME="getName()"><!-- --></A><H3>
getName</H3>
<PRE>
public java.lang.String <B>getName</B>()</PRE>
<DL>
<DD>get the Name of paper
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>String of paper name</DL>
</DD>
</DL>
<HR>
<A NAME="getQuestion(int)"><!-- --></A><H3>
getQuestion</H3>
<PRE>
public <A HREF="../paper/AbstractQuestion.html">AbstractQuestion</A> <B>getQuestion</B>(int index)</PRE>
<DL>
<DD>get the question at the specified position
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - question position<DT><B>Returns:</B><DD>AbstractQuestion</DL>
</DD>
</DL>
<HR>
<A NAME="getQuestionCount()"><!-- --></A><H3>
getQuestionCount</H3>
<PRE>
public int <B>getQuestionCount</B>()</PRE>
<DL>
<DD>return how many questions in the paper
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>int of question acount</DL>
</DD>
</DL>
<HR>
<A NAME="setAnswer(int, paper.AbstractAnswer)"><!-- --></A><H3>
setAnswer</H3>
<PRE>
public void <B>setAnswer</B>(int index, <A HREF="../paper/AbstractAnswer.html">AbstractAnswer</A> ans)</PRE>
<DL>
<DD>Replaces the Answer at the specified position with ans
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the positon ans will be placed<DD><CODE>ans</CODE> - new AbstractAnswer</DL>
</DD>
</DL>
<HR>
<A NAME="setName(java.lang.String)"><!-- --></A><H3>
setName</H3>
<PRE>
public void <B>setName</B>(java.lang.String name)</PRE>
<DL>
<DD>change paper name to name
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - new name of the paper</DL>
</DD>
</DL>
<HR>
<A NAME="setQuestion(int, paper.AbstractQuestion)"><!-- --></A><H3>
setQuestion</H3>
<PRE>
public void <B>setQuestion</B>(int index, <A HREF="../paper/AbstractQuestion.html">AbstractQuestion</A> q)</PRE>
<DL>
<DD>Replaces the Question at the specified position with q
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the positon q will be placed<DD><CODE>q</CODE> - new question</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Paper.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../paper/FactualQuestion.html"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="Paper.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -