mirror of
https://github.com/EgorMIt/ITMO.git
synced 2026-09-12 19:29:58 +05:00
Initial commit
This commit is contained in:
commit
c8fe52bdcb
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
11
Informatics/Lab3/.idea/Lab3.iml
Normal file
11
Informatics/Lab3/.idea/Lab3.iml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.8 (venv)" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="TestRunnerService">
|
||||
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
|
||||
</component>
|
||||
</module>
|
||||
@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
4
Informatics/Lab3/.idea/misc.xml
Normal file
4
Informatics/Lab3/.idea/misc.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (venv)" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
8
Informatics/Lab3/.idea/modules.xml
Normal file
8
Informatics/Lab3/.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/Lab3.iml" filepath="$PROJECT_DIR$/.idea/Lab3.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
111
Informatics/Lab3/.idea/workspace.xml
Normal file
111
Informatics/Lab3/.idea/workspace.xml
Normal file
@ -0,0 +1,111 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="09f3e763-0e02-4f2a-9e00-062f83219465" name="Default Changelist" comment="" />
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="FileTemplateManagerImpl">
|
||||
<option name="RECENT_TEMPLATES">
|
||||
<list>
|
||||
<option value="Python Script" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectId" id="1SNlj08ilmiGBbNcERu0lDB8PTy" />
|
||||
<component name="PropertiesComponent">
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="settings.editor.selected.configurable" value="reference.settingsdialog.IDE.editor.colors" />
|
||||
</component>
|
||||
<component name="RunDashboard">
|
||||
<option name="ruleStates">
|
||||
<list>
|
||||
<RuleState>
|
||||
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
<RuleState>
|
||||
<option name="name" value="StatusDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="RunManager" selected="Python.Lab3">
|
||||
<configuration name="Lab3" type="PythonConfigurationType" factoryName="Python" temporary="true">
|
||||
<module name="Lab3" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
<env name="PYTHONUNBUFFERED" value="1" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="IS_MODULE_SDK" value="true" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/Lab3.py" />
|
||||
<option name="PARAMETERS" value="" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="MODULE_MODE" value="false" />
|
||||
<option name="REDIRECT_INPUT" value="false" />
|
||||
<option name="INPUT_FILE" value="" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="Unnamed" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
|
||||
<module name="Lab3" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
<env name="PYTHONUNBUFFERED" value="1" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="C:\Users\egorm\venv\Scripts\python.exe" />
|
||||
<option name="WORKING_DIRECTORY" value="" />
|
||||
<option name="IS_MODULE_SDK" value="false" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="SCRIPT_NAME" value="" />
|
||||
<option name="PARAMETERS" value="" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="MODULE_MODE" value="false" />
|
||||
<option name="REDIRECT_INPUT" value="false" />
|
||||
<option name="INPUT_FILE" value="" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<list>
|
||||
<item itemvalue="Python.Unnamed" />
|
||||
<item itemvalue="Python.Lab3" />
|
||||
</list>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="Python.Lab3" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="09f3e763-0e02-4f2a-9e00-062f83219465" name="Default Changelist" comment="" />
|
||||
<created>1571412065479</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1571412065479</updated>
|
||||
<workItem from="1571566285635" duration="95000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="1" />
|
||||
</component>
|
||||
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
||||
<SUITE FILE_PATH="coverage/Lab3$Lab3.coverage" NAME="Lab3 Coverage Results" MODIFIED="1571566383649" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
||||
</component>
|
||||
</project>
|
||||
68
Informatics/Lab3/Lab3.py
Normal file
68
Informatics/Lab3/Lab3.py
Normal file
@ -0,0 +1,68 @@
|
||||
def ToInt(x): # посимвольный/поразрядный прервод из строки в int
|
||||
k = 0
|
||||
for i in x:
|
||||
k = k * 10 + ord(i) - 48 # 0=48, 1=49...
|
||||
return k
|
||||
|
||||
|
||||
def ToTenth(a): # В 10ую
|
||||
l = list(str(a))
|
||||
s = len(l)
|
||||
k = 0
|
||||
for i in range(0, s):
|
||||
l[i] = ToInt(l[i]) * pow(-10, s - 1 - i)
|
||||
k = k + l[i]
|
||||
return k
|
||||
|
||||
|
||||
def ToSixtnth(a): # В 16ричную
|
||||
new = 0
|
||||
l = a.split('.')
|
||||
k = list(l[0])
|
||||
string = ''
|
||||
while len(k) < 4:
|
||||
k.insert(0, 0)
|
||||
l[0] = ''.join(map(str, k))
|
||||
for i in range(0, len(l)):
|
||||
k = list(l[i])
|
||||
for j in range(0, len(k)):
|
||||
new = new + ToInt(k[j]) * (pow(2, 4 - 1 - j))
|
||||
if new == 10:
|
||||
string = string + 'A'
|
||||
elif new == 11:
|
||||
string = string + 'B'
|
||||
elif new == 12:
|
||||
string = string + 'C'
|
||||
elif new == 13:
|
||||
string = string + 'D'
|
||||
elif new == 14:
|
||||
string = string + 'E'
|
||||
elif new == 15:
|
||||
string = string + 'F'
|
||||
else:
|
||||
string = string + str(new)
|
||||
new = 0
|
||||
return string
|
||||
|
||||
|
||||
with open('input.txt') as f:
|
||||
result = []
|
||||
lines = f.readlines()
|
||||
for y in lines:
|
||||
lst = y.split()
|
||||
first = lst[0]
|
||||
second = lst[1]
|
||||
number = lst[2:7]
|
||||
if first == '-10':
|
||||
for i in range(2, len(lst)):
|
||||
result.append(ToTenth(lst[i]))
|
||||
result = list(map(str, result))
|
||||
if first == '2':
|
||||
for i in range(2, len(lst)):
|
||||
result.append(ToSixtnth(lst[i]))
|
||||
result = list(map(str, result))
|
||||
|
||||
print('{} -> {} : {}'.format(first, second,
|
||||
' | '.join(['{} -> {}'.format(i, j)
|
||||
for i, j in zip(number, result)])))
|
||||
result = []
|
||||
8
Informatics/Lab3/input.txt
Normal file
8
Informatics/Lab3/input.txt
Normal file
@ -0,0 +1,8 @@
|
||||
-10 10 174 46 84 92 10
|
||||
-10 10 748 38 19 72 5
|
||||
-10 10 90 72 22 61 33
|
||||
-10 10 111 222 165 13 14
|
||||
2 16 1100.0110 11 101 1.0101 1000.0001
|
||||
2 16 100.0100 1.0111 1110 1.0011.0011 10.1010
|
||||
2 16 1.1111 1010.0001 100.1101 110.1101 11.1000
|
||||
2 16 1.1100 1.0010.1010 10.0010 1.0010.1110 1.0101.1001
|
||||
@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
11
Informatics/Lab4/.idea/lab4.1.iml
Normal file
11
Informatics/Lab4/.idea/lab4.1.iml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="TestRunnerService">
|
||||
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
|
||||
</component>
|
||||
</module>
|
||||
7
Informatics/Lab4/.idea/misc.xml
Normal file
7
Informatics/Lab4/.idea/misc.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptSettings">
|
||||
<option name="languageLevel" value="ES6" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
8
Informatics/Lab4/.idea/modules.xml
Normal file
8
Informatics/Lab4/.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/lab4.1.iml" filepath="$PROJECT_DIR$/.idea/lab4.1.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
107
Informatics/Lab4/.idea/workspace.xml
Normal file
107
Informatics/Lab4/.idea/workspace.xml
Normal file
@ -0,0 +1,107 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="b4894bc6-b16e-4189-85d9-c7ae90e53da4" name="Default Changelist" comment="" />
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="FileTemplateManagerImpl">
|
||||
<option name="RECENT_TEMPLATES">
|
||||
<list>
|
||||
<option value="Python Script" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectId" id="1TNQlto5EKzOmE5eXnlBs4EwpKP" />
|
||||
<component name="PropertiesComponent">
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
</component>
|
||||
<component name="RunDashboard">
|
||||
<option name="ruleStates">
|
||||
<list>
|
||||
<RuleState>
|
||||
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
<RuleState>
|
||||
<option name="name" value="StatusDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="RunManager" selected="Python.mainlib">
|
||||
<configuration name="main" type="PythonConfigurationType" factoryName="Python" temporary="true">
|
||||
<module name="lab4.1" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
<env name="PYTHONUNBUFFERED" value="1" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="IS_MODULE_SDK" value="true" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/main.py" />
|
||||
<option name="PARAMETERS" value="" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="MODULE_MODE" value="false" />
|
||||
<option name="REDIRECT_INPUT" value="false" />
|
||||
<option name="INPUT_FILE" value="" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="mainlib" type="PythonConfigurationType" factoryName="Python" temporary="true">
|
||||
<module name="lab4.1" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
<env name="PYTHONUNBUFFERED" value="1" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="IS_MODULE_SDK" value="true" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/mainlib.py" />
|
||||
<option name="PARAMETERS" value="" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="MODULE_MODE" value="false" />
|
||||
<option name="REDIRECT_INPUT" value="false" />
|
||||
<option name="INPUT_FILE" value="" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="Python.mainlib" />
|
||||
<item itemvalue="Python.main" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="b4894bc6-b16e-4189-85d9-c7ae90e53da4" name="Default Changelist" comment="" />
|
||||
<created>1573298227805</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1573298227805</updated>
|
||||
<workItem from="1573298229678" duration="4092000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="1" />
|
||||
</component>
|
||||
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
||||
<SUITE FILE_PATH="coverage/lab4_1$main.coverage" NAME="main Coverage Results" MODIFIED="1573306287621" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
||||
<SUITE FILE_PATH="coverage/lab4_1$mainlib.coverage" NAME="mainlib Coverage Results" MODIFIED="1573306318031" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
||||
</component>
|
||||
</project>
|
||||
18
Informatics/Lab4/main.py
Normal file
18
Informatics/Lab4/main.py
Normal file
@ -0,0 +1,18 @@
|
||||
import re
|
||||
import time
|
||||
|
||||
input = open('timetable.json', 'r', encoding='utf-8')
|
||||
output = open('timetable.yaml', 'w', encoding='utf-8')
|
||||
|
||||
start_time = time.perf_counter()
|
||||
strings = input.read().split('\n')
|
||||
input.close()
|
||||
for i in range(len(strings)):
|
||||
if ':' in strings[i]:
|
||||
strings[i] = re.sub('[{}"",]', '', strings[i])
|
||||
output.write('\n')
|
||||
output.write(strings[i])
|
||||
else:
|
||||
continue
|
||||
output.close()
|
||||
print(time.perf_counter() - start_time)
|
||||
11
Informatics/Lab4/mainlib.py
Normal file
11
Informatics/Lab4/mainlib.py
Normal file
@ -0,0 +1,11 @@
|
||||
import yaml
|
||||
import json
|
||||
import time
|
||||
|
||||
start_time = time.perf_counter()
|
||||
|
||||
with open("timetable.json", 'r', encoding='utf-8') as input:
|
||||
json_object = json.load(input)
|
||||
print(yaml.dump(json_object))
|
||||
|
||||
print(time.perf_counter() - start_time)
|
||||
35
Informatics/Lab4/timetable.json
Normal file
35
Informatics/Lab4/timetable.json
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"timetable": {
|
||||
"-lang": "ru",
|
||||
"-group": "P3114",
|
||||
"-day": "thursday",
|
||||
"lessons":{
|
||||
"lesson1":{
|
||||
"-time": "10:00-11:30",
|
||||
"-room": "2219 ауд.",
|
||||
"-place": "ул.Ломоносова, д.9, лит. А",
|
||||
"-lesson": "математика (лекция)"
|
||||
},
|
||||
"lesson2":{
|
||||
"-time": "11:40-13:10",
|
||||
"-room": "3120 ауд.",
|
||||
"-place": "ул.Ломоносова, д.9, лит. А",
|
||||
"-lesson": "иностранный язык (практика)"
|
||||
},
|
||||
"lesson3":{
|
||||
"-time": "13:30-15:00",
|
||||
"-room": "3412 ауд.",
|
||||
"-place": "ул.Ломоносова, д.9, лит. А",
|
||||
"-lesson": "математика (практика)"
|
||||
},
|
||||
"lesson4":{
|
||||
"-time": "15:20-16:50",
|
||||
"-room": "спортивный зал",
|
||||
"-place": "ул.Ломоносова, д.9, лит. А",
|
||||
"-lesson": "физическая культура"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
82
Informatics/Lab4/timetable.yaml
Normal file
82
Informatics/Lab4/timetable.yaml
Normal file
@ -0,0 +1,82 @@
|
||||
|
||||
web-app:
|
||||
servlet: [
|
||||
servlet-name: cofaxCDS
|
||||
servlet-class: org.cofax.cds.CDSServlet
|
||||
init-param:
|
||||
configGlossary:installationAt: Philadelphia PA
|
||||
configGlossary:adminEmail: ksm@pobox.com
|
||||
configGlossary:poweredBy: Cofax
|
||||
configGlossary:poweredByIcon: /images/cofax.gif
|
||||
configGlossary:staticPath: /content/static
|
||||
templateProcessorClass: org.cofax.WysiwygTemplate
|
||||
templateLoaderClass: org.cofax.FilesTemplateLoader
|
||||
templatePath: templates
|
||||
templateOverridePath:
|
||||
defaultListTemplate: listTemplate.htm
|
||||
defaultFileTemplate: articleTemplate.htm
|
||||
useJSP: false
|
||||
jspListTemplate: listTemplate.jsp
|
||||
jspFileTemplate: articleTemplate.jsp
|
||||
cachePackageTagsTrack: 200
|
||||
cachePackageTagsStore: 200
|
||||
cachePackageTagsRefresh: 60
|
||||
cacheTemplatesTrack: 100
|
||||
cacheTemplatesStore: 50
|
||||
cacheTemplatesRefresh: 15
|
||||
cachePagesTrack: 200
|
||||
cachePagesStore: 100
|
||||
cachePagesRefresh: 10
|
||||
cachePagesDirtyRead: 10
|
||||
searchEngineListTemplate: forSearchEnginesList.htm
|
||||
searchEngineFileTemplate: forSearchEngines.htm
|
||||
searchEngineRobotsDb: WEB-INF/robots.db
|
||||
useDataStore: true
|
||||
dataStoreClass: org.cofax.SqlDataStore
|
||||
redirectionClass: org.cofax.SqlRedirection
|
||||
dataStoreName: cofax
|
||||
dataStoreDriver: com.microsoft.jdbc.sqlserver.SQLServerDriver
|
||||
dataStoreUrl: jdbc:microsoft:sqlserver://LOCALHOST:1433;DatabaseName=goon
|
||||
dataStoreUser: sa
|
||||
dataStorePassword: dataStoreTestQuery
|
||||
dataStoreTestQuery: SET NOCOUNT ON;select test='test';
|
||||
dataStoreLogFile: /usr/local/tomcat/logs/datastore.log
|
||||
dataStoreInitConns: 10
|
||||
dataStoreMaxConns: 100
|
||||
dataStoreConnUsageLimit: 100
|
||||
dataStoreLogLevel: debug
|
||||
maxUrlLength: 500
|
||||
servlet-name: cofaxEmail
|
||||
servlet-class: org.cofax.cds.EmailServlet
|
||||
init-param:
|
||||
mailHost: mail1
|
||||
mailHostOverride: mail2
|
||||
servlet-name: cofaxAdmin
|
||||
servlet-class: org.cofax.cds.AdminServlet
|
||||
servlet-name: fileServlet
|
||||
servlet-class: org.cofax.cds.FileServlet
|
||||
servlet-name: cofaxTools
|
||||
servlet-class: org.cofax.cms.CofaxToolsServlet
|
||||
init-param:
|
||||
templatePath: toolstemplates/
|
||||
log: 1
|
||||
logLocation: /usr/local/tomcat/logs/CofaxTools.log
|
||||
logMaxSize:
|
||||
dataLog: 1
|
||||
dataLogLocation: /usr/local/tomcat/logs/dataLog.log
|
||||
dataLogMaxSize:
|
||||
removePageCache: /content/admin/remove?cache=pages&id=
|
||||
removeTemplateCache: /content/admin/remove?cache=templates&id=
|
||||
fileTransferFolder: /usr/local/tomcat/webapps/content/fileTransferFolder
|
||||
lookInContext: 1
|
||||
adminGroupID: 4
|
||||
betaServer: true]
|
||||
servlet-mapping:
|
||||
cofaxCDS: /
|
||||
cofaxEmail: /cofaxutil/aemail/*
|
||||
cofaxAdmin: /admin/*
|
||||
fileServlet: /static/*
|
||||
cofaxTools: /tools/*
|
||||
taglib:
|
||||
taglib-uri: cofax.tld
|
||||
taglib-location: /WEB-INF/tlds/cofax.tld
|
||||
BIN
Informatics/Аннотация 21.11.docx
Normal file
BIN
Informatics/Аннотация 21.11.docx
Normal file
Binary file not shown.
BIN
Informatics/Аннотация 24.10.docx
Normal file
BIN
Informatics/Аннотация 24.10.docx
Normal file
Binary file not shown.
BIN
Informatics/Аннотация 26.09.docx
Normal file
BIN
Informatics/Аннотация 26.09.docx
Normal file
Binary file not shown.
BIN
Informatics/Аннотация 3.10.docx
Normal file
BIN
Informatics/Аннотация 3.10.docx
Normal file
Binary file not shown.
BIN
Informatics/Аннотация 7.11.docx
Normal file
BIN
Informatics/Аннотация 7.11.docx
Normal file
Binary file not shown.
BIN
Informatics/ИнфоЛаб3.docx
Normal file
BIN
Informatics/ИнфоЛаб3.docx
Normal file
Binary file not shown.
BIN
Informatics/ИнфоЛаб4.1.docx
Normal file
BIN
Informatics/ИнфоЛаб4.1.docx
Normal file
Binary file not shown.
BIN
Informatics/ИнфоЛаб4.docx
Normal file
BIN
Informatics/ИнфоЛаб4.docx
Normal file
Binary file not shown.
BIN
Informatics/ИнфоЛаб5.docm
Normal file
BIN
Informatics/ИнфоЛаб5.docm
Normal file
Binary file not shown.
BIN
Informatics/ИнфоЛаб6.xlsm
Normal file
BIN
Informatics/ИнфоЛаб6.xlsm
Normal file
Binary file not shown.
BIN
OPD/bcomp-ng.jar
Normal file
BIN
OPD/bcomp-ng.jar
Normal file
Binary file not shown.
BIN
OPD/Конспект лекций 2019 часть 1.pdf
Normal file
BIN
OPD/Конспект лекций 2019 часть 1.pdf
Normal file
Binary file not shown.
102
OPD/ОПДlab1.txt
Normal file
102
OPD/ОПДlab1.txt
Normal file
@ -0,0 +1,102 @@
|
||||
mkdir lab0
|
||||
cd lab0
|
||||
touch archeops2
|
||||
mkdir beedrill8
|
||||
mkdir croagunk4
|
||||
mkdir meowth1
|
||||
cd beedrill8
|
||||
touch cottonee
|
||||
touch infernape
|
||||
mkdir hippowdon
|
||||
mkdir vulpix
|
||||
mkdir empoleon
|
||||
touch lileep
|
||||
cd ..
|
||||
cd croagunk4
|
||||
touch hariyama
|
||||
touch drapion
|
||||
mkdir snover
|
||||
touch cranidos
|
||||
mkdir vespiquen
|
||||
cd ..
|
||||
touch gible7
|
||||
touch magby3
|
||||
cd meowth1
|
||||
mkdir petilil
|
||||
touch wartortle
|
||||
touch gardevoir
|
||||
mkdir magcargo
|
||||
|
||||
|
||||
|
||||
|
||||
echo "Ðàçâèòûå ñïîñîáíîñòè Intimidate" > archeops2
|
||||
cd beedrill8
|
||||
echo -e "Ðàçâèòûå\nñïîñîáíîñòè Chlorophyll" > cottonee
|
||||
echo -e "weigth=121.3 height=47.0 atk=10\ndef=7" > infernape
|
||||
echo "Ðàçâèòûå ñïîñîáíîñòè Storm Drain" > lileep
|
||||
cd ..
|
||||
cd croagunk4
|
||||
echo -e "satk=4\nsdef=6 spd=5" > hariyama
|
||||
echo "Òèï ïîêåìîíà POISON DARK" > drapion
|
||||
echo -e "Ðàçâèòûå\nñïîñîáíîñòè Sheer Force" > cranidos
|
||||
|
||||
echo -e "Ñïîñîáíîñòè Pure Blooded Landslide\nSand Veil Vital Spirit" > gible7
|
||||
echo -e "Ðàçâèòûå ñïîñîáíîñòè Vital\nSpirit" > magby3
|
||||
cd meowth1
|
||||
echo "Ðàçâèòûå ñïîñîáíîñòè Rain Dish" > wartortle
|
||||
echo -e "Õîäû\nBody Slam Defense Curl Double-Edge Fire Punch Heal Bell Healing wish\0207 \nHelping Hand Hyper Voice Ice Punch Icy wind Hagic Coat Hagic Room\nHud-Slap Pain Split Recycle Role Play Shock Wave Signal Beam Skill\nSwap Sleep Talk Snatch Snore Swift Thunderpunch Trick Wonder Room Zen\nHeadbutt" > gardevoir
|
||||
|
||||
chmod 004 archeops2
|
||||
chmod 500 beedrill8
|
||||
cd beedrill8
|
||||
chmod 610 cottonee
|
||||
chmod 604 infernape
|
||||
chmod 524 hippowdon
|
||||
chmod 764 vulpix
|
||||
chmod 751 empoleon
|
||||
chmod 045 lileep
|
||||
cd ..
|
||||
chmod 700 croagunk4
|
||||
cd croagunk4
|
||||
chmod 660 hariyama
|
||||
chmod 066 drapion
|
||||
chmod 764 snover
|
||||
chmod 404 cranidos
|
||||
chmod 775 vespiquen
|
||||
cd ..
|
||||
chmod 046 gible7
|
||||
chmod 006 magby3
|
||||
chmod 561 meowth1
|
||||
cd meowth1
|
||||
chmod 736 petilil
|
||||
chmod 404 wartortle
|
||||
chmod 644 gardevoir
|
||||
chmod 357 magcargo
|
||||
cd ..
|
||||
|
||||
cp -r beedrill8 beedrill8/vulpix
|
||||
ln -s meowth1 Copy_12
|
||||
cp archeops2 beedrill8/infernapearcheops
|
||||
cp archeops2 meowth1/petilil
|
||||
ln -s archeops2 meowth1/gardevoirarcheops
|
||||
ln gible7 meowth1/gardevoirgible
|
||||
cat croagunk4/hariyama beedrill8/infernape > gible7_28
|
||||
|
||||
wc -l cottonee infernape ../croagunk4/hariyama | sort
|
||||
ls -lrt 2>/dev/null | grep e$
|
||||
cat -n gible7 | sort 2>/dev/null
|
||||
ls -lrt | tail -4 | grep g$ 2>/tmp/err
|
||||
cat -n beedrill8/* | grep -v in | sort -f 2>&1
|
||||
ls -lsr | grep v$ 2>/tmp/err
|
||||
|
||||
chmod u+w archeops2
|
||||
rm archeops2
|
||||
chmod u+w beedrill8/infernape
|
||||
rm beedrill8/infernape
|
||||
rm lab0/meowth1/gardevoirarcheo*
|
||||
rm meowth1/gardevoirgib*
|
||||
rm -rf beedrill8
|
||||
rm -rf croagunk4/vespiquen
|
||||
|
||||
|
||||
BIN
OPD/ОпдЛаб1.docx
Normal file
BIN
OPD/ОпдЛаб1.docx
Normal file
Binary file not shown.
BIN
OPD/ОпдЛаб2.docx
Normal file
BIN
OPD/ОпдЛаб2.docx
Normal file
Binary file not shown.
BIN
ProgrammingJava/Lab1/ПрогаЛаб1.docx
Normal file
BIN
ProgrammingJava/Lab1/ПрогаЛаб1.docx
Normal file
Binary file not shown.
9
ProgrammingJava/Lab2/Lab2/.idea/artifacts/Lab2_jar.xml
Normal file
9
ProgrammingJava/Lab2/Lab2/.idea/artifacts/Lab2_jar.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="Lab2:jar">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/Lab2_jar</output-path>
|
||||
<root id="archive" name="Lab2.jar">
|
||||
<element id="module-output" name="Lab2" />
|
||||
<element id="extracted-dir" path="D:/Библиотеки/Загрузки/Pokemon.jar" path-in-jar="/" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
||||
1
ProgrammingJava/Lab2/Lab2/.idea/description.html
Normal file
1
ProgrammingJava/Lab2/Lab2/.idea/description.html
Normal file
@ -0,0 +1 @@
|
||||
<html>Simple <b>Java</b> application that includes a class with <code>main()</code> method</html>
|
||||
6
ProgrammingJava/Lab2/Lab2/.idea/encodings.xml
Normal file
6
ProgrammingJava/Lab2/Lab2/.idea/encodings.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="PROJECT" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
||||
9
ProgrammingJava/Lab2/Lab2/.idea/misc.xml
Normal file
9
ProgrammingJava/Lab2/Lab2/.idea/misc.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectKey">
|
||||
<option name="state" value="project://e2804f05-5315-4fc6-a121-c522a6c26470" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
||||
8
ProgrammingJava/Lab2/Lab2/.idea/modules.xml
Normal file
8
ProgrammingJava/Lab2/Lab2/.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/Lab2.iml" filepath="$PROJECT_DIR$/Lab2.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
3
ProgrammingJava/Lab2/Lab2/.idea/project-template.xml
Normal file
3
ProgrammingJava/Lab2/Lab2/.idea/project-template.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<input-field default="com.company">IJ_BASE_PACKAGE</input-field>
|
||||
</template>
|
||||
124
ProgrammingJava/Lab2/Lab2/.idea/uiDesigner.xml
Normal file
124
ProgrammingJava/Lab2/Lab2/.idea/uiDesigner.xml
Normal file
@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Palette2">
|
||||
<group name="Swing">
|
||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||
</item>
|
||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||
<initial-values>
|
||||
<property name="text" value="Button" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="RadioButton" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="CheckBox" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="Label" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||
<preferred-size width="-1" height="20" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||
</item>
|
||||
</group>
|
||||
</component>
|
||||
</project>
|
||||
131
ProgrammingJava/Lab2/Lab2/.idea/workspace.xml
Normal file
131
ProgrammingJava/Lab2/Lab2/.idea/workspace.xml
Normal file
@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ArtifactsWorkspaceSettings">
|
||||
<artifacts-to-build>
|
||||
<artifact name="Lab2:jar" />
|
||||
</artifacts-to-build>
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="bdf572ee-5669-4146-9d99-9f5e41545a8d" name="Default Changelist" comment="" />
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="FileTemplateManagerImpl">
|
||||
<option name="RECENT_TEMPLATES">
|
||||
<list>
|
||||
<option value="Class" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectId" id="1S4NYj5kzYcVQMILc31yekXBiFw" />
|
||||
<component name="PropertiesComponent">
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
<property name="aspect.path.notification.shown" value="true" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="project.structure.last.edited" value="Artifacts" />
|
||||
<property name="project.structure.proportion" value="0.0" />
|
||||
<property name="project.structure.side.proportion" value="0.2" />
|
||||
<property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
|
||||
</component>
|
||||
<component name="RunDashboard">
|
||||
<option name="ruleStates">
|
||||
<list>
|
||||
<RuleState>
|
||||
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
<RuleState>
|
||||
<option name="name" value="StatusDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="RunManager">
|
||||
<configuration name="Main" type="Application" factoryName="Application" temporary="true">
|
||||
<option name="MAIN_CLASS_NAME" value="Main" />
|
||||
<module name="Lab2" />
|
||||
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
|
||||
<RunnerSettings RunnerId="Run" />
|
||||
<ConfigurationWrapper RunnerId="Run" />
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="Application.Main" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="bdf572ee-5669-4146-9d99-9f5e41545a8d" name="Default Changelist" comment="" />
|
||||
<created>1570818957709</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1570818957709</updated>
|
||||
<workItem from="1571566148132" duration="77000" />
|
||||
<workItem from="1572170706040" duration="223000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="1" />
|
||||
</component>
|
||||
<component name="simpleUML.UMLToolWindowPlugin">
|
||||
<General>
|
||||
<option name="birdViewUpdateDelay" value="2000" />
|
||||
<option name="knownFile0" value="file://$PROJECT_DIR$/../Lab2UML.suml" />
|
||||
<option name="defaultFileLocation" value="file://$PROJECT_DIR$/.." />
|
||||
</General>
|
||||
<Classdiagram>
|
||||
<option name="diagramTitleFont" value="SansSerif,1,12" />
|
||||
<option name="diagramFont" value="SansSerif,0,10" />
|
||||
<option name="defaultFieldsExpanded" value="false" />
|
||||
<option name="defaultContructorsExpanded" value="false" />
|
||||
<option name="defaultMethodsExpanded" value="false" />
|
||||
<option name="showParameters" value="true" />
|
||||
<option name="showTooltip" value="true" />
|
||||
<option name="showReturnValues" value="true" />
|
||||
<option name="longModifier" value="true" />
|
||||
<option name="implementsBehaviour" value="1" />
|
||||
<option name="extendsBehaviour" value="1" />
|
||||
<option name="compartmentBehaviour" value="1" />
|
||||
<option name="interfaceBackgroundColor" value="-6494306" />
|
||||
<option name="abstractClassBackgroundColor" value="-1580132" />
|
||||
<option name="classBackgroundColor" value="-6508057" />
|
||||
<option name="diagramBackgroundColor" value="-1" />
|
||||
<option name="useAntialiasedConnectors" value="true" />
|
||||
<option name="quickSourceLinkColor" value="-16776961" />
|
||||
<option name="quickDiagramLinkColor" value="-8454144" />
|
||||
<option name="drawDecorations" value="false" />
|
||||
<option name="hideFieldList" value="" />
|
||||
<option name="showFieldList" value="" />
|
||||
<option name="hideConstructorList" value="" />
|
||||
<option name="showConstructorList" value="" />
|
||||
<option name="hideMethodList" value="" />
|
||||
<option name="showMethodList" value="" />
|
||||
<option name="minimumFigureSize" value="0,0" />
|
||||
</Classdiagram>
|
||||
<Dependencydiagram>
|
||||
<option name="diagramTitleFont" value="SansSerif,1,12" />
|
||||
<option name="diagramFont" value="SansSerif,0,10" />
|
||||
<option name="diagramBackgroundColor" value="-1" />
|
||||
<option name="useAntialiasedConnectors" value="true" />
|
||||
<option name="packageNameCompressionLevel" value="0" />
|
||||
</Dependencydiagram>
|
||||
<Packagediagram>
|
||||
<option name="diagramTitleFont" value="SansSerif,0,12" />
|
||||
<option name="diagramFont" value="SansSerif,0,10" />
|
||||
<option name="packageBackgroundColor" value="-4144960" />
|
||||
<option name="diagramBackgroundColor" value="-1" />
|
||||
<option name="useAntialiasedConnectors" value="true" />
|
||||
<option name="packageNameCompressionLevel" value="2" />
|
||||
</Packagediagram>
|
||||
</component>
|
||||
</project>
|
||||
20
ProgrammingJava/Lab2/Lab2/Lab2.iml
Normal file
20
ProgrammingJava/Lab2/Lab2/Lab2.iml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module-library">
|
||||
<library>
|
||||
<CLASSES>
|
||||
<root url="jar://D:/Библиотеки/Загрузки/Pokemon.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
</component>
|
||||
</module>
|
||||
BIN
ProgrammingJava/Lab2/Lab2/out/artifacts/Lab2_jar/Lab2.jar
Normal file
BIN
ProgrammingJava/Lab2/Lab2/out/artifacts/Lab2_jar/Lab2.jar
Normal file
Binary file not shown.
@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: info.Main
|
||||
|
||||
BIN
ProgrammingJava/Lab2/Lab2/out/production/Lab2/info/Main.class
Normal file
BIN
ProgrammingJava/Lab2/Lab2/out/production/Lab2/info/Main.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3
ProgrammingJava/Lab2/Lab2/src/META-INF/MANIFEST.MF
Normal file
3
ProgrammingJava/Lab2/Lab2/src/META-INF/MANIFEST.MF
Normal file
@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: info.Main
|
||||
|
||||
25
ProgrammingJava/Lab2/Lab2/src/info/Main.java
Normal file
25
ProgrammingJava/Lab2/Lab2/src/info/Main.java
Normal file
@ -0,0 +1,25 @@
|
||||
package info;
|
||||
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
import info.pockemons.*;
|
||||
import info.moves.*;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
Battle b = new Battle();
|
||||
Registeel p1 = new Registeel("Круглоголовый",2);
|
||||
Mismagius p2 = new Mismagius("Шляпник", 2);;
|
||||
Misdreavus p3 = new Misdreavus("Медузич",2);
|
||||
Dratini p4 = new Dratini("Драк", 2);;
|
||||
Dragonair p6 = new Dragonair("ДракПокруче", 2);
|
||||
Dragonite p5 = new Dragonite("ДракКрутой",2);
|
||||
|
||||
b.addAlly(p1);
|
||||
b.addAlly(p2);
|
||||
b.addAlly(p3);
|
||||
b.addFoe(p4);
|
||||
b.addFoe(p5);
|
||||
b.addFoe(p6);
|
||||
b.go();
|
||||
}
|
||||
}
|
||||
22
ProgrammingJava/Lab2/Lab2/src/info/moves/Facade.java
Normal file
22
ProgrammingJava/Lab2/Lab2/src/info/moves/Facade.java
Normal file
@ -0,0 +1,22 @@
|
||||
package info.moves;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class Facade extends PhysicalMove {
|
||||
public Facade(){
|
||||
super(Type.NORMAL, 70, 100);
|
||||
}
|
||||
private boolean flag;
|
||||
@Override
|
||||
public void applyOppDamage(Pokemon poc, double damage){
|
||||
Status cond = poc.getCondition();
|
||||
flag = true;
|
||||
if (cond.equals(Status.POISON) || cond.equals(Status.BURN) || cond.equals(Status.PARALYZE)) {
|
||||
poc.setMod(Stat.HP, -2*(int)Math.round(damage));
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected String describe(){
|
||||
if(flag) return "сильно бьет";
|
||||
else return "бьет";
|
||||
}
|
||||
}
|
||||
21
ProgrammingJava/Lab2/Lab2/src/info/moves/FireBlast.java
Normal file
21
ProgrammingJava/Lab2/Lab2/src/info/moves/FireBlast.java
Normal file
@ -0,0 +1,21 @@
|
||||
package info.moves;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class FireBlast extends SpecialMove{
|
||||
public FireBlast(){
|
||||
super(Type.FIRE, 120,85);
|
||||
}
|
||||
private boolean flag;
|
||||
@Override
|
||||
public void applyOppEffects(Pokemon poc) {
|
||||
if (Math.random() <= 0.3) {
|
||||
flag = true;
|
||||
Effect.burn(poc);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected String describe(){
|
||||
if(flag) return "дамажит и поджигает";
|
||||
else return "дамажит";
|
||||
}
|
||||
}
|
||||
16
ProgrammingJava/Lab2/Lab2/src/info/moves/HammerArm.java
Normal file
16
ProgrammingJava/Lab2/Lab2/src/info/moves/HammerArm.java
Normal file
@ -0,0 +1,16 @@
|
||||
package info.moves;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class HammerArm extends PhysicalMove{
|
||||
public HammerArm(){
|
||||
super(Type.NORMAL, 100, 90);
|
||||
}
|
||||
@Override
|
||||
public void applySelfEffects (Pokemon p){
|
||||
p.setMod(Stat.SPEED,-1);
|
||||
}
|
||||
@Override
|
||||
protected String describe(){
|
||||
return "кидает молот";
|
||||
}
|
||||
}
|
||||
19
ProgrammingJava/Lab2/Lab2/src/info/moves/IcicleCrash.java
Normal file
19
ProgrammingJava/Lab2/Lab2/src/info/moves/IcicleCrash.java
Normal file
@ -0,0 +1,19 @@
|
||||
package info.moves;
|
||||
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class IcicleCrash extends PhysicalMove{
|
||||
public IcicleCrash(){
|
||||
super(Type.NORMAL, 85,90);
|
||||
}
|
||||
@Override
|
||||
public void applyOppEffects(Pokemon p) {
|
||||
if (Math.random() <= 0.3){
|
||||
Effect.flinch(p);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected String describe(){
|
||||
return "морозит";
|
||||
}
|
||||
}
|
||||
25
ProgrammingJava/Lab2/Lab2/src/info/moves/Rest.java
Normal file
25
ProgrammingJava/Lab2/Lab2/src/info/moves/Rest.java
Normal file
@ -0,0 +1,25 @@
|
||||
package info.moves;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class Rest extends StatusMove{
|
||||
|
||||
public Rest(){
|
||||
super(Type.NORMAL,0,0);
|
||||
|
||||
}
|
||||
@Override
|
||||
protected void applySelfEffects(Pokemon att){
|
||||
Effect eff = new Effect();
|
||||
eff = eff.condition(Status.SLEEP);
|
||||
eff = eff.turns(2);
|
||||
att.restore();
|
||||
att.addEffect(eff);
|
||||
}
|
||||
protected boolean checkAccuracy(Pokemon att,Pokemon def){
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
protected String describe(){
|
||||
return "адыхает";
|
||||
}
|
||||
}
|
||||
17
ProgrammingJava/Lab2/Lab2/src/info/moves/SleepPowder.java
Normal file
17
ProgrammingJava/Lab2/Lab2/src/info/moves/SleepPowder.java
Normal file
@ -0,0 +1,17 @@
|
||||
package info.moves;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class SleepPowder extends SpecialMove {
|
||||
public SleepPowder(){
|
||||
super(Type.GRASS,0 ,75);
|
||||
}
|
||||
@Override
|
||||
public void applyOppEffects(Pokemon p) {
|
||||
Effect.sleep(p);
|
||||
}
|
||||
@Override
|
||||
protected String describe() {
|
||||
return "усыпляет";
|
||||
}
|
||||
|
||||
}
|
||||
19
ProgrammingJava/Lab2/Lab2/src/info/moves/StunSpore.java
Normal file
19
ProgrammingJava/Lab2/Lab2/src/info/moves/StunSpore.java
Normal file
@ -0,0 +1,19 @@
|
||||
package info.moves;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class StunSpore extends SpecialMove{
|
||||
public StunSpore() {
|
||||
super(Type.GRASS, 0, 75);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyOppEffects(Pokemon p) {
|
||||
if (p.hasType(Type.ELECTRIC) == false ){
|
||||
Effect.paralyze(p);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected String describe(){
|
||||
return "парализует";
|
||||
}
|
||||
}
|
||||
17
ProgrammingJava/Lab2/Lab2/src/info/moves/Swagger.java
Normal file
17
ProgrammingJava/Lab2/Lab2/src/info/moves/Swagger.java
Normal file
@ -0,0 +1,17 @@
|
||||
package info.moves;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class Swagger extends SpecialMove{
|
||||
public Swagger(){
|
||||
super(Type.NORMAL,0,90);
|
||||
}
|
||||
@Override
|
||||
protected String describe(){
|
||||
return "флексит";
|
||||
}
|
||||
@Override
|
||||
protected void applyOppEffects(Pokemon opp){
|
||||
opp.confuse();
|
||||
opp.setMod(Stat.ATTACK,2);
|
||||
}
|
||||
}
|
||||
18
ProgrammingJava/Lab2/Lab2/src/info/moves/SwordDance.java
Normal file
18
ProgrammingJava/Lab2/Lab2/src/info/moves/SwordDance.java
Normal file
@ -0,0 +1,18 @@
|
||||
package info.moves;
|
||||
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class SwordDance extends SpecialMove{
|
||||
public SwordDance(){
|
||||
super(Type.NORMAL,0,95);
|
||||
}
|
||||
@Override
|
||||
public void applySelfEffects(Pokemon p) {
|
||||
p.setMod(Stat.ATTACK,+2);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String describe(){
|
||||
return "усилил атаку";
|
||||
}
|
||||
}
|
||||
12
ProgrammingJava/Lab2/Lab2/src/info/moves/Tackle.java
Normal file
12
ProgrammingJava/Lab2/Lab2/src/info/moves/Tackle.java
Normal file
@ -0,0 +1,12 @@
|
||||
package info.moves;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class Tackle extends PhysicalMove{
|
||||
public Tackle(){
|
||||
super(Type.NORMAL,35,95);
|
||||
}
|
||||
@Override
|
||||
protected String describe(){
|
||||
return "толкнул";
|
||||
}
|
||||
}
|
||||
12
ProgrammingJava/Lab2/Lab2/src/info/pockemons/Dragonair.java
Normal file
12
ProgrammingJava/Lab2/Lab2/src/info/pockemons/Dragonair.java
Normal file
@ -0,0 +1,12 @@
|
||||
package info.pockemons;
|
||||
import info.moves.*;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class Dragonair extends Pokemon {
|
||||
public Dragonair(String name, int level){
|
||||
super(name,level);
|
||||
setStats(61,84,65,70,70,70);
|
||||
setType(Type.DRAGON);
|
||||
setMove(new Swagger(), new Facade(), new HammerArm());
|
||||
}
|
||||
}
|
||||
12
ProgrammingJava/Lab2/Lab2/src/info/pockemons/Dragonite.java
Normal file
12
ProgrammingJava/Lab2/Lab2/src/info/pockemons/Dragonite.java
Normal file
@ -0,0 +1,12 @@
|
||||
package info.pockemons;
|
||||
import info.moves.*;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class Dragonite extends Pokemon {
|
||||
public Dragonite(String name, int level){
|
||||
super(name,level);
|
||||
setStats(91,134,95,100,100,80);
|
||||
setType(Type.DRAGON, Type.FLYING);
|
||||
setMove(new Swagger(), new Facade(), new HammerArm(), new FireBlast());
|
||||
}
|
||||
}
|
||||
12
ProgrammingJava/Lab2/Lab2/src/info/pockemons/Dratini.java
Normal file
12
ProgrammingJava/Lab2/Lab2/src/info/pockemons/Dratini.java
Normal file
@ -0,0 +1,12 @@
|
||||
package info.pockemons;
|
||||
import info.moves.*;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class Dratini extends Pokemon {
|
||||
public Dratini(String name, int level){
|
||||
super(name,level);
|
||||
setStats(41,64,45,50,50,50);
|
||||
setType(Type.DRAGON);
|
||||
setMove(new Swagger(), new Facade());
|
||||
}
|
||||
}
|
||||
12
ProgrammingJava/Lab2/Lab2/src/info/pockemons/Misdreavus.java
Normal file
12
ProgrammingJava/Lab2/Lab2/src/info/pockemons/Misdreavus.java
Normal file
@ -0,0 +1,12 @@
|
||||
package info.pockemons;
|
||||
import info.moves.*;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class Misdreavus extends Pokemon {
|
||||
public Misdreavus(String name,int level){
|
||||
super(name,level);
|
||||
setStats(60,60,60,85,85,85);
|
||||
setType(Type.GHOST);
|
||||
setMove(new Rest(), new SwordDance(), new Swagger());
|
||||
}
|
||||
}
|
||||
12
ProgrammingJava/Lab2/Lab2/src/info/pockemons/Mismagius.java
Normal file
12
ProgrammingJava/Lab2/Lab2/src/info/pockemons/Mismagius.java
Normal file
@ -0,0 +1,12 @@
|
||||
package info.pockemons;
|
||||
import info.moves.*;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class Mismagius extends Pokemon {
|
||||
public Mismagius(String name, int level){
|
||||
super(name,level);
|
||||
setStats(60,60,60,105,105,105);
|
||||
setType(Type.GHOST);
|
||||
setMove(new Rest(), new SwordDance(), new Swagger(), new IcicleCrash());
|
||||
}
|
||||
}
|
||||
12
ProgrammingJava/Lab2/Lab2/src/info/pockemons/Registeel.java
Normal file
12
ProgrammingJava/Lab2/Lab2/src/info/pockemons/Registeel.java
Normal file
@ -0,0 +1,12 @@
|
||||
package info.pockemons;
|
||||
import info.moves.*;
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public class Registeel extends Pokemon{
|
||||
public Registeel (String name, int lvl){
|
||||
super (name, lvl);
|
||||
setStats(57,80,91,80,87,75);
|
||||
setType(Type.STEEL);
|
||||
setMove(new Tackle(), new SleepPowder(),new Rest(), new StunSpore());
|
||||
}
|
||||
}
|
||||
BIN
ProgrammingJava/Lab2/ПрогаЛаб2.docx
Normal file
BIN
ProgrammingJava/Lab2/ПрогаЛаб2.docx
Normal file
Binary file not shown.
8
ProgrammingJava/Lab3/Lab3/.idea/artifacts/Lab3_jar.xml
Normal file
8
ProgrammingJava/Lab3/Lab3/.idea/artifacts/Lab3_jar.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="Lab3:jar">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/Lab3_jar</output-path>
|
||||
<root id="archive" name="Lab3.jar">
|
||||
<element id="module-output" name="Lab3" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
||||
6
ProgrammingJava/Lab3/Lab3/.idea/misc.xml
Normal file
6
ProgrammingJava/Lab3/Lab3/.idea/misc.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
||||
8
ProgrammingJava/Lab3/Lab3/.idea/modules.xml
Normal file
8
ProgrammingJava/Lab3/Lab3/.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/Lab3.iml" filepath="$PROJECT_DIR$/Lab3.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
124
ProgrammingJava/Lab3/Lab3/.idea/uiDesigner.xml
Normal file
124
ProgrammingJava/Lab3/Lab3/.idea/uiDesigner.xml
Normal file
@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Palette2">
|
||||
<group name="Swing">
|
||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||
</item>
|
||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||
<initial-values>
|
||||
<property name="text" value="Button" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="RadioButton" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="CheckBox" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="Label" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||
<preferred-size width="-1" height="20" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||
</item>
|
||||
</group>
|
||||
</component>
|
||||
</project>
|
||||
93
ProgrammingJava/Lab3/Lab3/.idea/workspace.xml
Normal file
93
ProgrammingJava/Lab3/Lab3/.idea/workspace.xml
Normal file
@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ArtifactsWorkspaceSettings">
|
||||
<artifacts-to-build>
|
||||
<artifact name="Lab3:jar" />
|
||||
</artifacts-to-build>
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="60fcefaa-9589-4f94-851d-5a0bfeabc26f" name="Default Changelist" comment="" />
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="FileTemplateManagerImpl">
|
||||
<option name="RECENT_TEMPLATES">
|
||||
<list>
|
||||
<option value="Enum" />
|
||||
<option value="Class" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="MavenImportPreferences">
|
||||
<option name="generalSettings">
|
||||
<MavenGeneralSettings>
|
||||
<option name="mavenHome" value="D:/Programs/apache-maven-3.6.2" />
|
||||
</MavenGeneralSettings>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectId" id="1SmZrKt3HJ31MWJSLXXy9Zo7HNy" />
|
||||
<component name="PropertiesComponent">
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
<property name="aspect.path.notification.shown" value="true" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="nodejs_package_manager_path" value="npm" />
|
||||
<property name="project.structure.last.edited" value="Artifacts" />
|
||||
<property name="project.structure.proportion" value="0.0" />
|
||||
<property name="project.structure.side.proportion" value="0.2" />
|
||||
<property name="settings.editor.selected.configurable" value="project.propVCSSupport.Mappings" />
|
||||
</component>
|
||||
<component name="RunDashboard">
|
||||
<option name="ruleStates">
|
||||
<list>
|
||||
<RuleState>
|
||||
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
<RuleState>
|
||||
<option name="name" value="StatusDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="RunManager">
|
||||
<configuration name="main" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
||||
<option name="MAIN_CLASS_NAME" value="main" />
|
||||
<module name="Lab3" />
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="Application.main" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="60fcefaa-9589-4f94-851d-5a0bfeabc26f" name="Default Changelist" comment="" />
|
||||
<created>1572170928201</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1572170928201</updated>
|
||||
<workItem from="1572170932232" duration="7226000" />
|
||||
<workItem from="1572197561082" duration="1865000" />
|
||||
<workItem from="1572205737755" duration="950000" />
|
||||
<workItem from="1572380529004" duration="405000" />
|
||||
<workItem from="1573241003401" duration="7000" />
|
||||
<workItem from="1573380454174" duration="1819000" />
|
||||
<workItem from="1573385144771" duration="36000" />
|
||||
<workItem from="1574099574717" duration="225000" />
|
||||
<workItem from="1574448666824" duration="431000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="1" />
|
||||
</component>
|
||||
</project>
|
||||
11
ProgrammingJava/Lab3/Lab3/Lab3.iml
Normal file
11
ProgrammingJava/Lab3/Lab3/Lab3.iml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
Binary file not shown.
Binary file not shown.
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/Human.class
Normal file
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/Human.class
Normal file
Binary file not shown.
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/HumanAble.class
Normal file
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/HumanAble.class
Normal file
Binary file not shown.
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/Place$1.class
Normal file
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/Place$1.class
Normal file
Binary file not shown.
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/Place.class
Normal file
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/Place.class
Normal file
Binary file not shown.
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/PlaceAble.class
Normal file
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/PlaceAble.class
Normal file
Binary file not shown.
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/Places.class
Normal file
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/Places.class
Normal file
Binary file not shown.
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/Skills.class
Normal file
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/Skills.class
Normal file
Binary file not shown.
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/main.class
Normal file
BIN
ProgrammingJava/Lab3/Lab3/out/production/Lab3/main.class
Normal file
Binary file not shown.
20
ProgrammingJava/Lab3/Lab3/src/AbstractHuman.java
Normal file
20
ProgrammingJava/Lab3/Lab3/src/AbstractHuman.java
Normal file
@ -0,0 +1,20 @@
|
||||
public abstract class AbstractHuman implements HumanAble {
|
||||
public String name;
|
||||
public int age;
|
||||
|
||||
public AbstractHuman(){
|
||||
}
|
||||
|
||||
public AbstractHuman(String name){
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public AbstractHuman(String name, int age){
|
||||
this.name = name;
|
||||
this.age = age;
|
||||
}
|
||||
|
||||
public String getName(){
|
||||
return name;
|
||||
}
|
||||
}
|
||||
24
ProgrammingJava/Lab3/Lab3/src/AbstractPlace.java
Normal file
24
ProgrammingJava/Lab3/Lab3/src/AbstractPlace.java
Normal file
@ -0,0 +1,24 @@
|
||||
public abstract class AbstractPlace implements PlaceAble {
|
||||
public String placeName;
|
||||
public String typeName;
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return super.hashCode()+this.getPlace().hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj.hashCode() == this.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Место " + this.getPlace();
|
||||
}
|
||||
|
||||
public String getPlace() {
|
||||
return placeName;
|
||||
}
|
||||
}
|
||||
66
ProgrammingJava/Lab3/Lab3/src/Human.java
Normal file
66
ProgrammingJava/Lab3/Lab3/src/Human.java
Normal file
@ -0,0 +1,66 @@
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class Human extends AbstractHuman {
|
||||
private final List<Skills> skills = new ArrayList<Skills>();
|
||||
|
||||
public Human(){
|
||||
System.out.println("Обычный человек успешно создан...");
|
||||
}
|
||||
|
||||
public Human (String name){
|
||||
this.name = name;
|
||||
System.out.println("Человек - " + name + " успешно создан!");
|
||||
}
|
||||
|
||||
public List<Skills> getSkills() {
|
||||
return skills;
|
||||
}
|
||||
|
||||
public boolean addSkill(Skills skill){
|
||||
if (skills.add(skill)){
|
||||
System.out.println("Объекту - \"" + this.getName() + "\" успешно присвоено умение " + skill.getName()
|
||||
+ " (" + skill.getInfo()+ ")");
|
||||
return true;
|
||||
}
|
||||
else{
|
||||
System.out.println("При добавлении умения произошла ошибка...");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static void away(String name1, String name2, String place){
|
||||
System.out.println("Затем " + name1 + " пошел в " + place + " ждать " + name2);
|
||||
}
|
||||
|
||||
public static void kiss(String name){
|
||||
System.out.println(name + " подошел к ней, поцеловал в полную руку и сказал: " + null + " !");
|
||||
}
|
||||
|
||||
public static void walk(String name1, String name2, String place){
|
||||
System.out.println(name1 + " и " + name2 + " должны были идти на " + place + " вместе");
|
||||
}
|
||||
|
||||
public static void think(String name1, String name2, String name3){
|
||||
System.out.println(name1 + " не сможет туда попасть, если " + name2 + " окажется прав насчет " + name3);
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return super.hashCode()+this.getName().hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj.hashCode() == this.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Человек по имени " + this.getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
4
ProgrammingJava/Lab3/Lab3/src/HumanAble.java
Normal file
4
ProgrammingJava/Lab3/Lab3/src/HumanAble.java
Normal file
@ -0,0 +1,4 @@
|
||||
public interface HumanAble {
|
||||
String getName();
|
||||
boolean addSkill(Skills skills);
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user