-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
631 additions
and
68 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
291 changes: 291 additions & 0 deletions
291
programming/sem1/lab3/out/production/lab3/planyuml/puml.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,291 @@ | ||
@startuml | ||
class BasicCharacter { | ||
+ BasicCharacter(String): | ||
+ enjoyGrass(): void | ||
+ toString(): String | ||
+ goFurther(): void | ||
+ makeStep(): StepStatus | ||
+ reclaimPotatoes(FieldLenght): void | ||
+ makeStepAfterReclaim(): StepStatus | ||
+ equals(Object): boolean | ||
+ tellBadWords(): void | ||
+ saveUnusefulPotatoes(GroundType, int): void | ||
+ getTiredOfWalk(GroundType): void | ||
+ savePotatoesFastly(): void | ||
+ claimPotatoes(int, GroundType): void | ||
+ hashCode(): int | ||
+ leaveField(): void | ||
+ throwPotatoes(): void | ||
+ checkIfClothBroken(): void | ||
+ sleepOnGround(): void | ||
+ bite(): boolean | ||
+ smellFood(): void | ||
+ saveUsefulPotatoes(GroundType, int): void | ||
+ becomeTired(): void | ||
name: String | ||
id: int | ||
} | ||
class BecomeTired { | ||
+ BecomeTired(): | ||
+ becomeTired(): void | ||
} | ||
class BitePotato { | ||
+ BitePotato(RandomWrapper): | ||
+ bite(): boolean | ||
} | ||
class CharacterCloth { | ||
+ CharacterCloth(): | ||
cloth: Cloth | ||
} | ||
class CharacterEnergy { | ||
+ CharacterEnergy(): | ||
+ energyStepIncriment(): void | ||
energy: int | ||
} | ||
class CharacterLocation { | ||
+ CharacterLocation(): | ||
location: Location | ||
} | ||
class CharacterName { | ||
+ CharacterName(): | ||
name: String | ||
} | ||
class CheckIfClothBroken { | ||
+ CheckIfClothBroken(CharacterCloth): | ||
+ checkIfClothBroken(): void | ||
} | ||
class ClaimPotatoes { | ||
+ ClaimPotatoes(CharacterCloth, CharacterName): | ||
+ claimPotatoes(int, GroundType): void | ||
} | ||
class Cloth { | ||
+ Cloth(String, int): | ||
+ equals(Object): boolean | ||
+ makeStep(): void | ||
+ toString(): String | ||
+ hashCode(): int | ||
potatoes: ArrayList<Potato> | ||
name: String | ||
potatoesCount: int | ||
id: int | ||
stepIncrement: int | ||
} | ||
enum ClothesEnum << enumeration >> { | ||
+ ClothesEnum(): | ||
+ values(): ClothesEnum[] | ||
+ valueOf(String): ClothesEnum | ||
+ toCloth(int): Cloth | ||
} | ||
class EnjoyGrass { | ||
+ EnjoyGrass(): | ||
+ enjoyGrass(): void | ||
} | ||
class FieldEnd { | ||
+ FieldEnd(BasicCharacter, int): | ||
+ execute(): Location | ||
} | ||
class FieldLenght { | ||
+ FieldLenght(): | ||
+ incrementFieldLenght(): void | ||
fieldLenght: int | ||
} | ||
class FieldMiddle { | ||
+ FieldMiddle(BasicCharacter, GroundType): | ||
+ execute(): Location | ||
} | ||
class FieldStart { | ||
+ FieldStart(BasicCharacter): | ||
+ execute(): Location | ||
} | ||
class GetTiredOfWalk { | ||
+ GetTiredOfWalk(): | ||
+ getTiredOfWalk(GroundType): void | ||
} | ||
class GoFurther { | ||
+ GoFurther(): | ||
+ goFurther(): void | ||
} | ||
enum GroundType << enumeration >> { | ||
+ GroundType(): | ||
+ values(): GroundType[] | ||
+ valueOf(String): GroundType | ||
+ toString(): String | ||
} | ||
interface IBasicObj << interface >> { | ||
+ equals(Object): boolean | ||
+ hashCode(): int | ||
+ toString(): String | ||
name: String | ||
id: int | ||
} | ||
class LeaveField { | ||
+ LeaveField(CharacterName): | ||
+ leaveField(): void | ||
} | ||
class Location { | ||
+ Location(String, BasicCharacter): | ||
+ equals(Object): boolean | ||
+ toString(): String | ||
+ hashCode(): int | ||
+ execute(): Location | ||
character: BasicCharacter | ||
name: String | ||
id: int | ||
} | ||
class Main { | ||
+ Main(): | ||
+ main(String[]): void | ||
} | ||
class MakeSteps { | ||
+ MakeSteps(CharacterEnergy, CharacterName): | ||
- makeEnergyStep(): StepStatus | ||
+ makeStepAfterReclaim(): StepStatus | ||
+ makeStep(Cloth): StepStatus | ||
- makePotatoStep(Cloth): StepStatus | ||
} | ||
class NegativeEnergyException { | ||
+ NegativeEnergyException(): | ||
} | ||
class NegativePotatoesException { | ||
+ NegativePotatoesException(): | ||
} | ||
entity Potato << record >> { | ||
+ Potato(boolean): | ||
isDelicious: boolean | ||
} | ||
class RandomWrapper { | ||
+ RandomWrapper(): | ||
+ randomizePotato(): Potato | ||
+ randomizeSmell(): SmellType | ||
+ randomizeGroundType(): GroundType | ||
+ randomizeCloth(): Cloth | ||
+ randomizeFieldLenght(): int | ||
+ ramdomizePotatoesReclamation(int, int): int | ||
+ randomizeEnergy(int, int): int | ||
+ randomizeCanSmell(): boolean | ||
+ randomizePotatoes(): int | ||
} | ||
class ReclaimPotatoes { | ||
+ ReclaimPotatoes(RandomWrapper, CharacterEnergy, CharacterCloth, GoFurther): | ||
+ reclaimPotatoes(FieldLenght): void | ||
} | ||
class SavePotatoes { | ||
+ SavePotatoes(CharacterCloth, CharacterName): | ||
+ saveUsefulPotatoes(GroundType, int): void | ||
+ savePotatoesFastly(): void | ||
+ saveUnusefulPotatoes(GroundType, int): void | ||
} | ||
class SleepOnGround { | ||
+ SleepOnGround(): | ||
+ sleepOnGround(): void | ||
} | ||
class SmellFood { | ||
+ SmellFood(RandomWrapper): | ||
+ smellFood(): void | ||
} | ||
enum SmellType << enumeration >> { | ||
+ SmellType(): | ||
+ values(): SmellType[] | ||
+ toString(): String | ||
+ valueOf(String): SmellType | ||
} | ||
enum StepStatus << enumeration >> { | ||
+ StepStatus(): | ||
+ values(): StepStatus[] | ||
+ valueOf(String): StepStatus | ||
} | ||
class TellBadWords { | ||
+ TellBadWords(CharacterName): | ||
+ tellBadWords(): void | ||
} | ||
class ThrowPotatoes { | ||
+ ThrowPotatoes(CharacterCloth, CharacterName): | ||
+ throwPotatoes(): void | ||
} | ||
|
||
BasicCharacter "1" *-[#595959,plain]-> "becomeTired\n1" BecomeTired | ||
BasicCharacter -[#595959,dashed]-> BecomeTired : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "bitePotato\n1" BitePotato | ||
BasicCharacter -[#595959,dashed]-> BitePotato : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "characterCloth\n1" CharacterCloth | ||
BasicCharacter -[#595959,dashed]-> CharacterCloth : "«create»" | ||
BasicCharacter -[#595959,dashed]-> CharacterEnergy : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "characterEnergy\n1" CharacterEnergy | ||
BasicCharacter -[#595959,dashed]-> CharacterLocation : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "characterLocation\n1" CharacterLocation | ||
BasicCharacter "1" *-[#595959,plain]-> "characterName\n1" CharacterName | ||
BasicCharacter -[#595959,dashed]-> CharacterName : "«create»" | ||
BasicCharacter -[#595959,dashed]-> CheckIfClothBroken : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "checkIfClothBroken\n1" CheckIfClothBroken | ||
BasicCharacter -[#595959,dashed]-> ClaimPotatoes : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "claimPotatoes\n1" ClaimPotatoes | ||
BasicCharacter "1" *-[#595959,plain]-> "enjoyGrass\n1" EnjoyGrass | ||
BasicCharacter -[#595959,dashed]-> EnjoyGrass : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "getTiredOfWalk\n1" GetTiredOfWalk | ||
BasicCharacter -[#595959,dashed]-> GetTiredOfWalk : "«create»" | ||
BasicCharacter -[#595959,dashed]-> GoFurther : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "goFurther\n1" GoFurther | ||
BasicCharacter -[#008200,dashed]-^ IBasicObj | ||
BasicCharacter -[#595959,dashed]-> LeaveField : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "leaveField\n1" LeaveField | ||
BasicCharacter "1" *-[#595959,plain]-> "makeSteps\n1" MakeSteps | ||
BasicCharacter -[#595959,dashed]-> MakeSteps : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "rnd\n1" RandomWrapper | ||
BasicCharacter -[#595959,dashed]-> RandomWrapper : "«create»" | ||
BasicCharacter -[#595959,dashed]-> ReclaimPotatoes : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "reclaimPotatoes\n1" ReclaimPotatoes | ||
BasicCharacter "1" *-[#595959,plain]-> "savePotatoes\n1" SavePotatoes | ||
BasicCharacter -[#595959,dashed]-> SavePotatoes : "«create»" | ||
BasicCharacter -[#595959,dashed]-> SleepOnGround : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "sleepOnGround\n1" SleepOnGround | ||
BasicCharacter "1" *-[#595959,plain]-> "smellFood\n1" SmellFood | ||
BasicCharacter -[#595959,dashed]-> SmellFood : "«create»" | ||
BasicCharacter -[#595959,dashed]-> TellBadWords : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "tellBadWords\n1" TellBadWords | ||
BasicCharacter -[#595959,dashed]-> ThrowPotatoes : "«create»" | ||
BasicCharacter "1" *-[#595959,plain]-> "throwPotatoes\n1" ThrowPotatoes | ||
BitePotato "1" *-[#595959,plain]-> "rnd\n1" RandomWrapper | ||
CharacterCloth "1" *-[#595959,plain]-> "cloth\n1" Cloth | ||
CharacterEnergy -[#595959,dashed]-> NegativeEnergyException : "«create»" | ||
CharacterLocation "1" *-[#595959,plain]-> "location\n1" Location | ||
CheckIfClothBroken "1" *-[#595959,plain]-> "cloth\n1" CharacterCloth | ||
ClaimPotatoes "1" *-[#595959,plain]-> "cloth\n1" CharacterCloth | ||
ClaimPotatoes "1" *-[#595959,plain]-> "name\n1" CharacterName | ||
Cloth -[#008200,dashed]-^ IBasicObj | ||
Cloth -[#595959,dashed]-> NegativePotatoesException : "«create»" | ||
Cloth "1" *-[#595959,plain]-> "potatoes\n*" Potato | ||
Cloth -[#595959,dashed]-> RandomWrapper : "«create»" | ||
Cloth "1" *-[#595959,plain]-> "rnd\n1" RandomWrapper | ||
ClothesEnum -[#595959,dashed]-> Cloth : "«create»" | ||
FieldEnd -[#595959,dashed]-> FieldLenght : "«create»" | ||
FieldEnd "1" *-[#595959,plain]-> "fieldLenght\n1" FieldLenght | ||
FieldEnd -[#000082,plain]-^ Location | ||
FieldMiddle -[#595959,dashed]-> FieldEnd : "«create»" | ||
FieldMiddle -[#595959,dashed]-> FieldLenght : "«create»" | ||
FieldMiddle "1" *-[#595959,plain]-> "fieldLenght\n1" FieldLenght | ||
FieldMiddle "1" *-[#595959,plain]-> "groundType\n1" GroundType | ||
FieldMiddle -[#000082,plain]-^ Location | ||
FieldStart -[#595959,dashed]-> FieldMiddle : "«create»" | ||
FieldStart -[#000082,plain]-^ Location | ||
LeaveField "1" *-[#595959,plain]-> "characterName\n1" CharacterName | ||
Location "1" *-[#595959,plain]-> "character\n1" BasicCharacter | ||
Location -[#008200,dashed]-^ IBasicObj | ||
Location -[#595959,dashed]-> RandomWrapper : "«create»" | ||
Location "1" *-[#595959,plain]-> "rnd\n1" RandomWrapper | ||
Main -[#595959,dashed]-> BasicCharacter : "«create»" | ||
Main -[#595959,dashed]-> FieldStart : "«create»" | ||
Main -[#595959,dashed]-> RandomWrapper : "«create»" | ||
MakeSteps "1" *-[#595959,plain]-> "energy\n1" CharacterEnergy | ||
MakeSteps "1" *-[#595959,plain]-> "name\n1" CharacterName | ||
RandomWrapper -[#595959,dashed]-> Potato : "«create»" | ||
ReclaimPotatoes "1" *-[#595959,plain]-> "characterCloth\n1" CharacterCloth | ||
ReclaimPotatoes "1" *-[#595959,plain]-> "characterEnergy\n1" CharacterEnergy | ||
ReclaimPotatoes "1" *-[#595959,plain]-> "goFurther\n1" GoFurther | ||
ReclaimPotatoes "1" *-[#595959,plain]-> "rnd\n1" RandomWrapper | ||
SavePotatoes "1" *-[#595959,plain]-> "cloth\n1" CharacterCloth | ||
SavePotatoes "1" *-[#595959,plain]-> "name\n1" CharacterName | ||
SmellFood "1" *-[#595959,plain]-> "rnd\n1" RandomWrapper | ||
TellBadWords "1" *-[#595959,plain]-> "name\n1" CharacterName | ||
ThrowPotatoes "1" *-[#595959,plain]-> "cloth\n1" CharacterCloth | ||
ThrowPotatoes "1" *-[#595959,plain]-> "name\n1" CharacterName | ||
@enduml |
Binary file added
BIN
+714 Bytes
programming/sem1/lab3/out/production/lab3/src/Character/Actions/BecomeTired.class
Binary file not shown.
Binary file added
BIN
+1.13 KB
programming/sem1/lab3/out/production/lab3/src/Character/Actions/BitePotato.class
Binary file not shown.
Binary file added
BIN
+1.42 KB
programming/sem1/lab3/out/production/lab3/src/Character/Actions/CheckIfClothBroken.class
Binary file not shown.
Binary file added
BIN
+2.12 KB
programming/sem1/lab3/out/production/lab3/src/Character/Actions/ClaimPotatoes.class
Binary file not shown.
Binary file added
BIN
+617 Bytes
programming/sem1/lab3/out/production/lab3/src/Character/Actions/EnjoyGrass.class
Binary file not shown.
Binary file renamed
BIN
+488 Bytes
...r/Exceptons/NegativeEnergyException.class → ...s/Exceptons/NegativeEnergyException.class
Binary file not shown.
Binary file renamed
BIN
+471 Bytes
...Exceptons/NegativePotatoesException.class → ...Exceptons/NegativePotatoesException.class
Binary file not shown.
Binary file added
BIN
+1.3 KB
programming/sem1/lab3/out/production/lab3/src/Character/Actions/GetTiredOfWalk.class
Binary file not shown.
Binary file added
BIN
+599 Bytes
programming/sem1/lab3/out/production/lab3/src/Character/Actions/GoFurther.class
Binary file not shown.
Binary file added
BIN
+1.46 KB
programming/sem1/lab3/out/production/lab3/src/Character/Actions/LeaveField.class
Binary file not shown.
Binary file added
BIN
+3.04 KB
programming/sem1/lab3/out/production/lab3/src/Character/Actions/MakeSteps.class
Binary file not shown.
Binary file added
BIN
+2.38 KB
programming/sem1/lab3/out/production/lab3/src/Character/Actions/ReclaimPotatoes.class
Binary file not shown.
Binary file added
BIN
+2.41 KB
programming/sem1/lab3/out/production/lab3/src/Character/Actions/SavePotatoes.class
Binary file not shown.
Binary file added
BIN
+696 Bytes
programming/sem1/lab3/out/production/lab3/src/Character/Actions/SleepOnGround.class
Binary file not shown.
Binary file added
BIN
+1.45 KB
programming/sem1/lab3/out/production/lab3/src/Character/Actions/SmellFood.class
Binary file not shown.
Binary file added
BIN
+1.27 KB
programming/sem1/lab3/out/production/lab3/src/Character/Actions/StepsEnums/StepStatus.class
Binary file not shown.
Binary file added
BIN
+1.42 KB
programming/sem1/lab3/out/production/lab3/src/Character/Actions/TellBadWords.class
Binary file not shown.
Binary file added
BIN
+1.79 KB
programming/sem1/lab3/out/production/lab3/src/Character/Actions/ThrowPotatoes.class
Binary file not shown.
Binary file modified
BIN
+1015 Bytes
(120%)
programming/sem1/lab3/out/production/lab3/src/Character/BasicCharacter.class
Binary file not shown.
Binary file added
BIN
+581 Bytes
...ramming/sem1/lab3/out/production/lab3/src/Character/CharacterMethods/CharacterCloth.class
Binary file not shown.
Binary file added
BIN
+779 Bytes
...amming/sem1/lab3/out/production/lab3/src/Character/CharacterMethods/CharacterEnergy.class
Binary file not shown.
Binary file added
BIN
+614 Bytes
...ming/sem1/lab3/out/production/lab3/src/Character/CharacterMethods/CharacterLocation.class
Binary file not shown.
Binary file added
BIN
+572 Bytes
programming/sem1/lab3/out/production/lab3/src/Character/CharacterMethods/CharacterName.class
Binary file not shown.
Binary file removed
BIN
-1.17 KB
programming/sem1/lab3/out/production/lab3/src/Character/StepsEnums/StepStatus.class
Binary file not shown.
Binary file removed
BIN
-1.23 KB
...mming/sem1/lab3/out/production/lab3/src/Character/StepsEnums/StepStatusAfterReclaim.class
Binary file not shown.
Binary file modified
BIN
+8 Bytes
(100%)
programming/sem1/lab3/out/production/lab3/src/Clothes/Cloth.class
Binary file not shown.
Binary file modified
BIN
-1.36 KB
(56%)
programming/sem1/lab3/out/production/lab3/src/Locations/FieldEnd.class
Binary file not shown.
Binary file added
BIN
+646 Bytes
programming/sem1/lab3/out/production/lab3/src/Locations/FieldMethods/FieldLenght.class
Binary file not shown.
Binary file modified
BIN
-673 Bytes
(80%)
programming/sem1/lab3/out/production/lab3/src/Locations/FieldMiddle.class
Binary file not shown.
Binary file modified
BIN
-935 Bytes
(66%)
programming/sem1/lab3/out/production/lab3/src/Locations/FieldStart.class
Binary file not shown.
Binary file modified
BIN
-25 Bytes
(99%)
programming/sem1/lab3/out/production/lab3/src/Locations/Location.class
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.