public class NumberNetServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements NumberNetService
NumberNetService.Util
Constructor and Description |
---|
NumberNetServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addExpectedTable(java.lang.String name)
Adds the expected table.
|
void |
addNameToTable(java.lang.String name,
java.lang.String table)
Adds the name to table.
|
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.
|
boolean |
getCalculatorKeyStateForTable(java.lang.String tableName,
CalculatorKey key)
Gets the calculator key state for table.
|
java.util.List<java.lang.String> |
getExpectedTables()
Gets the expected tables.
|
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> |
getNamesForTable(java.lang.String table)
Gets the names for table.
|
java.util.List<TableTarget> |
getTableTargets()
Gets the table targets.
|
void |
projectTable(java.lang.String table,
java.lang.String projector)
Project table.
|
void |
removeFromTable(java.lang.String name,
java.lang.String table)
Removes the from table.
|
void |
rotateTableContentAndTargets(java.util.List<TableTarget> to)
Rotate table content and targets.
|
void |
setCalculatorKeyStateForAllTables(CalculatorKey key,
boolean state)
Sets the calculator key state for all tables.
|
void |
setCalculatorKeyStateForTable(java.lang.String tableName,
CalculatorKey key,
boolean state)
Sets the calculator key state for table.
|
void |
setCalculatorVisibility(boolean visible)
Sets the calculator visibility.
|
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.
|
getSerializationPolicy, processCall, processPost
public void addExpectedTable(java.lang.String name)
NumberNetService
addExpectedTable
in interface NumberNetService
name
- the namepublic void addNameToTable(java.lang.String name, java.lang.String table)
NumberNetService
addNameToTable
in interface NumberNetService
name
- the nametable
- the tablepublic java.util.List<Participant> getAllParticipants()
NumberNetService
getAllParticipants
in interface NumberNetService
public java.util.List<java.lang.Double> getAllTargetsThatHaveOneOrMoreExpressions()
NumberNetService
getAllTargetsThatHaveOneOrMoreExpressions
in interface NumberNetService
public java.util.Map<CalculatorKey,java.lang.Boolean> getCalculatorAllKeyStatesForTable(java.lang.String tableName)
NumberNetService
getCalculatorAllKeyStatesForTable
in interface NumberNetService
tableName
- the table namepublic boolean getCalculatorKeyStateForTable(java.lang.String tableName, CalculatorKey key)
NumberNetService
getCalculatorKeyStateForTable
in interface NumberNetService
tableName
- the table namekey
- the keypublic java.util.List<java.lang.String> getExpectedTables()
NumberNetService
getExpectedTables
in interface NumberNetService
public java.util.List<Expression> getExpressionsForPerson(java.lang.String person)
NumberNetService
getExpressionsForPerson
in interface NumberNetService
person
- the personpublic java.util.List<Expression> getExpressionsForTable(java.lang.String table)
NumberNetService
getExpressionsForTable
in interface NumberNetService
table
- the tablepublic java.util.List<Expression> getExpressionsForTarget(double target)
NumberNetService
getExpressionsForTarget
in interface NumberNetService
target
- the targetpublic java.util.List<Participant> getNamesForTable(java.lang.String table)
NumberNetService
getNamesForTable
in interface NumberNetService
table
- the tablepublic java.util.List<TableTarget> getTableTargets()
NumberNetService
getTableTargets
in interface NumberNetService
public void projectTable(java.lang.String table, java.lang.String projector)
NumberNetService
projectTable
in interface NumberNetService
table
- the tableprojector
- the projectorpublic void removeFromTable(java.lang.String name, java.lang.String table)
NumberNetService
removeFromTable
in interface NumberNetService
name
- the nametable
- the tablepublic void rotateTableContentAndTargets(java.util.List<TableTarget> to)
NumberNetService
rotateTableContentAndTargets
in interface NumberNetService
to
- the topublic void setCalculatorKeyStateForAllTables(CalculatorKey key, boolean state)
NumberNetService
setCalculatorKeyStateForAllTables
in interface NumberNetService
key
- the keystate
- the statepublic void setCalculatorKeyStateForTable(java.lang.String tableName, CalculatorKey key, boolean state)
NumberNetService
setCalculatorKeyStateForTable
in interface NumberNetService
tableName
- the table namekey
- the keystate
- the statepublic void setCalculatorVisibility(boolean visible)
NumberNetService
setCalculatorVisibility
in interface NumberNetService
visible
- the new calculator visibilitypublic void setCorrectExpressionsVisibleForAllTables(boolean shouldBeVisible)
NumberNetService
setCorrectExpressionsVisibleForAllTables
in interface NumberNetService
shouldBeVisible
- the new correct expressions visible for all tablespublic void setGraphingModeEnabled(boolean graphingModeOn)
NumberNetService
setGraphingModeEnabled
in interface NumberNetService
graphingModeOn
- the new graphing mode enabledpublic void setIncorrectExpressionsVisibleForAllTables(boolean shouldBeVisible)
NumberNetService
setIncorrectExpressionsVisibleForAllTables
in interface NumberNetService
shouldBeVisible
- the new incorrect expressions visible for all
tablespublic void setOthersCorrectExpressionsVisibleForAllTables(boolean shouldBeVisible)
NumberNetService
setOthersCorrectExpressionsVisibleForAllTables
in interface NumberNetService
shouldBeVisible
- the new others correct expressions visible for all
tablespublic void setOthersIncorrectExpressionsVisibleForAllTables(boolean shouldBeVisible)
NumberNetService
setOthersIncorrectExpressionsVisibleForAllTables
in interface NumberNetService
shouldBeVisible
- the new others incorrect expressions visible for
all tablespublic void setProjectorDisplayMode(java.lang.String projector, ProjectionDisplayMode mode)
NumberNetService
setProjectorDisplayMode
in interface NumberNetService
projector
- the projectormode
- the modepublic void setScoresVisibleForAllTables(boolean shouldBeVisible)
NumberNetService
setScoresVisibleForAllTables
in interface NumberNetService
shouldBeVisible
- the new scores visible for all tablespublic void setTableInputEnabled(boolean enabled)
NumberNetService
setTableInputEnabled
in interface NumberNetService
enabled
- the new table input enabledpublic void setTableTargets(java.util.List<TableTarget> targets)
NumberNetService
setTableTargets
in interface NumberNetService
targets
- the new table targetspublic void setUnifyRotationModeEnabled(java.lang.String projector, boolean enabled)
NumberNetService
setUnifyRotationModeEnabled
in interface NumberNetService
projector
- the projectorenabled
- the enabledpublic void updatePositionInformationFromProjector(java.lang.String projector)
NumberNetService
updatePositionInformationFromProjector
in interface NumberNetService
projector
- the projector