diff --git a/.metadata/.log b/.metadata/.log index 1d0b556..a2213d5 100644 --- a/.metadata/.log +++ b/.metadata/.log @@ -1860,3 +1860,835 @@ Java Model Exception: Java Model Status [GameBoard.java [in br.unb.cic.poo.view !MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.editor.actions.refactorPropertyElementAction !SUBENTRY 1 org.eclipse.ui 4 0 2016-05-04 20:39:24.517 !MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-04 22:35:08.824 +!MESSAGE GameView.java [in br.unb.cic.poo.view [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [GameView.java [in br.unb.cic.poo.view [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-04 22:35:08.824 +!MESSAGE GameView.java [in br.unb.cic.poo.view [in src [in GameOfLife]]] does not exist + +!ENTRY org.eclipse.jdt.ui 4 10001 2016-05-04 22:59:56.162 +!MESSAGE Internal Error +!STACK 1 +org.eclipse.core.runtime.CoreException: The fix 'Add type arguments to 'JComboBox'' generated a null change. + at org.eclipse.jdt.internal.corext.fix.CompilationUnitRewriteOperationsFix.createChange(CompilationUnitRewriteOperationsFix.java:106) + at org.eclipse.jdt.internal.ui.text.correction.proposals.FixCorrectionProposal.createTextChange(FixCorrectionProposal.java:159) + at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.createChange(CUCorrectionProposal.java:244) + at org.eclipse.jdt.ui.text.java.correction.ChangeCorrectionProposal.getChange(ChangeCorrectionProposal.java:377) + at org.eclipse.jdt.ui.text.java.correction.ChangeCorrectionProposal.performChange(ChangeCorrectionProposal.java:137) + at org.eclipse.jdt.internal.ui.text.correction.proposals.LinkedCorrectionProposal.performChange(LinkedCorrectionProposal.java:150) + at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.apply(CUCorrectionProposal.java:184) + at org.eclipse.jdt.internal.ui.text.correction.proposals.FixCorrectionProposal.apply(FixCorrectionProposal.java:191) + at org.eclipse.jdt.internal.ui.text.java.hover.AbstractAnnotationHover$AnnotationInformationControl.apply(AbstractAnnotationHover.java:533) + at org.eclipse.jdt.internal.ui.text.java.hover.AbstractAnnotationHover$AnnotationInformationControl.access$2(AbstractAnnotationHover.java:515) + at org.eclipse.jdt.internal.ui.text.java.hover.AbstractAnnotationHover$AnnotationInformationControl$5.widgetSelected(AbstractAnnotationHover.java:509) + at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) + at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) + at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362) + at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113) + at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1137) + at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1154) + at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1094) + at org.eclipse.swt.widgets.Control.wmNotify(Control.java:5704) + at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1956) + at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:5256) + at org.eclipse.swt.widgets.Control.windowProc(Control.java:4732) + at org.eclipse.swt.widgets.Display.windowProc(Display.java:5063) + at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) + at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2443) + at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172) + at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:2131) + at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:5069) + at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:930) + at org.eclipse.swt.widgets.Control.windowProc(Control.java:4713) + at org.eclipse.swt.widgets.Display.windowProc(Display.java:5063) + at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) + at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549) + at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3767) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127) + at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018) + at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156) + at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694) + at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) + at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606) + at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) + at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139) + at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) + at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) + at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) + at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) + at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) + at java.lang.reflect.Method.invoke(Unknown Source) + at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669) + at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608) + at org.eclipse.equinox.launcher.Main.run(Main.java:1515) +!SUBENTRY 1 org.eclipse.jdt.ui 4 0 2016-05-04 22:59:56.162 +!MESSAGE The fix 'Add type arguments to 'JComboBox'' generated a null change. + +!ENTRY org.eclipse.jdt.core 4 969 2016-05-04 23:30:54.089 +!MESSAGE actionPerformed(ActionEvent) [in [in actionPerformed(ActionEvent) [in GameGUI [in [Working copy] GameGUI.java [in br.unb.cic.poo.view [in src [in GameOfLife]]]]]]] does not exist + +!ENTRY org.eclipse.jdt.core 4 969 2016-05-04 23:31:41.453 +!MESSAGE actionPerformed(ActionEvent) [in [in actionPerformed(ActionEvent) [in GameGUI [in [Working copy] GameGUI.java [in br.unb.cic.poo.view [in src [in GameOfLife]]]]]]] does not exist + +!ENTRY org.eclipse.jdt.core 4 969 2016-05-04 23:31:58.296 +!MESSAGE actionPerformed(ActionEvent) [in [in actionPerformed(ActionEvent) [in GameGUI [in [Working copy] GameGUI.java [in br.unb.cic.poo.view [in src [in GameOfLife]]]]]]] does not exist + +!ENTRY org.eclipse.egit.core 4 0 2016-05-05 00:21:22.964 +!MESSAGE Ignoring /GameOfLife/bin/br failed +!STACK 0 +java.io.IOException: File not found: E:\Dropbox\UnB\4° Semestre (1.2016)\Programação Orientada a Objetos\Trabalhos\GameOfLife\GameOfLife\bin\.gitignore. + at org.eclipse.egit.core.ContainerTreeIterator$ResourceEntry.openInputStream(ContainerTreeIterator.java:392) + at org.eclipse.jgit.treewalk.WorkingTreeIterator$PerDirectoryIgnoreNode.load(WorkingTreeIterator.java:1216) + at org.eclipse.jgit.treewalk.WorkingTreeIterator.getIgnoreNode(WorkingTreeIterator.java:651) + at org.eclipse.jgit.treewalk.WorkingTreeIterator.isEntryIgnored(WorkingTreeIterator.java:619) + at org.eclipse.jgit.treewalk.WorkingTreeIterator.isEntryIgnored(WorkingTreeIterator.java:599) + at org.eclipse.jgit.treewalk.WorkingTreeIterator.isEntryIgnored(WorkingTreeIterator.java:586) + at org.eclipse.egit.core.RepositoryUtil.canBeAutoIgnored(RepositoryUtil.java:609) + at org.eclipse.egit.core.Activator$IgnoreDerivedResources$1.visit(Activator.java:586) + at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:63) + at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:74) + at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:74) + at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:74) + at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:47) + at org.eclipse.egit.core.Activator$IgnoreDerivedResources.resourceChanged(Activator.java:562) + at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:299) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:289) + at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:152) + at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:373) + at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1470) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:157) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +Caused by: org.eclipse.core.runtime.CoreException: File not found: E:\Dropbox\UnB\4° Semestre (1.2016)\Programação Orientada a Objetos\Trabalhos\GameOfLife\GameOfLife\bin\.gitignore. + at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:49) + at org.eclipse.core.internal.filesystem.local.LocalFile.openInputStream(LocalFile.java:391) + at org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:834) + at org.eclipse.core.internal.resources.File.getContents(File.java:269) + at org.eclipse.egit.core.ContainerTreeIterator$ResourceEntry.openInputStream(ContainerTreeIterator.java:390) + ... 22 more +Caused by: java.io.FileNotFoundException: E:\Dropbox\UnB\4° Semestre (1.2016)\Programação Orientada a Objetos\Trabalhos\GameOfLife\GameOfLife\bin\.gitignore (The system cannot find the file specified) + at java.io.FileInputStream.open0(Native Method) + at java.io.FileInputStream.open(Unknown Source) + at java.io.FileInputStream.(Unknown Source) + at org.eclipse.core.internal.filesystem.local.LocalFile.openInputStream(LocalFile.java:382) + ... 25 more +!SESSION 2016-05-05 21:37:05.078 ----------------------------------------------- +eclipse.buildId=4.5.2.M20160212-1500 +java.version=1.8.0_74 +java.vendor=Oracle Corporation +BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US +Framework arguments: -product org.eclipse.epp.package.java.product +Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product + +!ENTRY org.eclipse.wst.common.project.facet.core 4 0 2016-05-05 21:37:53.521 +!MESSAGE Project facet jst.web has not been defined. It is used in plugin org.eclipse.jst.j2ee. + +!ENTRY org.eclipse.wst.common.project.facet.core 4 0 2016-05-05 21:37:53.615 +!MESSAGE Project facet jst.webfragment has not been defined. It is used in plugin org.eclipse.jst.j2ee. + +!ENTRY org.eclipse.ui 4 4 2016-05-05 22:18:43.506 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.refactorBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-05 22:18:43.507 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-05 22:18:43.634 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.moveBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-05 22:18:43.634 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-05 22:18:43.637 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.editor.actions.refactorPropertyElementAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-05 22:18:43.638 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-05 22:18:43.764 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.refactorBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-05 22:18:43.764 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-05 22:18:43.767 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.moveBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-05 22:18:43.767 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-05 22:18:43.770 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.editor.actions.refactorPropertyElementAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-05 22:18:43.770 +!MESSAGE Action must implement IEditorActionDelegate +!SESSION 2016-05-11 18:19:15.768 ----------------------------------------------- +eclipse.buildId=4.5.2.M20160212-1500 +java.version=1.8.0_74 +java.vendor=Oracle Corporation +BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US +Framework arguments: -product org.eclipse.epp.package.java.product +Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product + +!ENTRY org.eclipse.ui 4 4 2016-05-11 18:19:43.857 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.refactorBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 18:19:43.857 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 18:19:43.922 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.moveBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 18:19:43.922 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 18:19:43.926 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.editor.actions.refactorPropertyElementAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 18:19:43.926 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.wst.common.project.facet.core 4 0 2016-05-11 18:19:44.046 +!MESSAGE Project facet jst.web has not been defined. It is used in plugin org.eclipse.jst.j2ee. + +!ENTRY org.eclipse.wst.common.project.facet.core 4 0 2016-05-11 18:19:44.050 +!MESSAGE Project facet jst.webfragment has not been defined. It is used in plugin org.eclipse.jst.j2ee. + +!ENTRY org.eclipse.ui 4 4 2016-05-11 18:19:44.171 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.refactorBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 18:19:44.171 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 18:19:44.174 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.moveBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 18:19:44.175 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 18:19:44.178 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.editor.actions.refactorPropertyElementAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 18:19:44.178 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 19:00:34.781 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.refactorBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 19:00:34.781 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 19:00:34.804 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.moveBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 19:00:34.804 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 19:00:34.808 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.editor.actions.refactorPropertyElementAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 19:00:34.808 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 19:00:34.841 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.refactorBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 19:00:34.841 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 19:00:34.844 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.moveBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 19:00:34.844 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 19:00:34.847 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.editor.actions.refactorPropertyElementAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 19:00:34.847 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-11 20:12:29.180 +!MESSAGE Anneal.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [Anneal.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-11 20:12:29.181 +!MESSAGE Anneal.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-11 20:12:29.199 +!MESSAGE Conway.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [Conway.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-11 20:12:29.200 +!MESSAGE Conway.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-11 20:12:29.208 +!MESSAGE DayAndNight.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [DayAndNight.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-11 20:12:29.208 +!MESSAGE DayAndNight.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-11 20:12:29.214 +!MESSAGE Diamoeba.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [Diamoeba.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-11 20:12:29.214 +!MESSAGE Diamoeba.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-11 20:16:07.398 +!MESSAGE Anneal.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [Anneal.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-11 20:16:07.398 +!MESSAGE Anneal.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-11 20:16:07.404 +!MESSAGE Conway.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [Conway.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-11 20:16:07.405 +!MESSAGE Conway.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-11 20:16:07.410 +!MESSAGE DayAndNight.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [DayAndNight.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-11 20:16:07.410 +!MESSAGE DayAndNight.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-11 20:16:07.417 +!MESSAGE Diamoeba.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [Diamoeba.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-11 20:16:07.417 +!MESSAGE Diamoeba.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-11 20:16:32.881 +!MESSAGE HighLife.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [HighLife.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-11 20:16:32.882 +!MESSAGE HighLife.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-11 20:16:32.887 +!MESSAGE LifeWithoutDeath.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [LifeWithoutDeath.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-11 20:16:32.888 +!MESSAGE LifeWithoutDeath.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-11 20:16:32.894 +!MESSAGE Morley.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [Morley.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-11 20:16:32.894 +!MESSAGE Morley.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-11 20:16:32.899 +!MESSAGE Replicator.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [Replicator.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-11 20:16:32.899 +!MESSAGE Replicator.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist + +!ENTRY org.springframework.ide.eclipse.boot 4 0 2016-05-11 20:16:55.984 +!MESSAGE Seeds.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist +!STACK 1 +Java Model Exception: Java Model Status [Seeds.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist] + at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:566) + at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247) + at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316) + at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302) + at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:257) + at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:271) + at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:923) + at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes(CompilationUnit.java:608) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule$ValidationVisitor.visit(MissingConfigurationProcessorRule.java:130) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:200) + at org.springframework.ide.eclipse.boot.validation.MissingConfigurationProcessorRule.validate(MissingConfigurationProcessorRule.java:1) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:280) + at org.springframework.ide.eclipse.core.model.AbstractModelElement.accept(AbstractModelElement.java:131) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:142) + at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:104) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:260) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:257) + at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:131) + at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) + at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) + at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) + at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) + at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) + at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) + at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) + at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) +!SUBENTRY 1 org.eclipse.jdt.core 4 969 2016-05-11 20:16:55.985 +!MESSAGE Seeds.java [in br.unb.cic.poo.engine [in src [in GameOfLife]]] does not exist + +!ENTRY org.eclipse.ui 4 4 2016-05-11 20:21:40.823 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.refactorBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 20:21:40.823 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 20:21:40.832 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.moveBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 20:21:40.832 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 20:21:40.841 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.editor.actions.refactorPropertyElementAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 20:21:40.841 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 20:21:40.877 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.refactorBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 20:21:40.877 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 20:21:40.883 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.refactoring.context.moveBeanClassAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 20:21:40.883 +!MESSAGE Action must implement IEditorActionDelegate + +!ENTRY org.eclipse.ui 4 4 2016-05-11 20:21:40.889 +!MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.editor.actions.refactorPropertyElementAction +!SUBENTRY 1 org.eclipse.ui 4 0 2016-05-11 20:21:40.889 +!MESSAGE Action must implement IEditorActionDelegate diff --git a/.metadata/.mylyn/tasks.xml.zip b/.metadata/.mylyn/tasks.xml.zip index e9c0566..65d4079 100644 Binary files a/.metadata/.mylyn/tasks.xml.zip and b/.metadata/.mylyn/tasks.xml.zip differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/GameOfLife/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/GameOfLife/.markers.snap index acceb61..895b212 100644 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/GameOfLife/.markers.snap and b/.metadata/.plugins/org.eclipse.core.resources/.projects/GameOfLife/.markers.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/GameOfLife/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/GameOfLife/.syncinfo.snap index 837b604..91d6c54 100644 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/GameOfLife/.syncinfo.snap and b/.metadata/.plugins/org.eclipse.core.resources/.projects/GameOfLife/.syncinfo.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap index 9c041f9..bdb00bf 100644 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap and b/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources index 4571264..4030121 100644 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources and b/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources differ diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs index ed9d25e..d4e76cd 100644 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs +++ b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs @@ -7,4 +7,5 @@ org.eclipse.jdt.core.compiler.compliance=1.8 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.source=1.8 +org.eclipse.jdt.core.userLibrary.Rules=\r\n\r\n\t\r\n\t\r\n\t\r\n\r\n org.eclipse.jdt.core.userLibrary.Spring=\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n diff --git a/.metadata/.plugins/org.eclipse.jdt.core/3438990737.index b/.metadata/.plugins/org.eclipse.jdt.core/3438990737.index index f72382b..9ee8e15 100644 Binary files a/.metadata/.plugins/org.eclipse.jdt.core/3438990737.index and b/.metadata/.plugins/org.eclipse.jdt.core/3438990737.index differ diff --git a/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt b/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt index 352be2e..ed47108 100644 --- a/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt +++ b/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt @@ -4,9 +4,11 @@ INDEX VERSION 1.127+E:\Dropbox\UnB\4 1568382268.index 3504796767.index 2916644690.index +3396732044.index 460341412.index 1139262804.index 3304681068.index +4145425724.index 1000146671.index 1155594363.index 919905438.index @@ -21,6 +23,7 @@ INDEX VERSION 1.127+E:\Dropbox\UnB\4 504399471.index 158865063.index 3317667954.index +2379644508.index 4051341462.index 2178152368.index 1597346485.index diff --git a/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log b/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log index 32bbbbf..38e869e 100644 --- a/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log +++ b/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log @@ -8,3 +8,5 @@ 2016-05-03 21:55:20,201 [Worker-8] INFO c.g.t.t.d.PublishedGradleVersions - Gradle version information cache file is out-of-date. Remote download required. 2016-05-03 22:15:48,067 [Worker-2] INFO c.g.t.t.d.PublishedGradleVersions - Gradle version information cache file is not out-of-date. No remote download required. 2016-05-04 19:41:30,121 [Worker-29] INFO c.g.t.t.d.PublishedGradleVersions - Gradle version information cache file is not out-of-date. No remote download required. +2016-05-05 21:50:48,140 [main] INFO c.g.t.t.d.PublishedGradleVersions - Gradle version information cache file is out-of-date. Remote download required. +2016-05-11 18:21:05,223 [Worker-11] INFO c.g.t.t.d.PublishedGradleVersions - Gradle version information cache file is out-of-date. Remote download required. diff --git a/.metadata/version.ini b/.metadata/version.ini index 988b988..2360f80 100644 --- a/.metadata/version.ini +++ b/.metadata/version.ini @@ -1,3 +1,3 @@ -#Wed May 04 18:34:15 BRT 2016 +#Wed May 11 18:19:29 BRT 2016 org.eclipse.core.runtime=2 org.eclipse.platform=4.5.2.v20160212-1500 diff --git a/.recommenders/index/http___download_eclipse_org_recommenders_models_mars_/write.lock b/.recommenders/index/http___download_eclipse_org_recommenders_models_mars_/write.lock deleted file mode 100644 index e69de29..0000000 diff --git a/GameOfLife/.classpath b/GameOfLife/.classpath index 8c303c9..588946f 100644 --- a/GameOfLife/.classpath +++ b/GameOfLife/.classpath @@ -3,5 +3,6 @@ + diff --git a/GameOfLife/bin/game (Avell-G1713MAX's conflicted copy 2016-05-03).xml b/GameOfLife/bin/game (Avell-G1713MAX's conflicted copy 2016-05-03).xml deleted file mode 100644 index 71b4a10..0000000 --- a/GameOfLife/bin/game (Avell-G1713MAX's conflicted copy 2016-05-03).xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/GameOfLife/bin/game.xml b/GameOfLife/bin/game.xml index 143e0a9..2f9ed25 100644 --- a/GameOfLife/bin/game.xml +++ b/GameOfLife/bin/game.xml @@ -3,7 +3,7 @@ - + @@ -19,13 +19,13 @@ - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/GameOfLife/bin/spring.xml b/GameOfLife/bin/spring.xml deleted file mode 100644 index 13a1e62..0000000 --- a/GameOfLife/bin/spring.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/GameOfLife/src/br/unb/cic/poo/controller/GameController.java b/GameOfLife/src/br/unb/cic/poo/controller/GameController.java deleted file mode 100644 index 25ca4a8..0000000 --- a/GameOfLife/src/br/unb/cic/poo/controller/GameController.java +++ /dev/null @@ -1,67 +0,0 @@ -package br.unb.cic.poo.controller; - -import java.security.InvalidParameterException; - -import br.unb.cic.poo.game.Statistics; -import br.unb.cic.poo.model.GameEngine; -import br.unb.cic.poo.view.GameView; - -/** - * Classe que atua como um controlador do - * padrao MVC, separando os componentes da - * camada de apresentacao e model. - * - * @author rbonifacio - */ -public class GameController { - private GameEngine engine; - private GameView board; - private Statistics statistics; - - public GameEngine getEngine() { - return engine; - } - - public void setEngine(GameEngine engine) { - this.engine = engine; - } - - public GameView getBoard() { - return board; - } - - public void setBoard(GameView board) { - this.board = board; - } - - public void setStatistics(Statistics statistics) { - this.statistics = statistics; - } - - public void start() { - board.update(); - } - - //TODO - public void halt() { - System.out.println("\n \n"); - statistics.display(); - System.exit(0); - } - - public void makeCellAlive(int i, int j) { - try { - engine.makeCellAlive(i, j); - board.update(); - } - catch(InvalidParameterException e) { - System.out.println(e.getMessage()); - } - } - - public void nextGeneration() { - engine.nextGeneration(); - board.update(); - } - -} diff --git a/GameOfLife/src/br/unb/cic/poo/engine/Anneal.java b/GameOfLife/src/br/unb/cic/poo/engine/Anneal.java deleted file mode 100644 index ae6fee4..0000000 --- a/GameOfLife/src/br/unb/cic/poo/engine/Anneal.java +++ /dev/null @@ -1,42 +0,0 @@ -package br.unb.cic.poo.engine; - -import br.unb.cic.poo.model.GameEngine; - -/** - * Implementacao de uma estrategia de derivacao - * baseada nas regras do Anneal. - * - * B4678/S35678 - * - * @author LSantos06 - */ -public class Anneal implements Strategy{ - @Override - public String getName() { - return "Anneal (B4678/S35678)"; - } - - @Override - public String getBeanName(){ - return "anneal"; - } - - @Override - public boolean shouldKeepAlive(int i, int j, GameEngine engine) { - return engine.isCellAlive(i, j) && - engine.numberOfNeighborhoodAliveCells(i, j) == 3 || - engine.numberOfNeighborhoodAliveCells(i, j) == 5 || - engine.numberOfNeighborhoodAliveCells(i, j) == 6 || - engine.numberOfNeighborhoodAliveCells(i, j) == 7 || - engine.numberOfNeighborhoodAliveCells(i, j) == 8; - } - - @Override - public boolean shouldRevive(int i, int j, GameEngine engine) { - return !engine.isCellAlive(i, j) && - engine.numberOfNeighborhoodAliveCells(i, j) == 4 || - engine.numberOfNeighborhoodAliveCells(i, j) == 6 || - engine.numberOfNeighborhoodAliveCells(i, j) == 7 || - engine.numberOfNeighborhoodAliveCells(i, j) == 8; - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/engine/Conway.java b/GameOfLife/src/br/unb/cic/poo/engine/Conway.java deleted file mode 100644 index c94a338..0000000 --- a/GameOfLife/src/br/unb/cic/poo/engine/Conway.java +++ /dev/null @@ -1,41 +0,0 @@ -package br.unb.cic.poo.engine; - -import br.unb.cic.poo.model.GameEngine; - -/** - * Implementacao de uma estrategia de derivacao - * baseada nas regras do Conway. - * - * https://en.wikipedia.org/wiki/Life-like_cellular_automaton - * - * B = Born, shouldRevive - * S = Survives, shouldKeepAlive - * - * B3/S23 - * - * @author rbonifacio - */ -public class Conway implements Strategy{ - @Override - public String getName() { - return "Conway (B3/S23)"; - } - - @Override - public String getBeanName(){ - return "conway"; - } - - @Override - public boolean shouldKeepAlive(int i, int j, GameEngine engine) { - return engine.isCellAlive(i, j) && - engine.numberOfNeighborhoodAliveCells(i, j) == 2 || - engine.numberOfNeighborhoodAliveCells(i, j) == 3; - } - - @Override - public boolean shouldRevive(int i, int j, GameEngine engine) { - return !engine.isCellAlive(i, j) && - engine.numberOfNeighborhoodAliveCells(i, j) == 3; - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/engine/DayAndNight.java b/GameOfLife/src/br/unb/cic/poo/engine/DayAndNight.java deleted file mode 100644 index cc75679..0000000 --- a/GameOfLife/src/br/unb/cic/poo/engine/DayAndNight.java +++ /dev/null @@ -1,42 +0,0 @@ -package br.unb.cic.poo.engine; - -import br.unb.cic.poo.model.GameEngine; - -/** - * Implementacao de uma estrategia de derivacao - * baseada nas regras do DayAndNight. - * - * B3678/S34678 - * - * @author LSantos06 - */ -public class DayAndNight implements Strategy{ - @Override - public String getName() { - return "DayAndNight (B3678/S34678)"; - } - - @Override - public String getBeanName(){ - return "dayandnight"; - } - - @Override - public boolean shouldKeepAlive(int i, int j, GameEngine engine) { - return engine.isCellAlive(i, j) && - engine.numberOfNeighborhoodAliveCells(i, j) == 3 || - engine.numberOfNeighborhoodAliveCells(i, j) == 4 || - engine.numberOfNeighborhoodAliveCells(i, j) == 6 || - engine.numberOfNeighborhoodAliveCells(i, j) == 7 || - engine.numberOfNeighborhoodAliveCells(i, j) == 8; - } - - @Override - public boolean shouldRevive(int i, int j, GameEngine engine) { - return !engine.isCellAlive(i, j) && - engine.numberOfNeighborhoodAliveCells(i, j) == 3 || - engine.numberOfNeighborhoodAliveCells(i, j) == 6 || - engine.numberOfNeighborhoodAliveCells(i, j) == 7 || - engine.numberOfNeighborhoodAliveCells(i, j) == 8; - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/engine/Diamoeba.java b/GameOfLife/src/br/unb/cic/poo/engine/Diamoeba.java deleted file mode 100644 index 8960605..0000000 --- a/GameOfLife/src/br/unb/cic/poo/engine/Diamoeba.java +++ /dev/null @@ -1,42 +0,0 @@ -package br.unb.cic.poo.engine; - -import br.unb.cic.poo.model.GameEngine; - -/** - * Implementacao de uma estrategia de derivacao - * baseada nas regras do Diamoeba. - * - * B35678/S5678 - * - * @author LSantos06 - */ -public class Diamoeba implements Strategy{ - @Override - public String getName() { - return "Diamoeba (B35678/S5678)"; - } - - @Override - public String getBeanName(){ - return "diamoeba"; - } - - @Override - public boolean shouldKeepAlive(int i, int j, GameEngine engine) { - return engine.isCellAlive(i, j) && - engine.numberOfNeighborhoodAliveCells(i, j) == 5 || - engine.numberOfNeighborhoodAliveCells(i, j) == 6 || - engine.numberOfNeighborhoodAliveCells(i, j) == 7 || - engine.numberOfNeighborhoodAliveCells(i, j) == 8; - } - - @Override - public boolean shouldRevive(int i, int j, GameEngine engine) { - return !engine.isCellAlive(i, j) && - engine.numberOfNeighborhoodAliveCells(i, j) == 3 || - engine.numberOfNeighborhoodAliveCells(i, j) == 5 || - engine.numberOfNeighborhoodAliveCells(i, j) == 6 || - engine.numberOfNeighborhoodAliveCells(i, j) == 7 || - engine.numberOfNeighborhoodAliveCells(i, j) == 8; - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/engine/GameEngine.java b/GameOfLife/src/br/unb/cic/poo/engine/GameEngine.java new file mode 100644 index 0000000..a5da94b --- /dev/null +++ b/GameOfLife/src/br/unb/cic/poo/engine/GameEngine.java @@ -0,0 +1,38 @@ +package br.unb.cic.poo.engine; + +import br.unb.cic.poo.game.Statistics; +import br.unb.cic.poo.rules.Strategy; + +/** + * Representa um ambiente (environment) do jogo GameOfLife. + * + * @author rbonifacio + */ +public class GameEngine { + private Statistics statistics; + private Strategy strategy; + + /** + * Construtor da classe Environment. + */ + public GameEngine(Statistics statistics) { + this.statistics = statistics; + } + + /* Metodos de acesso a estrategia de jogo */ + public void setStrategy(Strategy strategy) { + this.strategy = strategy; + } + + public Strategy getStrategy() { + return strategy; + } + + public Statistics getStatistics() { + return statistics; + } + + public void setStatistics(Statistics statistics) { + this.statistics = statistics; + } +} diff --git a/GameOfLife/src/br/unb/cic/poo/engine/HighLife.java b/GameOfLife/src/br/unb/cic/poo/engine/HighLife.java deleted file mode 100644 index 7312781..0000000 --- a/GameOfLife/src/br/unb/cic/poo/engine/HighLife.java +++ /dev/null @@ -1,30 +0,0 @@ -package br.unb.cic.poo.engine; - -import br.unb.cic.poo.model.GameEngine; - -/** - * Implementacao de uma estrategia de derivacao - * baseada nas regras do HighLife. - * - * B36/S23 - * - * @author rbonifacio - */ -public class HighLife extends Conway { - @Override - public String getName() { - return "HighLife (B36/S23)"; - } - - @Override - public String getBeanName(){ - return "highlife"; - } - - @Override - public boolean shouldRevive(int i, int j, GameEngine engine) { - return !engine.isCellAlive(i, j) && - (engine.numberOfNeighborhoodAliveCells(i, j) == 3 || - engine.numberOfNeighborhoodAliveCells(i, j) == 6); - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/engine/LifeWithoutDeath.java b/GameOfLife/src/br/unb/cic/poo/engine/LifeWithoutDeath.java deleted file mode 100644 index 6fe371e..0000000 --- a/GameOfLife/src/br/unb/cic/poo/engine/LifeWithoutDeath.java +++ /dev/null @@ -1,28 +0,0 @@ -package br.unb.cic.poo.engine; - -import br.unb.cic.poo.model.GameEngine; - -/** - * Implementacao de uma estrategia de derivacao - * baseada nas regras do LifeWithoutDeath. - * - * B3/S012345678 - * - * @author LSantos06 - */ -public class LifeWithoutDeath extends Conway{ - @Override - public String getName() { - return "LifeWithoutDeath (B3/S012345678)"; - } - - @Override - public String getBeanName(){ - return "lifewithoutdeath"; - } - - @Override - public boolean shouldKeepAlive(int i, int j, GameEngine engine) { - return true; - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/engine/Morley.java b/GameOfLife/src/br/unb/cic/poo/engine/Morley.java deleted file mode 100644 index ba1bfc5..0000000 --- a/GameOfLife/src/br/unb/cic/poo/engine/Morley.java +++ /dev/null @@ -1,39 +0,0 @@ -package br.unb.cic.poo.engine; - -import br.unb.cic.poo.model.GameEngine; - -/** - * Implementacao de uma estrategia de derivacao - * baseada nas regras do Morley. - * - * B368/S245 - * - * @author LSantos06 - */ -public class Morley implements Strategy{ - @Override - public String getName() { - return "Morley (B368/S245)"; - } - - @Override - public String getBeanName(){ - return "morley"; - } - - @Override - public boolean shouldKeepAlive(int i, int j, GameEngine engine) { - return engine.isCellAlive(i, j) && - engine.numberOfNeighborhoodAliveCells(i, j) == 2 || - engine.numberOfNeighborhoodAliveCells(i, j) == 4 || - engine.numberOfNeighborhoodAliveCells(i, j) == 5; - } - - @Override - public boolean shouldRevive(int i, int j, GameEngine engine) { - return !engine.isCellAlive(i, j) && - engine.numberOfNeighborhoodAliveCells(i, j) == 3 || - engine.numberOfNeighborhoodAliveCells(i, j) == 6 || - engine.numberOfNeighborhoodAliveCells(i, j) == 8; - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/engine/Replicator.java b/GameOfLife/src/br/unb/cic/poo/engine/Replicator.java deleted file mode 100644 index e2a9578..0000000 --- a/GameOfLife/src/br/unb/cic/poo/engine/Replicator.java +++ /dev/null @@ -1,41 +0,0 @@ -package br.unb.cic.poo.engine; - -import br.unb.cic.poo.model.GameEngine; - -/** - * Implementacao de uma estrategia de derivacao - * baseada nas regras do Replicator. - * - * B1357/S1357 - * - * @author LSantos06 - */ -public class Replicator implements Strategy{ - @Override - public String getName() { - return "Replicator (B1357/S1357)"; - } - - @Override - public String getBeanName(){ - return "replicator"; - } - - @Override - public boolean shouldKeepAlive(int i, int j, GameEngine engine) { - return engine.isCellAlive(i, j) && - engine.numberOfNeighborhoodAliveCells(i, j) == 1 || - engine.numberOfNeighborhoodAliveCells(i, j) == 3 || - engine.numberOfNeighborhoodAliveCells(i, j) == 5 || - engine.numberOfNeighborhoodAliveCells(i, j) == 7; - } - - @Override - public boolean shouldRevive(int i, int j, GameEngine engine) { - return !engine.isCellAlive(i, j) && - engine.numberOfNeighborhoodAliveCells(i, j) == 1 || - engine.numberOfNeighborhoodAliveCells(i, j) == 3 || - engine.numberOfNeighborhoodAliveCells(i, j) == 5 || - engine.numberOfNeighborhoodAliveCells(i, j) == 7; - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/engine/Seeds.java b/GameOfLife/src/br/unb/cic/poo/engine/Seeds.java deleted file mode 100644 index 5132672..0000000 --- a/GameOfLife/src/br/unb/cic/poo/engine/Seeds.java +++ /dev/null @@ -1,33 +0,0 @@ -package br.unb.cic.poo.engine; - -import br.unb.cic.poo.model.GameEngine; - -/** - * Implementacao de uma estrategia de derivacao - * baseada nas regras do LifeWithoutDeath. - * - * B2/S - * - * @author rbonifacio - */ -public class Seeds implements Strategy{ - @Override - public String getName() { - return "Seeds (B2/S)"; - } - - @Override - public String getBeanName(){ - return "seeds"; - } - - @Override - public boolean shouldKeepAlive(int i, int j, GameEngine engine) { - return engine.numberOfNeighborhoodAliveCells(i, j) == 0; - } - - @Override - public boolean shouldRevive(int i, int j, GameEngine engine) { - return engine.numberOfNeighborhoodAliveCells(i, j) == 2; - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/engine/Strategy.java b/GameOfLife/src/br/unb/cic/poo/engine/Strategy.java deleted file mode 100644 index 68d61aa..0000000 --- a/GameOfLife/src/br/unb/cic/poo/engine/Strategy.java +++ /dev/null @@ -1,35 +0,0 @@ -package br.unb.cic.poo.engine; - -import br.unb.cic.poo.model.GameEngine; - -/** - * Interface com a declaracao dos metodos que apoiam o - * calculo de uma proxima derivacao no GameOfLife. - * - * @author rbonifacio - */ -public interface Strategy { - /** Retorna o nome da regra de derivacao */ - public String getName(); - - /** Retorna o nome do bean associado a regra de derivacao */ - public String getBeanName(); - - - public boolean shouldKeepAlive(int i, int j, GameEngine engine); - - /** - * Verifica se uma celula (na posica (i, j)) deve - * se tornar uma celula viva. - * - * @param i posicao da celula na i-esima linha - * @param j posicao da celula na j-esima coluna - * - * @param engine referencia para a Game Engine - * - * @return true caso a celula deva se tornar viva. - * false caso contrario. - */ - public boolean shouldRevive(int i, int j, GameEngine engine); - -} diff --git a/GameOfLife/src/br/unb/cic/poo/game/Cell.java b/GameOfLife/src/br/unb/cic/poo/game/Cell.java index 69cbaae..ca8830e 100644 --- a/GameOfLife/src/br/unb/cic/poo/game/Cell.java +++ b/GameOfLife/src/br/unb/cic/poo/game/Cell.java @@ -1,12 +1,10 @@ package br.unb.cic.poo.game; public class Cell{ - private boolean alive; private int x; private int y; public Cell(int x, int y) { - alive = true; this.x = x; this.y = y; } @@ -26,20 +24,4 @@ public int getY() { public void setY(int y) { this.y = y; } - - public Cell(boolean status) { - alive = status; - } - - public boolean isAlive() { - return alive; - } - - public void kill() { - this.alive = false; - } - - public void revive() { - this.alive = true; - } } diff --git a/GameOfLife/src/br/unb/cic/poo/game/Main.java b/GameOfLife/src/br/unb/cic/poo/game/Main.java deleted file mode 100644 index 2ac7e01..0000000 --- a/GameOfLife/src/br/unb/cic/poo/game/Main.java +++ /dev/null @@ -1,50 +0,0 @@ -package br.unb.cic.poo.game; - -import org.springframework.context.ApplicationContext; -import org.springframework.context.support.ClassPathXmlApplicationContext; - -import br.unb.cic.poo.controller.GameController; -import br.unb.cic.poo.engine.Strategy; -import br.unb.cic.poo.model.GameEngine; -import br.unb.cic.poo.view.GameView; - -/** - * Classe que define o metodo principal do programa; ou - * seja, o metodo que vai ser executado pela JVM para inicializar - * o programa. - * - * @author rbonifacio - */ -public class Main { - - public static void main(String[] args) { - GameController controller = new GameController(); - - Statistics statistics = new Statistics(); - - /* - * Utilizando a injecao de dependencia - */ - ApplicationContext context = new ClassPathXmlApplicationContext("game.xml"); - - //TODO: bean statistcs causa erro - //GameEngine engine = (GameEngine)context.getBean("engine"); - GameEngine engine = new GameEngine(10, 10, statistics); - - /* - * Nessa implementacao, a estrategia do Conway eh - * a padrao. - */ - engine.setStrategy((Strategy)context.getBean("conway")); - - GameView board = new GameView(controller, engine); - - controller.setBoard(board); - controller.setEngine(engine); - controller.setStatistics(statistics); - - controller.start(); - - } - -} diff --git a/GameOfLife/src/br/unb/cic/poo/game/Statistics.java b/GameOfLife/src/br/unb/cic/poo/game/Statistics.java index 6d6b960..24705c0 100644 --- a/GameOfLife/src/br/unb/cic/poo/game/Statistics.java +++ b/GameOfLife/src/br/unb/cic/poo/game/Statistics.java @@ -13,25 +13,23 @@ public int getRevivedCells() { return revivedCells; } - public void recordRevive() { - this.revivedCells++; + public void setRevivedCells(int revivedCells) { + this.revivedCells = revivedCells; } public int getKilledCells() { return killedCells; } + + public void setKilledCells(int killedCells) { + this.killedCells = killedCells; + } + + public void recordRevive() { + this.revivedCells++; + } public void recordKill() { this.killedCells++; } - - //TODO - public void display() { - System.out.println("================================="); - System.out.println(" Statistics "); - System.out.println("================================="); - System.out.println("Revived cells: " + revivedCells); - System.out.println("Killed cells: " + killedCells); - System.out.println("================================="); - } } diff --git a/GameOfLife/src/br/unb/cic/poo/model/GameEngine.java b/GameOfLife/src/br/unb/cic/poo/model/GameEngine.java deleted file mode 100644 index d32af02..0000000 --- a/GameOfLife/src/br/unb/cic/poo/model/GameEngine.java +++ /dev/null @@ -1,212 +0,0 @@ -package br.unb.cic.poo.model; - -import java.security.InvalidParameterException; -import java.util.ArrayList; -import java.util.List; - -import br.unb.cic.poo.engine.Strategy; -import br.unb.cic.poo.game.Cell; -import br.unb.cic.poo.game.Statistics; - -/** - * Representa um ambiente (environment) do jogo GameOfLife. - * - * @author rbonifacio - */ -public class GameEngine { - private int height; - private int width; - private Cell[][] cells; - private Statistics statistics; - private Strategy strategy; - - /** - * Construtor da classe Environment. - * - * @param height - * dimensao vertical do ambiente - * @param width - * dimensao horizontal do ambiente - */ - public GameEngine(int height, int width, Statistics statistics) { - this.height = height; - this.width = width; - - // Criacao do tabuleiro - cells = new Cell[height][width]; - - // Cria uma celula para cada posicao do tabuleiro - for (int i = 0; i < height; i++) { - for (int j = 0; j < width; j++) { - cells[i][j] = new Cell(i,j); - } - } - - this.statistics = statistics; - } - - /* Metodos de acesso a estrategia de jogo */ - public void setStrategy(Strategy strategy) { - this.strategy = strategy; - } - - public Strategy getStrategy() { - return strategy; - } - - /* - * Injecao de dependencia - * - * - public boolean shouldKeepAlive(int i, int j, Strategy strategy){ - return this.strategy.shouldKeepAlive(i, j, this); - } - - public boolean shouldRevive(int i, int j, Strategy strategy){ - return this.strategy.shouldRevive(i, j, this); - } - */ - - /* - * Calcula uma nova geracao do ambiente. Essa implementacao delega para - * a estrategia de derivacao a logica necessaria para identificar - * se uma celula deve se tornar viva ou ser mantida viva na proxima - * geracao. - */ - public void nextGeneration() { - List mustRevive = new ArrayList(); - List mustKill = new ArrayList(); - - for (int i = 0; i < height; i++) { - for (int j = 0; j < width; j++) { - - if (strategy.shouldRevive(i, j, this)) { - mustRevive.add(cells[i][j]); - } - else if ((!strategy.shouldKeepAlive(i, j, this)) && cells[i][j].isAlive()) { - mustKill.add(cells[i][j]); - } - } - } - - updateStatistics(mustRevive, mustKill); - } - - /* - * Metodo auxiliar que atualiza as estatisticas das celulas - * que foram mortas ou se tornaram vivas entre duas geracoes. - */ - private void updateStatistics(List mustRevive, List mustKill) { - for (Cell cell : mustRevive) { - cell.revive(); - statistics.recordRevive(); - } - - for (Cell cell : mustKill) { - cell.kill(); - statistics.recordKill(); - } - } - - /** - * Torna a celula de posicao (i, j) viva - * - * @param i posicao vertical da celula - * @param j posicao horizontal da celula - * - * @throws InvalidParameterException caso a posicao (i, j) nao seja valida. - */ - public void makeCellAlive(int i, int j) throws InvalidParameterException { - if(validPosition(i, j)) { - cells[i][j].revive(); - statistics.recordRevive(); - } - else { - throw new InvalidParameterException("Invalid position (" + i + ", " + j + ")" ); - } - } - - /** - * Verifica se uma celula na posicao (i, j) estah viva. - * - * @param i Posicao vertical da celula - * @param j Posicao horizontal da celula - * @return Verdadeiro caso a celula de posicao (i,j) esteja viva. - * - * @throws InvalidParameterException caso a posicao (i,j) nao seja valida. - */ - public boolean isCellAlive(int i, int j) throws InvalidParameterException { - if(validPosition(i, j)) { - return cells[i][j].isAlive(); - } - else { - throw new InvalidParameterException("Invalid position (" + i + ", " + j + ")" ); - } - } - - /** - * Retorna o numero de celulas vivas no ambiente. - * Esse metodo eh particularmente util para o calculo de - * estatisticas e para melhorar a testabilidade. - * - * @return numero de celulas vivas. - */ - public int numberOfAliveCells() { - int aliveCells = 0; - - for(int i = 0; i < height; i++) { - for(int j = 0; j < width; j++) { - if(isCellAlive(i,j)) { - aliveCells++; - } - } - } - return aliveCells; - } - - /* - * Computa o numero de celulas vizinhas vivas, dada uma posicao no ambiente - * de referencia identificada pelos argumentos (i,j). - */ - public int numberOfNeighborhoodAliveCells(int i, int j) throws InvalidParameterException { - int alive = 0; - - if(validPosition(i, j)) { - for (int a = i - 1; a <= i + 1; a++) { - for (int b = j - 1; b <= j + 1; b++) { - if (validPosition(a, b) && (!(a==i && b == j)) && cells[a][b].isAlive()) { - alive++; - } - } - } - return alive; - } - else { - throw new InvalidParameterException("Invalid position (" + i + ", " + j + ")" ); - } - } - - /* - * Verifica se uma posicao (a, b) referencia uma celula valida no tabuleiro. - */ - private boolean validPosition(int a, int b) { - return a >= 0 && a < height && b >= 0 && b < width; - } - - /* Metodos de acesso as propriedades height e width */ - public int getHeight() { - return height; - } - - public void setHeight(int height) { - this.height = height; - } - - public int getWidth() { - return width; - } - - public void setWidth(int width) { - this.width = width; - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/engine/Rules.java b/GameOfLife/src/br/unb/cic/poo/rules/Rules.java similarity index 68% rename from GameOfLife/src/br/unb/cic/poo/engine/Rules.java rename to GameOfLife/src/br/unb/cic/poo/rules/Rules.java index 2644b5d..4a74a49 100644 --- a/GameOfLife/src/br/unb/cic/poo/engine/Rules.java +++ b/GameOfLife/src/br/unb/cic/poo/rules/Rules.java @@ -1,7 +1,12 @@ -package br.unb.cic.poo.engine; +package br.unb.cic.poo.rules; import java.util.ArrayList; +/** + * Classe que implementa a injeção de dependência no atributo strategies + * + * @author LSantos06 + */ public class Rules { private ArrayList strategies = new ArrayList(0); diff --git a/GameOfLife/src/br/unb/cic/poo/rules/Strategy.java b/GameOfLife/src/br/unb/cic/poo/rules/Strategy.java new file mode 100644 index 0000000..52e2637 --- /dev/null +++ b/GameOfLife/src/br/unb/cic/poo/rules/Strategy.java @@ -0,0 +1,23 @@ +package br.unb.cic.poo.rules; + +import java.util.ArrayList; + +import br.unb.cic.poo.engine.GameEngine; +import br.unb.cic.poo.game.Cell; + +/** + * Interface com a declaracao dos metodos que apoiam o + * calculo de uma proxima derivacao no GameOfLife. + * + * @author rbonifacio + */ +public interface Strategy { + /** Retorna o nome da regra de derivacao */ + public String getName(); + + /** Retorna o nome do bean associado a regra de derivacao */ + public String getBeanName(); + + /** Retorna a lista de celulas sobreviventes */ + public ArrayList survivors(boolean[][] gameBoard, ArrayList survivingCells, GameEngine engine); +} diff --git a/GameOfLife/src/br/unb/cic/poo/tutorial/App.java b/GameOfLife/src/br/unb/cic/poo/tutorial/App.java deleted file mode 100644 index 1ec8305..0000000 --- a/GameOfLife/src/br/unb/cic/poo/tutorial/App.java +++ /dev/null @@ -1,21 +0,0 @@ -package br.unb.cic.poo.tutorial; - -import javax.swing.JFrame; -import javax.swing.SwingUtilities; - -public class App { - - public static void main(String[] args) { - - SwingUtilities.invokeLater(new Runnable(){ - public void run(){ - JFrame frame = new MainFrame("Hello World Swing!"); - - frame.setSize(500, 500); - frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - frame.setVisible(true); - } - }); - } - -} diff --git a/GameOfLife/src/br/unb/cic/poo/tutorial/DetailEvent.java b/GameOfLife/src/br/unb/cic/poo/tutorial/DetailEvent.java deleted file mode 100644 index 430e79e..0000000 --- a/GameOfLife/src/br/unb/cic/poo/tutorial/DetailEvent.java +++ /dev/null @@ -1,16 +0,0 @@ -package br.unb.cic.poo.tutorial; - -import java.util.EventObject; - -public class DetailEvent extends EventObject { - private String text; - - public DetailEvent(Object source, String text){ - super(source); - this.text = text; - } - - public String getText(){ - return text; - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/tutorial/DetailListener.java b/GameOfLife/src/br/unb/cic/poo/tutorial/DetailListener.java deleted file mode 100644 index c96d265..0000000 --- a/GameOfLife/src/br/unb/cic/poo/tutorial/DetailListener.java +++ /dev/null @@ -1,7 +0,0 @@ -package br.unb.cic.poo.tutorial; - -import java.util.EventListener; - -public interface DetailListener extends EventListener{ - public void detailEventOccurred(DetailEvent event); -} diff --git a/GameOfLife/src/br/unb/cic/poo/tutorial/DetailsPanel.java b/GameOfLife/src/br/unb/cic/poo/tutorial/DetailsPanel.java deleted file mode 100644 index 68e37d8..0000000 --- a/GameOfLife/src/br/unb/cic/poo/tutorial/DetailsPanel.java +++ /dev/null @@ -1,110 +0,0 @@ -package br.unb.cic.poo.tutorial; - -import java.awt.Dimension; -import java.awt.GridBagConstraints; -import java.awt.GridBagLayout; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; - -import javax.swing.BorderFactory; -import javax.swing.JButton; -import javax.swing.JLabel; -import javax.swing.JPanel; -import javax.swing.JTextField; -import javax.swing.event.EventListenerList; - -public class DetailsPanel extends JPanel { - /** - * - */ - private static final long serialVersionUID = 7225930675480639670L; - - private EventListenerList listenerList = new EventListenerList(); - - public DetailsPanel(){ - Dimension size = getPreferredSize(); - size.width = 250; - setPreferredSize(size); - - setBorder(BorderFactory.createTitledBorder("Personal Details")); - - JLabel nameLabel = new JLabel("Name:"); - JLabel occupationLabel = new JLabel("Occupation:"); - - final JTextField nameField = new JTextField(10); - final JTextField occupationField = new JTextField(10); - - JButton addBtn = new JButton("Add"); - - addBtn.addActionListener(new ActionListener(){ - - @Override - public void actionPerformed(ActionEvent arg0) { - String name = nameField.getText(); - String occupation = occupationField.getText(); - - String text = name + ": " + occupation + "\n"; - - fireDetailEvent(new DetailEvent(this, text)); - } - - }); - - setLayout(new GridBagLayout()); - - GridBagConstraints gc = new GridBagConstraints(); - - //// First column ////////// - gc.anchor = GridBagConstraints.LINE_END; - - gc.weightx = 0.5; - gc.weighty = 0.5; - - gc.gridx = 0; - gc.gridy = 0; - - add(nameLabel, gc); - gc.gridx = 0; - gc.gridy = 1; - add(occupationLabel, gc); - - //// Second column //////// - gc.anchor = GridBagConstraints.LINE_START; - - gc.gridx = 1; - gc.gridy = 0; - add(nameField, gc); - - gc.gridx = 1; - gc.gridy = 1; - add(occupationField, gc); - - //// Final row /////////// - gc.weighty = 10; - - gc.anchor = GridBagConstraints.FIRST_LINE_START; - - gc.gridx = 1; - gc.gridy = 2; - add(addBtn, gc); - - } - - public void fireDetailEvent(DetailEvent event){ - Object[] listeners = listenerList.getListenerList(); - - for(int i = 0; i < listeners.length; i += 2){ - if(listeners[i] == DetailListener.class){ - ((DetailListener)listeners[i+1]).detailEventOccurred(event); - } - } - } - - public void addDetailListener(DetailListener listener){ - listenerList.add(DetailListener.class, listener); - } - - public void removeDetailListener(DetailListener listener){ - listenerList.remove(DetailListener.class, listener); - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/tutorial/DrawingApp.java b/GameOfLife/src/br/unb/cic/poo/tutorial/DrawingApp.java deleted file mode 100644 index 27dddfe..0000000 --- a/GameOfLife/src/br/unb/cic/poo/tutorial/DrawingApp.java +++ /dev/null @@ -1,15 +0,0 @@ -package br.unb.cic.poo.tutorial; - -import org.springframework.context.ApplicationContext; -import org.springframework.context.support.ClassPathXmlApplicationContext; - -public class DrawingApp { - - public static void main(String[] args) { - //Triangle triangle = new Triangle(); - //BeanFactory factory = new XmlBeanFactory(new FileSystemResource("spring.xml")); - ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml"); - Triangle triangle = (Triangle)context.getBean("triangle"); - triangle.draw(); - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/tutorial/MainFrame.java b/GameOfLife/src/br/unb/cic/poo/tutorial/MainFrame.java deleted file mode 100644 index 2bb87c3..0000000 --- a/GameOfLife/src/br/unb/cic/poo/tutorial/MainFrame.java +++ /dev/null @@ -1,53 +0,0 @@ -package br.unb.cic.poo.tutorial; - -import java.awt.BorderLayout; -import java.awt.Container; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; - -import javax.swing.JButton; -import javax.swing.JFrame; -import javax.swing.JTextArea; - -public class MainFrame extends JFrame{ - private DetailsPanel detailsPanel; - - public MainFrame(String title){ - super(title); - - //Set layout manager - setLayout(new BorderLayout()); - - //Create Swing component - JTextArea textArea = new JTextArea(); - JButton button = new JButton("Click me!"); - - detailsPanel = new DetailsPanel(); - - detailsPanel.addDetailListener(new DetailListener(){ - public void detailEventOccurred(DetailEvent event){ - String text = event.getText(); - - textArea.append(text); - } - }); - - - //Add Swing components to the pane - Container c = getContentPane(); - - c.add(textArea, BorderLayout.CENTER); - c.add(button, BorderLayout.SOUTH); - c.add(detailsPanel, BorderLayout.WEST); - - //Add behaviour - button.addActionListener(new ActionListener(){ - - @Override - public void actionPerformed(ActionEvent arg0) { - textArea.append("Hello\n"); - } - - }); - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/tutorial/Point.java b/GameOfLife/src/br/unb/cic/poo/tutorial/Point.java deleted file mode 100644 index 3470008..0000000 --- a/GameOfLife/src/br/unb/cic/poo/tutorial/Point.java +++ /dev/null @@ -1,20 +0,0 @@ -package br.unb.cic.poo.tutorial; - -public class Point { - - private int X; - private int Y; - - public int getX() { - return X; - } - public void setX(int x) { - X = x; - } - public int getY() { - return Y; - } - public void setY(int y) { - Y = y; - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/tutorial/Triangle.java b/GameOfLife/src/br/unb/cic/poo/tutorial/Triangle.java deleted file mode 100644 index 0492d31..0000000 --- a/GameOfLife/src/br/unb/cic/poo/tutorial/Triangle.java +++ /dev/null @@ -1,92 +0,0 @@ -package br.unb.cic.poo.tutorial; - -import java.util.List; - -import org.springframework.beans.BeansException; -import org.springframework.beans.factory.BeanNameAware; -import org.springframework.context.ApplicationContext; -import org.springframework.context.ApplicationContextAware; - -public class Triangle implements ApplicationContextAware, BeanNameAware{ - -// private String type; -// private int height; -// -// -// public Triangle(String type){ -// this.type = type; -// } -// -// public Triangle(int height){ -// this.height = height; -// } -// -// public Triangle(String type, int height){ -// this.type = type; -// this.height = height; -// } -// -// -// public String getType() { -// return type; -// } -// -// public int getHeight() { -// return height; -// } - -// public void setType(String type) { -// this.type = type; -// } - - -// public void draw() { -// System.out.println(getType() + " triangle drawn of heigh " + getHeight()); -// } - - - private Point pointA; - private Point pointB; - private Point pointC; - private ApplicationContext context = null; - - public Point getPointA() { - return pointA; - } - - public void setPointA(Point pointA) { - this.pointA = pointA; - } - - public Point getPointB() { - return pointB; - } - - public void setPointB(Point pointB) { - this.pointB = pointB; - } - - public Point getPointC() { - return pointC; - } - - public void setPointC(Point pointC) { - this.pointC = pointC; - } - - public void draw(){ - System.out.println("(" + getPointA().getX() + "," + getPointA().getY() + ")"); - System.out.println("(" + getPointB().getX() + "," + getPointB().getY() + ")"); - System.out.println("(" + getPointC().getX() + "," + getPointC().getY() + ")"); - } - - @Override - public void setApplicationContext(ApplicationContext context) throws BeansException { - this.context = context; - } - - @Override - public void setBeanName(String beanName) { - System.out.println(beanName); - } -} diff --git a/GameOfLife/src/br/unb/cic/poo/view/GameGUI.java b/GameOfLife/src/br/unb/cic/poo/view/GameGUI.java index a2387bf..60e10cd 100644 --- a/GameOfLife/src/br/unb/cic/poo/view/GameGUI.java +++ b/GameOfLife/src/br/unb/cic/poo/view/GameGUI.java @@ -9,361 +9,432 @@ import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; -import br.unb.cic.poo.controller.GameController; -import br.unb.cic.poo.engine.Rules; -import br.unb.cic.poo.engine.Strategy; +import br.unb.cic.poo.engine.GameEngine; import br.unb.cic.poo.game.Cell; import br.unb.cic.poo.game.Statistics; -import br.unb.cic.poo.model.GameEngine; +import br.unb.cic.poo.rules.Rules; +import br.unb.cic.poo.rules.Strategy; public class GameGUI extends JFrame implements ActionListener{ - //TODO + private static final long serialVersionUID = -5713208627727048620L; private static final Dimension DEFAULT_WINDOW_SIZE = new Dimension(800, 600); - private static final Dimension MINIMUM_WINDOW_SIZE = new Dimension(400, 400); - private static final int BLOCK_SIZE = 10; - + private static final Dimension MINIMUM_WINDOW_SIZE = new Dimension(400, 400); + private static final int BLOCK_SIZE = 10; + // Dependency Injection private static final ApplicationContext context = new ClassPathXmlApplicationContext("game.xml"); - + private JMenuBar menu; - private JMenu game, rule, statistics; - - private JMenuItem gamePlay, gameStop, gameReset, gameMovesPerSecond, gameAutofill, gameExit; - - private Rules rules; - private ArrayList ruleList = new ArrayList(0); - - private JMenuItem statisticsView; - - private int movesPerSecond = 10; - - private GameBoard gameBoard; - private Thread gameOfLife; - + private JMenu game, rule, statistics; + + private JMenuItem gamePlay, gameStop, gameReset, gameNextGeneration, gameMovesPerSecond, gameAutoFill, gameExit; + + private Rules rules; + private ArrayList ruleList = new ArrayList(0); + + private JMenuItem statisticsView; + + private int movesPerSecond = 10; + + private GameBoard gameBoard; + private Thread gameOfLife; + private GameEngine engine; - private GameController controller; - - public static void main(String[] args) { - // Initializing Statistics - Statistics gameStatistics = new Statistics(); - - // Initializing Controller and Engine - GameController controller = new GameController(); - - //TODO - GameEngine engine = new GameEngine(10, 10, gameStatistics); - - // Setup the swing specifics - JFrame game = new GameGUI(controller, engine); - - game.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - game.setTitle("Conway's Game of Life"); - game.setSize(DEFAULT_WINDOW_SIZE); - game.setMinimumSize(MINIMUM_WINDOW_SIZE); - game.setLocation((Toolkit.getDefaultToolkit().getScreenSize().width - game.getWidth())/2, - (Toolkit.getDefaultToolkit().getScreenSize().height - game.getHeight())/2); - game.setVisible(true); - } - - public GameGUI(GameController controller, GameEngine engine){ - // Setting up the menu - menu = new JMenuBar(); - setJMenuBar(menu); - - // Menu columns - game = new JMenu("Game"); - menu.add(game); - - rule = new JMenu("Rule"); - menu.add(rule); - - statistics = new JMenu("Statistics"); - menu.add(statistics); - - // Sub-menu of the column Game - gamePlay = new JMenuItem("Play"); - gamePlay.addActionListener(this); - - gameStop = new JMenuItem("Stop"); - gameStop.setEnabled(false); - gameStop.addActionListener(this); - - gameReset = new JMenuItem("Reset"); - gameReset.addActionListener(this); - - gameMovesPerSecond = new JMenuItem("Moves per second"); - gameMovesPerSecond.addActionListener(this); - - gameAutofill = new JMenuItem("Autofill"); - gameAutofill.addActionListener(this); - - gameExit = new JMenuItem("Exit"); - gameExit.addActionListener(this); - - game.add(gamePlay); - game.add(gameStop); - game.add(gameReset); - game.add(new JSeparator()); - game.add(gameMovesPerSecond); - game.add(gameAutofill); - game.add(gameExit); - - // Sub-menu of the column Rule - rules = (Rules)context.getBean("rules"); - - // For each rule, add a button - for(Strategy currentRule: rules.getStrategies()){ - JMenuItem item = new JMenuItem(currentRule.getName()); - item.setName(currentRule.getBeanName()); - ruleList.add(item); - } - for(JMenuItem currentItem: ruleList){ - currentItem.addActionListener(this); - rule.add(currentItem); - } - - // Sub-menu of the column Statistics - statisticsView = new JMenuItem("View"); - statisticsView.addActionListener(this); - - statistics.add(statisticsView); - - // Setup game board - gameBoard = new GameBoard(); - add(gameBoard); - - // Setting Controller and Engine - this.controller = controller; + + public static void main(String[] args) { + // Initializing Statistics + Statistics gameStatistics = new Statistics(); + + //Initializing Engine + GameEngine engine = new GameEngine(gameStatistics); + // Default strategy + Rules initialRule = (Rules)context.getBean("rules"); + engine.setStrategy((Strategy)context.getBean(initialRule.getStrategies().get(0).getBeanName())); + + // Setup the swing specifics + JFrame game = new GameGUI(engine); + + game.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + game.setTitle("Conway's Game of Life (by Lucas & Gabriel)"); + game.setSize(DEFAULT_WINDOW_SIZE); + game.setMinimumSize(MINIMUM_WINDOW_SIZE); + game.setLocation((Toolkit.getDefaultToolkit().getScreenSize().width - game.getWidth())/2, + (Toolkit.getDefaultToolkit().getScreenSize().height - game.getHeight())/2); + game.setVisible(true); + } + + public GameGUI(GameEngine engine){ + // Setting up the menu + menu = new JMenuBar(); + setJMenuBar(menu); + + // Menu columns + game = new JMenu("Game"); + menu.add(game); + + rule = new JMenu("Rule"); + menu.add(rule); + + statistics = new JMenu("Statistics"); + menu.add(statistics); + + // Sub-menu of the column Game + gamePlay = new JMenuItem("Play"); + gamePlay.addActionListener(this); + + gameStop = new JMenuItem("Stop"); + gameStop.setEnabled(false); + gameStop.addActionListener(this); + + gameReset = new JMenuItem("Reset"); + gameReset.addActionListener(this); + + gameNextGeneration = new JMenuItem("Next Generation"); + gameNextGeneration.addActionListener(this); + + gameMovesPerSecond = new JMenuItem("Moves per second"); + gameMovesPerSecond.addActionListener(this); + + gameAutoFill = new JMenuItem("Autofill"); + gameAutoFill.addActionListener(this); + + gameExit = new JMenuItem("Exit"); + gameExit.addActionListener(this); + + game.add(gamePlay); + game.add(gameStop); + game.add(gameReset); + game.add(new JSeparator()); + game.add(gameNextGeneration); + game.add(new JSeparator()); + game.add(gameMovesPerSecond); + game.add(gameAutoFill); + game.add(gameExit); + + // Sub-menu of the column Rule + rules = (Rules)context.getBean("rules"); + + // For each rule, add a menu item + for(Strategy currentRule: rules.getStrategies()){ + // Add the name of the strategy + JMenuItem item = new JMenuItem(currentRule.getName()); + + // Set the item name to the bean associated to the strategy + item.setName(currentRule.getBeanName()); + + // Add the rule in the list of rule menu items + ruleList.add(item); + } + for(JMenuItem currentItem: ruleList){ + currentItem.addActionListener(this); + rule.add(currentItem); + } + + // Sub-menu of the column Statistics + statisticsView = new JMenuItem("View"); + statisticsView.addActionListener(this); + + statistics.add(statisticsView); + + // Setup game board + gameBoard = new GameBoard(); + add(gameBoard); + + // Setting Engine this.engine = engine; - } - - public void setGameBeingPlayed(boolean isBeingPlayed) { - if (isBeingPlayed) { - gamePlay.setEnabled(false); - gameStop.setEnabled(true); - - gameOfLife = new Thread(gameBoard); - gameOfLife.start(); - } else { - gamePlay.setEnabled(true); - gameStop.setEnabled(false); - - gameOfLife.interrupt(); - } - } + } + + public void setGameBeingPlayed(boolean isBeingPlayed) { + if (isBeingPlayed) { + gamePlay.setEnabled(false); + gameStop.setEnabled(true); + + gameNextGeneration.setEnabled(false); + + gameOfLife = new Thread(gameBoard); + gameOfLife.start(); + } else { + gamePlay.setEnabled(true); + gameStop.setEnabled(false); + + gameNextGeneration.setEnabled(true); + + gameOfLife.interrupt(); + } + } @Override public void actionPerformed(ActionEvent actionEvent) { // Sub-menu Game if (actionEvent.getSource().equals(gamePlay)){ - //TODO Play the game + // Play the game setGameBeingPlayed(true); - + } else if (actionEvent.getSource().equals(gameStop)){ - //TODO Stop the game + // Stop the game setGameBeingPlayed(false); - + } else if (actionEvent.getSource().equals(gameReset)){ - //TODO Reset the game + // Reset the game + engine.getStatistics().setKilledCells(0); + engine.getStatistics().setRevivedCells(0); gameBoard.resetBoard(); - gameBoard.repaint(); - + gameBoard.repaint(); + + } else if (actionEvent.getSource().equals(gameNextGeneration)){ + // Reset the values of the Statistics + engine.getStatistics().setKilledCells(0); + engine.getStatistics().setRevivedCells(0); + // Computes the next generation + setGameBeingPlayed(true); + setGameBeingPlayed(false); + } else if (actionEvent.getSource().equals(gameMovesPerSecond)){ - //TODO Defines the moves per second - } else if (actionEvent.getSource().equals(gameAutofill)){ - //TODO Generates cells randomly + // Defines the moves per second + final JFrame frameGameMovesPerSecond = new JFrame(); + frameGameMovesPerSecond.setTitle("Moves Per Second"); + frameGameMovesPerSecond.setSize(300,60); + frameGameMovesPerSecond.setLocation((Toolkit.getDefaultToolkit().getScreenSize().width - frameGameMovesPerSecond.getWidth())/2, + (Toolkit.getDefaultToolkit().getScreenSize().height - frameGameMovesPerSecond.getHeight())/2); + frameGameMovesPerSecond.setResizable(false); + + JPanel panelGameMovesPerSecond = new JPanel(); + panelGameMovesPerSecond.setOpaque(false); + + frameGameMovesPerSecond.add(panelGameMovesPerSecond); + + panelGameMovesPerSecond.add(new JLabel("Number of moves per second:")); + + Integer[] secondOptions = {1,5,10,15,25,50,100}; + final JComboBox comboBoxSeconds = new JComboBox(secondOptions); + + panelGameMovesPerSecond.add(comboBoxSeconds); + + comboBoxSeconds.setSelectedItem(movesPerSecond); + comboBoxSeconds.addActionListener(new ActionListener(){ + @Override + public void actionPerformed(ActionEvent actionEvent) { + movesPerSecond = (Integer)comboBoxSeconds.getSelectedItem(); + frameGameMovesPerSecond.dispose(); + } + }); + frameGameMovesPerSecond.setVisible(true); + + } else if (actionEvent.getSource().equals(gameAutoFill)){ + // Generates cells randomly + final JFrame frameAutoFill = new JFrame(); + frameAutoFill.setTitle("AutoFill"); + frameAutoFill.setSize(360,60); + frameAutoFill.setLocation((Toolkit.getDefaultToolkit().getScreenSize().width - frameAutoFill.getWidth())/2, + (Toolkit.getDefaultToolkit().getScreenSize().height - frameAutoFill.getHeight())/2); + frameAutoFill.setResizable(false); + + JPanel panelAutoFill = new JPanel(); + panelAutoFill.setOpaque(false); + + frameAutoFill.add(panelAutoFill); + + panelAutoFill.add(new JLabel("What percentage should be filled? ")); + + Object[] percentageOptions = {"Select",5,10,15,20,25,30,40,50,60,70,80,90,95}; + final JComboBox comboBoxPercent = new JComboBox(percentageOptions); + + panelAutoFill.add(comboBoxPercent); + + comboBoxPercent.addActionListener(new ActionListener(){ + @Override + public void actionPerformed(ActionEvent actionEvent) { + if(comboBoxPercent.getSelectedIndex() > 0){ + gameBoard.resetBoard(); + gameBoard.randomlyFillBoard((Integer)comboBoxPercent.getSelectedItem()); + frameAutoFill.dispose(); + } + } + }); + frameAutoFill.setVisible(true); + } else if (actionEvent.getSource().equals(gameExit)){ // Exit the game System.exit(0); } - + // Sub-menu Statistics else if (actionEvent.getSource().equals(statisticsView)){ - //TODO Statistics - System.out.println("Statistcs"); + // Statistics + final JFrame frameStatistics = new JFrame(); + frameStatistics.setTitle("Statistics"); + frameStatistics.setSize(360,60); + frameStatistics.setLocation((Toolkit.getDefaultToolkit().getScreenSize().width - frameStatistics.getWidth())/2, + (Toolkit.getDefaultToolkit().getScreenSize().height - frameStatistics.getHeight())/2); + frameStatistics.setResizable(false); + + JPanel panelStatistics = new JPanel(); + panelStatistics.setOpaque(false); + + frameStatistics.add(panelStatistics); + + panelStatistics.add(new JLabel("Revived Cells:")); + panelStatistics.add(new JLabel(String.valueOf(engine.getStatistics().getRevivedCells()))); + panelStatistics.add(new JLabel("Killed Cells:")); + panelStatistics.add(new JLabel(String.valueOf(engine.getStatistics().getKilledCells()))); + + frameStatistics.setVisible(true); } // Sub-menu Rule else { for(int index = 0; index < ruleList.size(); index++){ + // Make the rule enabled ruleList.get(index).setEnabled(true); - - if (actionEvent.getSource().equals(ruleList.get(index))){ - System.out.println(ruleList.get(index).getName()); + + if (actionEvent.getSource().equals(ruleList.get(index))){ + // Set the strategy using the bean name in the list of rule menu items engine.setStrategy((Strategy)context.getBean(ruleList.get(index).getName())); + // Make the rule disabled ruleList.get(index).setEnabled(false); } } } } - - private class GameBoard extends JPanel implements ComponentListener, MouseListener, MouseMotionListener, Runnable { - private Dimension gameBoardSize = null; - private ArrayList cell = new ArrayList(0); - - public GameBoard() { - // Add resizing listener - addComponentListener(this); - addMouseListener(this); - addMouseMotionListener(this); - } - - private void updateArraySize() { - ArrayList removeList = new ArrayList(0); - for (Cell current : cell) { - if ((current.getX() > gameBoardSize.width-1) || (current.getY() > gameBoardSize.height-1)) { - removeList.add(current); - } - } - cell.removeAll(removeList); - repaint(); - } - - public void addCell(int x, int y) { - if (!cell.contains(new Cell(x,y))) { - cell.add(new Cell(x,y)); - } - repaint(); - } - - public void addCell(MouseEvent mouseEvent) { - int x = mouseEvent.getPoint().x/BLOCK_SIZE-1; - int y = mouseEvent.getPoint().y/BLOCK_SIZE-1; - if ((x >= 0) && (x < gameBoardSize.width) && (y >= 0) && (y < gameBoardSize.height)) { - addCell(x,y); - } - } - - public void removeCell(int x, int y) { - cell.remove(new Cell(x,y)); - } - - public void resetBoard() { - cell.clear(); - } - - public void randomlyFillBoard(int percent) { - for (int i=0; i survivingCells = new ArrayList(0); - - // Iterate through the array, follow game of life rules - for (int i=1; i cell = new ArrayList(0); + + public GameBoard() { + // Add resizing listener + addComponentListener(this); + addMouseListener(this); + addMouseMotionListener(this); + } + + private void updateArraySize() { + ArrayList removeList = new ArrayList(0); + for (Cell current : cell) { + if ((current.getX() > gameBoardSize.width-1) || (current.getY() > gameBoardSize.height-1)) { + removeList.add(current); + } + } + cell.removeAll(removeList); + repaint(); + } + + public void addCell(int x, int y) { + if (!cell.contains(new Cell(x,y))) { + cell.add(new Cell(x,y)); + } + repaint(); + } + + public void addCell(MouseEvent mouseEvent) { + int x = mouseEvent.getPoint().x/BLOCK_SIZE-1; + int y = mouseEvent.getPoint().y/BLOCK_SIZE-1; + if ((x >= 0) && (x < gameBoardSize.width) && (y >= 0) && (y < gameBoardSize.height)) { + addCell(x,y); + } + } + + public void resetBoard() { + cell.clear(); + } + + public void randomlyFillBoard(int percent) { + for (int i=0; i survivingCells = new ArrayList(0); + + // Getting the strategy + survivingCells = engine.getStrategy().survivors(gameBoard, survivingCells, engine); + + // Adding the survivingCells to the board + resetBoard(); + cell.addAll(survivingCells); + repaint(); + + try { + Thread.sleep(1000/movesPerSecond); + run(); + } catch (InterruptedException ie) {} + + } + } } diff --git a/GameOfLife/src/br/unb/cic/poo/view/GameView.java b/GameOfLife/src/br/unb/cic/poo/view/GameView.java deleted file mode 100644 index d3eeaf8..0000000 --- a/GameOfLife/src/br/unb/cic/poo/view/GameView.java +++ /dev/null @@ -1,153 +0,0 @@ -package br.unb.cic.poo.view; - -import java.util.Scanner; -import org.springframework.context.ApplicationContext; -import org.springframework.context.support.ClassPathXmlApplicationContext; - -import br.unb.cic.poo.controller.GameController; -import br.unb.cic.poo.engine.Conway; -import br.unb.cic.poo.model.GameEngine; - -/** - * Atua como um componente de apresentacao (view), exibindo o estado atual do - * game com uma implementacao baseada em caracteres ASCII. - * - * @author rbonifacio - */ -public class GameView { - private static final String LINE = "+-----+"; - private static final String DEAD_CELL = "| |"; - private static final String ALIVE_CELL = "| o |"; - - private static final int INVALID_OPTION = 0; - private static final int MAKE_CELL_ALIVE = 1; - private static final int NEXT_GENERATION = 2; - private static final int CONWAY = 3; - private static final int HIGH_LIFE = 4; - private static final int HALT = 5; - - private GameEngine engine; - private GameController controller; - - public GameView(GameController controller, GameEngine engine) { - this.controller = controller; - this.engine = engine; - } - - /* - * Atualiza o componente view (representado pela classe GameBoard), - * possivelmente como uma resposta a uma atualizacao do jogo. - */ - public void update() { - printFirstRow(); - printLine(); - for (int i = 0; i < engine.getHeight(); i++) { - for (int j = 0; j < engine.getWidth(); j++) { - System.out.print(engine.isCellAlive(i, j) ? ALIVE_CELL : DEAD_CELL); - } - System.out.println(" " + i); - printLine(); - } - printOptions(); - } - - private void printOptions() { - /* - * Utilizando a injecao de dependencia - */ - ApplicationContext context = new ClassPathXmlApplicationContext("game.xml"); - Scanner s = new Scanner(System.in); - int option; - System.out.println("\n \n"); - - do { - System.out.println("Select one of the options: (" + engine.getStrategy().getName() + ")\n \n"); - System.out.println("[1] Make a cell alive"); - System.out.println("[2] Next generation"); - System.out.println("[3] Conway"); - System.out.println("[4] High Life"); - System.out.println("[5] Halt"); - - System.out.print("\n \n Option: "); - - option = parseOption(s.nextLine()); - }while(option == 0); - - switch(option) { - case MAKE_CELL_ALIVE : makeCellAlive(); break; - case NEXT_GENERATION : nextGeneration(); break; - case CONWAY : update(); break; - case HIGH_LIFE : engine.setStrategy((Conway)context.getBean("highlife")); update(); break; - case HALT : halt(); - } - } - - private void makeCellAlive() { - int i, j = 0; - Scanner s = new Scanner(System.in); - - do { - System.out.print("\n Inform the row number (0 - " + engine.getHeight() + "): " ); - - i = s.nextInt(); - - System.out.print("\n Inform the column number (0 - " + engine.getWidth() + "): " ); - - j = s.nextInt(); - }while(!validPosition(i,j)); - - controller.makeCellAlive(i, j); - } - - private void nextGeneration() { - controller.nextGeneration(); - } - - private void halt() { - controller.halt(); - } - - private boolean validPosition(int i, int j) { - System.out.println(i); - System.out.println(j); - return i >= 0 && i < engine.getHeight() && j >= 0 && j < engine.getWidth(); - } - - private int parseOption(String option) { - if(option.equals("1")) { - return MAKE_CELL_ALIVE; - } - else if (option.equals("2")) { - return NEXT_GENERATION; - } - else if (option.equals("3")) { - return CONWAY; - } - else if (option.equals("4")) { - return HIGH_LIFE; - } - else if(option.equals("5")) { - return HALT; - } - else return INVALID_OPTION; - } - - /* Imprime uma linha usada como separador das linhas do tabuleiro */ - private void printLine() { - for (int j = 0; j < engine.getWidth(); j++) { - System.out.print(LINE); - } - System.out.print("\n"); - } - - /* - * Imprime os identificadores das colunas na primeira linha do tabuleiro - */ - private void printFirstRow() { - System.out.println("\n \n"); - for (int j = 0; j < engine.getWidth(); j++) { - System.out.print(" " + j + " "); - } - System.out.print("\n"); - } -} diff --git a/GameOfLife/src/game.xml b/GameOfLife/src/game.xml index 143e0a9..2f9ed25 100644 --- a/GameOfLife/src/game.xml +++ b/GameOfLife/src/game.xml @@ -3,7 +3,7 @@ - + @@ -19,13 +19,13 @@ - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/GameOfLife/src/spring.xml b/GameOfLife/src/spring.xml deleted file mode 100644 index 13a1e62..0000000 --- a/GameOfLife/src/spring.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/libs/rules.package-1.jar b/libs/rules.package-1.jar new file mode 100644 index 0000000..15d99ee Binary files /dev/null and b/libs/rules.package-1.jar differ diff --git a/libs/rules.package-2.jar b/libs/rules.package-2.jar new file mode 100644 index 0000000..0b4dece Binary files /dev/null and b/libs/rules.package-2.jar differ