Tuesday, January 28, 2020

IDE for Satellite ODL

IDE for Satellite ODL An Integrated Development Environment for Satellite Operations Definition Language Rachana M C Sajiv Kumar Abstract— The satellite system has to be maintained in proper operations conditions for optimal throughput and satisfying the mission requirements. This is achievable by monitoring the satellite health parameters, analyse the behavioural characteristics and control the parameters accordingly based on the behavioural patterns. The subsystem experts define the behavioural pattern in a domain specific language for this purpose. An integrated environment is required to aid the experts from various engineering and science disciplines to properly define the monitoring, analysis and control rules. This paper proposes a method to develop an Integrated Development Environment (IDE) which facilitates the definition of monitoring, analysis, control and reporting logics using the Satellite Operations Definition Language, required for the satellite operations. Keywords— DSL (Domain Specific Language), MAC (Monitoring Analysis and Control), IDE (Integrated Development Environment). I. INTODUCTION The health of the satellite has to be maintained to utilize the spacecraft for its intended purposes effectively. This involves monitoring, analysis, control and reporting of health parameters. Health parameters are analogue and status values of different subsystem parameters telemetered from satellite to ground stations at regular intervals. The task of monitoring and analysis this parameters is quite complex with the increasing number of space-crafts to be maintained. The satellite control system is basically designed to monitor the various health parameters and initiate corrective actions whenever and wherever required. Satellite health monitoring analysis and control operations involves receiving health data, process it, analyse and perform appropriate controlling operations as required as well as to present them in appropriate format. Since these MAC (Monitoring Analysis and Control) operations rely on various domains specific tools and incongruence may lead to error. Space Operations Definition Language is a domain specific language developed in ISRO for defining the logics for satellite health monitoring, analysis and reporting. A common language brings about congruence in definition of monitoring and analysis logics for the multiple satellite systems. The data received from the spacecraft’s will have parameters to be given to various sub-systems and this data is called Telemetry data. The MAC operations is done using the Space Operations Definition Language that is implemented and developed in ISRO and to automate these MAC operations we use the language specified by the experts. We use the language defined by the experts because the experts define the various logics used for monitoring the satellites. For example, in thermal systems there exists various properties like states property or dynamic trend behaviour but the experts maybe interested in the slope variations that occur and these variations depends on if the temperature is increasing or decreasing with the slope. The state behaviour can be enabled means on or disabled means off and these properties can be dynamic or continuous. The nature of the system can be of many types like discrete, analogue and hybrid. The lexical analyser takes the tuning parameters and passes them to the parser where the syntax analysis and semantic analysis is done i.e. the language specification is done in syntax analysis. This approach helps in refining the addressing of the requirements of spacecraft subsystem operations, by properly converging the expert’s views in a single language platform. An Integrated Development Environment is required to facilitate the health of the system that can be represented in a customized IDE. II. THE PROBLEM DOMAIN The health of a series of satellites is monitored and controlled by the experts with help of software. They receive telemetry data from each spacecraft. The telemetry data is processed, analysed and presented .For every day-to-day operation, nominal operations of the satellites are pre-planned and a schedule is defined well in advance by specialists. It may occasionally happen that during the operation of the pre-planned schedule, the spacecraft may exhibit some unexpected behaviour. Subsystem and Mission experts has to define logics in a domain specific language to address these scenarios. An IDE for this domain specific satellite operations language, in which the logics for automating the satellite health monitoring and control can be defined, is attempted here. We use the concept of recursive descent parser (top-down approach) in order to create a context aware environment that allows usage of more general grammars and also has advantages like easy debugging, ability of parsing to any non-terminal in the grammar specified. We require to implement a LL(1) parser which gives the ability of syntactic and semantic look ahead that helps to resolve the shift-shift conflict. We need not have to worry about conflicts like shift-reduce and reduce-reduce as they are not issues for the top-down parsers. The parser should offer the ability of creating lexical states and lexical actions so as to enable the IDE context aware while defining domain specific monitoring logics for the satellite operations. III. AREAS ADDRESSED IN THIS WORK This work envisages developing a solid infrastructure which provides an integrated environment for defining the health monitoring and controlling logics for satellites. This integrated development environment (IDE) assembles multiple disparate tools into a single coherent system. The following sub-modules have to be developed in this process. A) Basic IDE Infrastructure: This involves development of the base IDE infrastructure with sufficient features for supporting the domain specific language, essentially a fully fledge editor to extract the language features to possible extent. The Net Beans Platform which is a solid infrastructure for creating custom software development tools is utilized for this purpose. However, more than as an individual software development tool, the infrastructure is enhanced as a tailored integrated development environment (IDE) for our domain specific language by assembling multiple disparate tools into a single coherent system. B) Lexical Analyser (Tokenizer module) for the DSL: The concept of Lexical analysis or tokenization is the process of breaking a character stream into individual units called â€Å"tokens.† Lexical analyser helps in converting a stream of input characters into a stream of tokens. Once the token is received the lexical analyser will look up for the tokens specified to check the existence of the respective token. If the token does not exist then it proceeds to fetch the next token. If not then that particular token along with the token value is written into the Lexer and passes it on to the parser. The concept of recursive descent parser is used to create a better context aware environment. We use the concept of recursive descent parser (top-down approach) in order to create a context aware environment that allows usage more of general grammars and also has advantages like easy debugging, ability of parsing to any non-terminal in the grammar specified. Constructing the tokenizer using JavaCC compiler constructor and integrate the resultant module with base IDE infrastructure. Fig. 1 IDE Infrastructure C) Syntax Analyser with associated Syntax highlighter. It helps in determining whether a string or a sequence of tokens can be generated by a grammar. The lexical analyser can identify tokens with the help of grammar rules but it cannot check the syntax of a given parameters. The components are Non-terminals and terminals where Non-terminals help in processing the grammar further and terminals helps in terminating the process. This particular analysis produces a parse tree as an output. The main task of the parser is to accept an input and check and confirm the input given with the specified grammar. The issue of matching the input with the grammar results in backtracking and making a new search each and every time which consumes lot of time. Therefore, most of the parsers do not use the concept of backtracking. Parsers that are generated by Java Compiler Compiler use the concepts of terminals and non-terminals so no backtracking is required. The task of finding the tokens further in the input stream is called as looking ahead into the input stream. We can assign values to the look ahead which helps to look ahead the number of tokens in the input given. Suppose the look ahead is 1that means it looks ahead 1 token in the input stream. Implementation of the syntax analyser from the DSL language specification and generate modules to integrate with base IDE infrastructure. D) Semantic analysis: The Syntax analyser receives input in form of tokens from lexical analyser where the lexical analysers are responsible for the checking of a token given by the syntax analyser but Syntax analyser cannot determine if a token is valid, it cannot determine if an operation performed on a token type is valid or not. The semantic analysis uses the help of token manager generated by the compiler. In JavaCC we need to specify certain lexical specification that needs to be organized into a set of states. Each state is given a name to be identified and the standard state is called default. Whenever the token manager is initialized, it always starts from the Default state. Every state contains a list of different regular expressions. The four kinds of them are SKIP, TOKEN, MORE and SPECIAL_TOKEN. The accepted token is matched as follows- all the specified regular expressions in the present lexical state is considered and the token manager accepts the total number of specified characters from the input and match them with the specified regular expressions. After the regular expressions is been matched to the one that is specified, the particular lexical action is executed .Suppose the kind of regular expression specified is TOKEN then the matched token is returned, but if the regular expression is of SPECIAL_TOKEN then it first should be saved and then returned along with the next token that is to be matched. This helps in constructing an integrating to the base IDE the context sensitive semantics analyser encapsulating the domain knowledge. E) Dynamic Analysis Facility. Controlled environment for executing the logics defined in the domain specific language is required for facilitation the experts to understand better the flow of execution and verify that the logic defined perform the intended flow sequence. In order to facilitate this feature the step and continuous execution features with facility to monitor internal states of the program is provided exploiting the Netbeans API modules. F) Hint modules: Netbeans API allows us to create a module that provides various hints. So whenever we need to use these kind of modules we need to provide the required expression that helps in matching the existing one. When the initial expression is given automatically the whole expression is provided by the hint module. G) Code completion: Netbeans allows us to implement the Editor Code Completion API. This tutorial shows you how to implement the Editor Code Completion API. When we invoke this feature, a code completion box appears, displaying words that can complete the text typed in the editor. IV. IMPLEMENTATION AND RESULTS The implementation is done using Netbeans API 7.2.1 and a JavaCC compiler to create an IDE infrastructure on Linux platform using Linux RedHat 6.1. To implement this we have used associated Netbeans Libraries such as Lexer, Parsing API, and Editor API. JavaCC which is a ‘Lexer and parser generator’ reads a set of grammar rules and helps to convert it into a java program that matches to the specified grammar. The Java codes generated by JavaCC are augmented with the domain specific language specifications to develop modules which perform the following major tasks: 1. Lexical analysis 2. Syntactic analysis, Semantic analysis 3. Code generation or execution Lexical and Syntactic analysis involve in understanding the source code and ensuring its syntactical correctness. This is called parsing, which is the parsers responsibility. Lexical analysis on receiving the code and divides it into proper tokens. A token is a significant piece of a programs source code. Token examples include keywords, punctuation, literals such as numbers, and strings. Nontokens include white space, which is often ignored or skipped but used to separate tokens, and comments. Fig2. Designing IDE During syntactic analysis, the parser takes the token from the program by ensuring the programs syntactical correctness and by building an internal representation of the program. During syntactic analysis, a compiler examines the program source code with respect to the rules defined in the languages grammar. If any grammar rule is violated, the compiler displays error messages. Context aware token recognition is achieved by passing the tokens scanned by the editor to a mapping module and trace appropriate action on the fly, such as highlighting the various keywords in appropriate colour, providing necessary hints appropriate based on the current context etc. The Syntax analyser and Semantic analyser on receiving the tokens from the token manager aggregate and checks it with the grammar specified which also helps in highlighting the language constructs. The code completion API gives context based suggestions when an expression is being coded. We also have the feature of hint modules when a logic is been given provided with the Netbeans. Fig3. IDE with domain specific language and its environment. V. CONCLUSION In this paper we mainly focused on developing an integrated environment that helps in monitoring the spacecraft’s along with the specified control logics. We also have implemented the concept of modules required for and integrated development environment along with the base infrastructure suited for the domain specific language.This works presents a properly tailored integrated development environment to facilitate experts from inter-disciplinary fields to defined monitoring and control logics of concerned subsystems and to merge them in unison to provide overall the satellite health monitoring and control logics. The future enhancements that can be implemented are the Visual source representation that provides possible visual representation of logics being specified which helps in knowing the various changes happening in the spacecraft’s. Static and Dynamics Analysis Features helps to associate modules to carry out static and dynamic analysis based on the domain as well as the language specification. ACKNOWLEDGMENT Thanks is such a little word but not bigger than a moment, but there is a world of great meaning in it. It is my immense pleasure that I take this opportunity to express my gratitude to all of them who helped me during this project work. I specially thank the organization (ISRO) for giving me this opportunity. REFERENCES Next-Generation Monitoring, Analysis, and Control for the Future Smart Control Center Pei Zhang, Senior Member, IEEE, Fangxing Li, Senior Member, IEEE, and Navin Bhatt, Fellow, IEEE Simulink Tools for Design and Verification. Netbean Platform Tutorial for IDE( Oracle). JavaWorld (http://www.javaworld.com/article/2076269/learn-java/build-your-own) Netbeans File Type (https://platform.netbeans.org/tutorials/nbm-filetype.html) Netbeans JavaCC Lexer(https://platform.netbeans.org/tutorials/nbm-javacc-lexer.html) Netbeans JavaCCParser(https://platform.netbeans.org/tutorials/nbm-javacc-parser.html)

Sunday, January 19, 2020

Beyond Free Will in Mary Shelleys Frankenstein Essay -- Frankenstein

Beyond Free Will in Shelly’s Frankenstein  Ã‚   One of the greatest gifts God has given to man is free will.   Free will is the ability to choose our own life’s path, to make decisions, and to suffer our own consequences. God has intended free will to allow us to live our own life by the rules we choose.   However, does free will reach a certain point as which to not crossover?   Man has always envied God, and has always tried to become god-like.   Does this ambition compromise our free will?   In Mary Shelly’s classic novel Frankenstein, Viktor Frankenstein’s tries to bring the dead back to life, and he is successful in animating a creation of his own.   The consequences of his ambition compromised his free will and destroyed his life.   Viktor Frankenstein reached the point of free will which man is not intended to cross over.   Viktor Frankenstein is a fool for trying to play God.   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   Free will was a gift granted to man right from the start of history.   In the story of Genesis, free will granted by God allowed Adam and Eve to eat from any tree in the garden, including the tree of knowledge.   However, God did set a rule.   â€Å"The Lord God commanded the man, â€Å"You are free to eat from any tree in the garden; but you must not eat from the tree of the knowledge of good and evil, for when you eat of it you will surely die.†1  Ã‚   Now, in this story, man is tricked by the serpent, representing the devil, and eats from the tree of knowledge.   He does not die in a sense, but is cast out of paradise and is forced to work off the land for the remainder of his now mortal life.   In a letter from Paul to the Galatians, Paul writes, â€Å"You, my brothers, were called to be free.   But do not use your freedom to indulge the sinful nature.†2  Ã‚   In thes... ...†9  Ã‚   Giving life is God’s job, and any man who tries to become god-like in this sense will surely suffer the consequences of his actions according to Mary Shelly.   I completely agree, and I will conclude with a retrospective quote from Viktor Frankenstein.   â€Å"Learn from me, if not by my precepts, at least by my example, how dangerous is the acquirement of knowledge, and how much happier that man is who believes his native town to be the world, than he who aspires to become greater than his nature will allow.†10 1. Genesis 2: 16-17   (NIV) 2. Galatians 5: 13a   (NIV) 3. Shelly, Mary.   Frankenstein, Norton Critical Edition, p. 30 4. Shelly, p. 32 5. Shelly, p. 49 6. Shelly, p. 115 7. Shelly, p. 116 8. Shelly, p. 137 9. Luke 7: 14-15   (NIV) 10. Shelly, p. 31 Works Cited: Shelly, Mary. Frankenstein. Quality Paperback Book Club, New York. 1994. Beyond Free Will in Mary Shelley's Frankenstein Essay -- Frankenstein Beyond Free Will in Shelly’s Frankenstein  Ã‚   One of the greatest gifts God has given to man is free will.   Free will is the ability to choose our own life’s path, to make decisions, and to suffer our own consequences. God has intended free will to allow us to live our own life by the rules we choose.   However, does free will reach a certain point as which to not crossover?   Man has always envied God, and has always tried to become god-like.   Does this ambition compromise our free will?   In Mary Shelly’s classic novel Frankenstein, Viktor Frankenstein’s tries to bring the dead back to life, and he is successful in animating a creation of his own.   The consequences of his ambition compromised his free will and destroyed his life.   Viktor Frankenstein reached the point of free will which man is not intended to cross over.   Viktor Frankenstein is a fool for trying to play God.   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   Free will was a gift granted to man right from the start of history.   In the story of Genesis, free will granted by God allowed Adam and Eve to eat from any tree in the garden, including the tree of knowledge.   However, God did set a rule.   â€Å"The Lord God commanded the man, â€Å"You are free to eat from any tree in the garden; but you must not eat from the tree of the knowledge of good and evil, for when you eat of it you will surely die.†1  Ã‚   Now, in this story, man is tricked by the serpent, representing the devil, and eats from the tree of knowledge.   He does not die in a sense, but is cast out of paradise and is forced to work off the land for the remainder of his now mortal life.   In a letter from Paul to the Galatians, Paul writes, â€Å"You, my brothers, were called to be free.   But do not use your freedom to indulge the sinful nature.†2  Ã‚   In thes... ...†9  Ã‚   Giving life is God’s job, and any man who tries to become god-like in this sense will surely suffer the consequences of his actions according to Mary Shelly.   I completely agree, and I will conclude with a retrospective quote from Viktor Frankenstein.   â€Å"Learn from me, if not by my precepts, at least by my example, how dangerous is the acquirement of knowledge, and how much happier that man is who believes his native town to be the world, than he who aspires to become greater than his nature will allow.†10 1. Genesis 2: 16-17   (NIV) 2. Galatians 5: 13a   (NIV) 3. Shelly, Mary.   Frankenstein, Norton Critical Edition, p. 30 4. Shelly, p. 32 5. Shelly, p. 49 6. Shelly, p. 115 7. Shelly, p. 116 8. Shelly, p. 137 9. Luke 7: 14-15   (NIV) 10. Shelly, p. 31 Works Cited: Shelly, Mary. Frankenstein. Quality Paperback Book Club, New York. 1994.

Saturday, January 11, 2020

The Return: Nightfall Preface

Ste-fan? Elena was frustrated. She couldn't make the mind-word come out the way she wanted. â€Å"Stefan,† he coaxed, leaning on an elbow and looking at her with those eyes that always made her almost forget what she was trying to say. They shone like green spring leaves in the sunlight. â€Å"Stefan,† he repeated. â€Å"Canyou say it, lovely love?† Elena looked back at him solemnly. He was so handsome that he broke her heart, with his pale, chiseled features and his dark hair falling carelessly across his forehead. She wanted to put into words all the feelings that were piled behind her clumsy tongue and stubborn mind. There was so much she needed to ask him†¦and to tell him. But the sounds wouldn't come yet. They tangled on her tongue. She couldn't even send it telepathically to him – it all came as fragmented images. After all, it was only the seventh day of her new life. Stefan told her that when she'd first woken up, first come back from the Other Side after her death as a vampire, she'd been able to walk and talk and do all sorts of things that she seemed to have forgotten now. He didn't know why she'd forgotten – he'd never known anyone who'd come back from death except vampires – which Elena had been, but certainly was no longer. Stefan had also told her excitedly that she was learning like wildfire every day. New pictures, new thought-words. Even though sometimes it was easier to communicate than others, Stefan was sure she would be herself again someday soon. Then she would act like the teenager she really was. She would no longer be a young adult with a childlike mind, the way the spirits had clearly wanted her to be: growing, seeing the world with new eyes, the eyes of a child. Elena thought that the spirits had been a little unfair. What if Stefan found someone in the meantime who could walk and talk – and write, even? Elena worried over this. That was why, some nights ago, Stefan had woken up to find her gone from her bed. He had found her in the bathroom, poring anxiously over a newspaper, trying to make sense of the little squiggles that she knew were words she once recognized. The paper was dotted with the marks of her tears. The squiggles meant nothing to her. â€Å"But why, love? You'll learn to read again. Why rush?† That was before he saw the bits of pencil, broken from too hard a grip, and the carefully hoarded paper napkins. She had been using them to try to imitate the words. Maybe if she could write like other people, Stefan would stop sleeping in his chair and would hold her on the big bed. He wouldn't go looking for someone older or smarter. He wouldknow she was a grown-up. She saw Stefan put this together slowly in his mind, and she saw the tears come to his eyes. He had been brought up to think he was never allowed to cry no matter what happened. But he had turned his back on her and breathed slowly and deeply for what seemed like a very long time. And then he had picked her up, taken her to the bed in his room, and looked into her eyes and said, â€Å"Elena, tell me what you want me to do. Even if it's impossible, I'll do it. I swear it. Tell me.† All the words she wanted to think to him were still jammed up inside her. Her own eyes spilled tears, which Stefan dabbed off with his fingers, as if he could ruin a priceless painting by touching it too roughly. Then Elena turned her face up, and shut her eyes, and pursed her lips slightly. She wanted a kiss. But†¦ â€Å"You're just a child in your mind now,† Stefan agonized. â€Å"How can I take advantage of you?† There was a sign language they had had, back in her old life, which Elena still remembered. She would tap under her chin, just where it was softest: once, twice, three times. It meant she felt uncomfortable, inside. As if she were too full in her throat. It meant she wanted†¦ Stefan groaned. â€Å"Ican't†¦.† Tap, tap, tap†¦ â€Å"You're not back to your old self yet†¦.† Tap, tap, tap†¦ â€Å"Listen to me, love†¦.† TAP! TAP! TAP! She gazed at him with pleading eyes. If she could have spoken, she would have said, Please, give me some credit – I'm not totally stupid. Please, listento what I can't say to you. â€Å"You hurt. You're really hurting,† Stefan had interpreted, with something like dazed resignation. â€Å"I – if I – if I only take a little†¦Ã¢â‚¬  And then suddenly Stefan's fingers had been cool and sure, moving her head, lifting it, turning it at just this angle, and then she had felt the twin bites, which convinced her more than anything she was alive and not a spirit anymore. Andthen she had been very sure that Stefan loved her and no one else, and she could tell Stefan some of the things she wanted to. But she had to tell them in little exclamations – not of pain – with stars and comets and streaks of light falling around her. And Stefan had been the one who had not been able to think a single word to her. Stefan was the one struck mute. Elena felt that was only fair. After that, he held her at night and she was always happy.

Friday, January 3, 2020

The American Dream By F. Scott Fitzgerald - 2154 Words

Life in America during the twentieth century was seen as hopeful and prosperous to many people among the land, and many others in foreign countries longing to be in America. The American Dream during this time period is seen as one becoming financially successful while holding a high social status, along with obtaining ultimate happiness with his or her own life. The American Dream is presented through various literary works, including The Great Gatsby, by F. Scott Fitzgerald, and is failed by those who try to achieve it. At the end of this novel Jay Gatsby, the main character, ends up dead, along with an honest man and his wife, thus killing the dreams each of these people were working for throughout their life. It is stated†¦show more content†¦The American people are hard workers; however, due to their own selfish motives they are never able to achieve success. In â€Å"The Glass Menagerie,† by Tennessee Williams, Amanda Wingfield calls her son out on being selfish saying, â€Å"I’ll tell you what I wished for on the moon. Success and happiness for my precious children! I wish for that whenever there’s a moon, and when there isn’t a moon, I wish for it, too† (40). Amanda tells her son Tom that all she ever wishes for is the success of her children; however, because she interferes with her children’s lives and lets her own desires come before their own, Amanda’s children are never able to achieve their own personal dreams. Jay Gatsby also displays his selfish nature as he revolves his entire life around Daisy Buchanan, thus ruining his genuine happiness when his chance finally comes to meet with Daisy once again, as Nick describes Gatsby saying, â€Å"As I went over to say good-bye I saw that the expression of bewilderment had come back into Gatsby s face, as though a faint doubt had occurred to him as to the quality of his present happiness† (95). The Americans during the twentieth century disp layed similar characteristics as both Amanda and Gatsby, as they too were selfish and only sought to benefit themselves. When the stock market