Class News

java.lang.Object
  |
  +--swarm.BaseImpl
        |
        +--swarm.objectbase.SwarmObjectImpl
              |
              +--News
All Implemented Interfaces:
swarm.defobj.Create, swarm.defobj.CreateS, swarm.defobj.Customize, swarm.defobj.CustomizeS, swarm.defobj.DefinedObject, swarm.defobj.DefinedObjectS, swarm.defobj.Drop, swarm.defobj.DropS, swarm.defobj.GetName, swarm.defobj.GetNameS, swarm.objectbase.SwarmObject, swarm.objectbase.SwarmObjectS

public class News
extends swarm.objectbase.SwarmObjectImpl

The form containing a news (treated as an object) newses are information about the next steps in the production sequence of an order

Author:
Paolo Pelligra

Field Summary
 Order incomingOrderInNews
          the order announced in the news
 int numberOfTheStepForWhichANewsIsSent
          the step in which the news is sent (a news can be sent twice or more for different steps)
 int receivingUnitNumber
          the number of the unit which receives the news
 int sendingUnitNumber
          the number of the unit which sends the news
 
Constructor Summary
News(swarm.defobj.Zone aZone, int su, int ru, Order or)
          the constructor for News
 
Method Summary
 boolean getNotCleared()
          return the notClearedByInventoryRuleMaster boolean value
 int getNumberOfTheStepForWhichANewsIsSent()
          returning the sequential number of the recipe referring to which the news has been sent
 void setClearedByInventoryRuleMaster()
          the news is now cleared by the inventoryRuleMaster
 
Methods inherited from class swarm.objectbase.SwarmObjectImpl
compare, describe, describeID, drop, getCompleteProbeMap, getDisplayName, getName, getProbeForMessage, getProbeForVariable, getProbeMap, getTypeName, getZone, perform, perform$with, perform$with$with, perform$with$with$with, respondsTo, setDisplayName, xfprint, xfprintid, xprint, xprintid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sendingUnitNumber

public int sendingUnitNumber
the number of the unit which sends the news

receivingUnitNumber

public int receivingUnitNumber
the number of the unit which receives the news

incomingOrderInNews

public Order incomingOrderInNews
the order announced in the news

numberOfTheStepForWhichANewsIsSent

public int numberOfTheStepForWhichANewsIsSent
the step in which the news is sent (a news can be sent twice or more for different steps)
Constructor Detail

News

public News(swarm.defobj.Zone aZone,
            int su,
            int ru,
            Order or)
the constructor for News
Method Detail

setClearedByInventoryRuleMaster

public void setClearedByInventoryRuleMaster()
the news is now cleared by the inventoryRuleMaster

getNotCleared

public boolean getNotCleared()
return the notClearedByInventoryRuleMaster boolean value

getNumberOfTheStepForWhichANewsIsSent

public int getNumberOfTheStepForWhichANewsIsSent()
returning the sequential number of the recipe referring to which the news has been sent