|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.webapp.exercises.tools.Exercise
public class Exercise
| Constructor Summary | |
|---|---|
Exercise(String exerciseId,
String interactionId,
org.jdom.Element metadata)
|
|
| Method Summary | |
|---|---|
protected void |
addEdge(Edge edge)
|
String |
addInteraction()
add new empty interaction to exercise with automaticly assigned interactionId |
void |
addInteraction(String interactionId)
add new empty interaction to exercise |
void |
addInteractionGenerator(org.jdom.Element interactionGenerator)
add as the case may be replace Element interaction_generator |
void |
addMetadata(org.jdom.Element metadata)
add as the case may be replace Element metadata |
void |
addProblemstatement(List content)
|
List |
edges()
|
List |
edgesByFrom(String from)
|
List |
edgesByTo(String to)
|
org.jdom.Document |
getCleanedDocument()
|
Interaction |
getCurrentInteraction()
|
org.jdom.Document |
getDocument()
|
String |
getExerciseId()
|
org.jdom.Element |
getInteractionGenerator()
|
Map |
getInteractions()
|
org.jdom.Element |
getMetadata()
|
org.jdom.Element |
getProblemstatement()
|
boolean |
isAutomatic()
|
protected void |
removeEdge(Edge edge)
|
protected void |
removeEdgesToNode(String interactionId)
|
void |
removeInteraction(String interactionId)
|
void |
rotate(String interactionId)
|
void |
setAutomatic(boolean a)
|
void |
setCurrentInteraction(String interactionId)
|
void |
sort(org.jdom.Document document)
|
String |
suggestInteractionId()
|
Vertex |
vertexById(String id)
|
List |
vertices()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Exercise(String exerciseId,
String interactionId,
org.jdom.Element metadata)
| Method Detail |
|---|
public void addMetadata(org.jdom.Element metadata)
org.jdom.Element - metadata to be addedpublic void addInteractionGenerator(org.jdom.Element interactionGenerator)
org.jdom.Element - interactionGenerator to be addedpublic String addInteraction()
public void addInteraction(String interactionId)
java.lang.String - interactionIdpublic void addProblemstatement(List content)
public String getExerciseId()
public Interaction getCurrentInteraction()
public org.jdom.Element getMetadata()
public org.jdom.Element getInteractionGenerator()
public org.jdom.Element getProblemstatement()
public void setCurrentInteraction(String interactionId)
public void removeInteraction(String interactionId)
public String suggestInteractionId()
public Map getInteractions()
public org.jdom.Document getDocument()
public org.jdom.Document getCleanedDocument()
public void rotate(String interactionId)
public void sort(org.jdom.Document document)
protected void addEdge(Edge edge)
protected void removeEdge(Edge edge)
protected void removeEdgesToNode(String interactionId)
public List vertices()
vertices in interface Graphpublic List edges()
edges in interface Graphpublic Vertex vertexById(String id)
vertexById in interface Graphpublic List edgesByFrom(String from)
edgesByFrom in interface Graphpublic List edgesByTo(String to)
edgesByTo in interface Graphpublic void setAutomatic(boolean a)
public boolean isAutomatic()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||