{"id":{"repo_id":"sjsu","oai_identifier":"oai:scholarworks.sjsu.edu:etd_projects-1523"},"canonical_url":"https://search.ndltd.org/etd/sjsu/oai:scholarworks.sjsu.edu:etd_projects-1523","repository":{"repo_id":"sjsu","name":"San Jose State University","base_url":"https://scholarworks.sjsu.edu/do/oai/"},"display":{"title":"Library for Writing Contracts for Java Programs Using Prolog","abstract":"Today many large and complex software systems are being developed in Java. Although, software always has bugs, it is very important that these developed systems are more reliable despite these bugs. One way that we can help achieve this is the Design by Contract (DbC) paradigm, which was first introduced by Bertrand Meyer, the creator of Eiffel. The concept of DbC was introduced for software developers so that they can produce more reliable software systems with a little extra cost. Using programming contracts allows developer to specify details such as input conditions and expected output conditions. Doing this makes it easy for the system to assign blame whenever software runs into some erroneous state. Once the blame is assigned it is easier for the developer to detect the cause, so that the appropriate actions can be taken to resolve the issue. My project develops a library in Java that allows developers to write contracts for their Java programs in Prolog. These contracts are then evaluated by the library with the help of a Prolog dictionary which acts as the database. Prolog’s declarative style is a natural fit for writing contracts. With this project, I hope to simplify writing contracts for Java developers. In this paper, I review my implementation. I further discuss some performance tests to show the added overhead.","abstract_html":"Today many large and complex software systems are being developed in Java. Although, software always has bugs, it is very important that these developed systems are more reliable despite these bugs. One way that we can help achieve this is the Design by Contract (DbC) paradigm, which was first introduced by Bertrand Meyer, the creator of Eiffel. The concept of DbC was introduced for software developers so that they can produce more reliable software systems with a little extra cost. Using programming contracts allows developer to specify details such as input conditions and expected output conditions. Doing this makes it easy for the system to assign blame whenever software runs into some erroneous state. Once the blame is assigned it is easier for the developer to detect the cause, so that the appropriate actions can be taken to resolve the issue. My project develops a library in Java that allows developers to write contracts for their Java programs in Prolog. These contracts are then evaluated by the library with the help of a Prolog dictionary which acts as the database. Prolog’s declarative style is a natural fit for writing contracts. With this project, I hope to simplify writing contracts for Java developers. In this paper, I review my implementation. I further discuss some performance tests to show the added overhead.","abstract_has_math":false,"creators":["Dixit, Yogesh"],"institution":null,"degree_name":"Master of Science (MS)","degree_level":null,"degree_discipline":"Computer Science","degree_department":null,"school":null,"contributors":["Thomas Austin","Jon Pearce","Robert Chun"],"advisors":[],"committee_chairs":[],"committee_members":[],"year":null,"date_issued":"","date_published":null,"updated_at":"2026-11-26T14:02:53Z","subjects":["Design by Contract","Java Contracts","Prolog","Programming Languages and Compilers","Software Engineering"],"languages":[],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier","label":"Identifier","values":["https://scholarworks.sjsu.edu/etd_projects/523"],"render_values":[{"text":"https://scholarworks.sjsu.edu/etd_projects/523","href":"https://scholarworks.sjsu.edu/etd_projects/523","code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.31979/etd.7htm-dx2g","outbound_label":"DOI","outbound_source":"dc:identifier","record_url":"https://doi.org/10.31979/etd.7htm-dx2g","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Asjsu%3Aoai%3Ascholarworks.sjsu.edu%3Aetd_projects-1523","prefix":"oai_dc"},"source_record":{"url":"https://scholarworks.sjsu.edu/do/oai/?verb=GetRecord&metadataPrefix=oai_etdms&identifier=oai%3Ascholarworks.sjsu.edu%3Aetd_projects-1523","prefix":"oai_etdms"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor","label":"Contributor","values":["Thomas Austin","Jon Pearce","Robert Chun"]},{"key":"dc:creator","label":"Author","values":["Dixit, Yogesh"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.available","label":"Dc Date Available","values":["2017-05-22T07:00:00Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2017-05-22T07:00:00Z"]},{"key":"dc:type","label":"Dc Type","values":["Master's Project"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science (MS)"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Design by Contract","Java Contracts","Prolog","Programming Languages and Compilers","Software Engineering"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["https://doi.org/10.31979/etd.7htm-dx2g","https://scholarworks.sjsu.edu/etd_projects/523"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Today many large and complex software systems are being developed in Java. Although, software always has bugs, it is very important that these developed systems are more reliable despite these bugs. One way that we can help achieve this is the Design by Contract (DbC) paradigm, which was first introduced by Bertrand Meyer, the creator of Eiffel. The concept of DbC was introduced for software developers so that they can produce more reliable software systems with a little extra cost. Using programming contracts allows developer to specify details such as input conditions and expected output conditions. Doing this makes it easy for the system to assign blame whenever software runs into some erroneous state. Once the blame is assigned it is easier for the developer to detect the cause, so that the appropriate actions can be taken to resolve the issue. My project develops a library in Java that allows developers to write contracts for their Java programs in Prolog. These contracts are then evaluated by the library with the help of a Prolog dictionary which acts as the database. Prolog’s declarative style is a natural fit for writing contracts. With this project, I hope to simplify writing contracts for Java developers. In this paper, I review my implementation. I further discuss some performance tests to show the added overhead."]},{"key":"dc:title","label":"Title","values":["Library for Writing Contracts for Java Programs Using Prolog"]}]}],"canonical_facts":{"dc:contributor":["Thomas Austin","Jon Pearce","Robert Chun"],"dc:creator":["Dixit, Yogesh"],"dc:date.available":["2017-05-22T07:00:00Z"],"dc:date.created":["2017-05-22T07:00:00Z"],"dc:description.abstract":["Today many large and complex software systems are being developed in Java. Although, software always has bugs, it is very important that these developed systems are more reliable despite these bugs. One way that we can help achieve this is the Design by Contract (DbC) paradigm, which was first introduced by Bertrand Meyer, the creator of Eiffel. The concept of DbC was introduced for software developers so that they can produce more reliable software systems with a little extra cost. Using programming contracts allows developer to specify details such as input conditions and expected output conditions. Doing this makes it easy for the system to assign blame whenever software runs into some erroneous state. Once the blame is assigned it is easier for the developer to detect the cause, so that the appropriate actions can be taken to resolve the issue. My project develops a library in Java that allows developers to write contracts for their Java programs in Prolog. These contracts are then evaluated by the library with the help of a Prolog dictionary which acts as the database. Prolog’s declarative style is a natural fit for writing contracts. With this project, I hope to simplify writing contracts for Java developers. In this paper, I review my implementation. I further discuss some performance tests to show the added overhead."],"dc:identifier":["https://doi.org/10.31979/etd.7htm-dx2g","https://scholarworks.sjsu.edu/etd_projects/523"],"dc:subject":["Design by Contract","Java Contracts","Prolog","Programming Languages and Compilers","Software Engineering"],"dc:title":["Library for Writing Contracts for Java Programs Using Prolog"],"dc:type":["Master's Project"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_name":["Master of Science (MS)"]},"updated_at":"2026-11-26T14:02:53Z"}