public class TeacherControlComms
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addExpectedTable(java.lang.String name)
Adds the expected table.
|
void |
assignParticipantToTable(java.lang.String table,
java.lang.String participant)
Assign participant to table.
|
static TeacherControlComms |
get()
Gets the.
|
java.util.List<Participant> |
getAllParticipants()
Gets the all participants.
|
java.util.List<java.lang.Double> |
getAllTargetsThatHaveOneOrMoreExpressions()
Gets the all targets that have one or more expressions.
|
java.util.Map<CalculatorKey,java.lang.Boolean> |
getCalculatorAllKeyStatesForTable(java.lang.String tableName)
Gets the calculator all key states for table.
|
java.util.List<java.lang.String> |
getExpectedTablesList()
Gets the expected tables list.
|
java.util.List<Expression> |
getExpressionsForPerson(java.lang.String person)
Gets the expressions for person.
|
java.util.List<Expression> |
getExpressionsForTable(java.lang.String table)
Gets the expressions for table.
|
java.util.List<Expression> |
getExpressionsForTarget(double target)
Gets the expressions for target.
|
java.util.List<Participant> |
getParticipantListForTable(java.lang.String table)
Gets the participant list for table.
|
ProjectorDevice |
getProjectorDeviceForName(java.lang.String device)
Gets the projector device for name.
|
NumberNetStudentTableClusteredData |
getStudentTableDeviceForName(java.lang.String device)
Gets the student table device for name.
|
java.util.List<TableTarget> |
getTableTargets()
Gets the table targets.
|
void |
projectTable(java.lang.String table,
java.lang.String projector)
Project table.
|
void |
removeParticipantFromTable(java.lang.String table,
java.lang.String name)
Removes the participant from table.
|
void |
rotateTableContentAndTargets(java.util.List<TableTarget> to)
Rotate table content and targets.
|
void |
setAllCalculatorsVisible(boolean visible)
Sets the all calculators visible.
|
void |
setCalculatorKeyStateForAllTables(CalculatorKey key,
boolean state)
Sets the calculator key state for all tables.
|
void |
setCorrectExpressionsVisibleForAllTables(boolean shouldBeVisible)
Sets the correct expressions visible for all tables.
|
void |
setGraphingModeEnabled(boolean graphingModeOn)
Sets the graphing mode enabled.
|
void |
setIncorrectExpressionsVisibleForAllTables(boolean shouldBeVisible)
Sets the incorrect expressions visible for all tables.
|
void |
setOthersCorrectExpressionsVisibleForAllTables(boolean shouldBeVisible)
Sets the others correct expressions visible for all tables.
|
void |
setOthersIncorrectExpressionsVisibleForAllTables(boolean shouldBeVisible)
Sets the others incorrect expressions visible for all tables.
|
void |
setProjectorDisplayMode(java.lang.String projector,
ProjectionDisplayMode mode)
Sets the projector display mode.
|
void |
setScoresVisibleForAllTables(boolean shouldBeVisible)
Sets the scores visible for all tables.
|
void |
setTableInputEnabled(boolean enabled)
Sets the table input enabled.
|
void |
setTableTargets(java.util.List<TableTarget> targets)
Sets the table targets.
|
void |
setUnifyRotationModeEnabled(java.lang.String projector,
boolean enabled)
Sets the unify rotation mode enabled.
|
void |
updatePositionInformationFromProjector(java.lang.String projector)
Update position information from projector.
|
public static TeacherControlComms get()
public void addExpectedTable(java.lang.String name)
name
- the namepublic void assignParticipantToTable(java.lang.String table, java.lang.String participant)
table
- the tableparticipant
- the participantpublic java.util.List<Participant> getAllParticipants()
public java.util.List<java.lang.Double> getAllTargetsThatHaveOneOrMoreExpressions()
public java.util.Map<CalculatorKey,java.lang.Boolean> getCalculatorAllKeyStatesForTable(java.lang.String tableName)
tableName
- the table namepublic java.util.List<java.lang.String> getExpectedTablesList()
public java.util.List<Expression> getExpressionsForPerson(java.lang.String person)
person
- the personpublic java.util.List<Expression> getExpressionsForTable(java.lang.String table)
table
- the tablepublic java.util.List<Expression> getExpressionsForTarget(double target)
target
- the targetpublic java.util.List<Participant> getParticipantListForTable(java.lang.String table)
table
- the tablepublic ProjectorDevice getProjectorDeviceForName(java.lang.String device)
device
- the devicepublic NumberNetStudentTableClusteredData getStudentTableDeviceForName(java.lang.String device)
device
- the devicepublic java.util.List<TableTarget> getTableTargets()
public void projectTable(java.lang.String table, java.lang.String projector)
table
- the tableprojector
- the projectorpublic void removeParticipantFromTable(java.lang.String table, java.lang.String name)
table
- the tablename
- the namepublic void rotateTableContentAndTargets(java.util.List<TableTarget> to)
to
- the topublic void setAllCalculatorsVisible(boolean visible)
visible
- the new all calculators visiblepublic void setCalculatorKeyStateForAllTables(CalculatorKey key, boolean state)
key
- the keystate
- the statepublic void setCorrectExpressionsVisibleForAllTables(boolean shouldBeVisible)
shouldBeVisible
- the new correct expressions visible for all tablespublic void setGraphingModeEnabled(boolean graphingModeOn)
graphingModeOn
- the new graphing mode enabledpublic void setIncorrectExpressionsVisibleForAllTables(boolean shouldBeVisible)
shouldBeVisible
- the new incorrect expressions visible for all
tablespublic void setOthersCorrectExpressionsVisibleForAllTables(boolean shouldBeVisible)
shouldBeVisible
- the new others correct expressions visible for all
tablespublic void setOthersIncorrectExpressionsVisibleForAllTables(boolean shouldBeVisible)
shouldBeVisible
- the new others incorrect expressions visible for
all tablespublic void setProjectorDisplayMode(java.lang.String projector, ProjectionDisplayMode mode)
projector
- the projectormode
- the modepublic void setScoresVisibleForAllTables(boolean shouldBeVisible)
shouldBeVisible
- the new scores visible for all tablespublic void setTableInputEnabled(boolean enabled)
enabled
- the new table input enabledpublic void setTableTargets(java.util.List<TableTarget> targets)
targets
- the new table targetspublic void setUnifyRotationModeEnabled(java.lang.String projector, boolean enabled)
projector
- the projectorenabled
- the enabledpublic void updatePositionInformationFromProjector(java.lang.String projector)
projector
- the projector